diff --git a/CHANGELOG.md b/CHANGELOG.md index 400bdc0ca3e..37ff8bacd29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +Release v1.50.0 (2024-01-19) +=== + +### Service Client Updates +* `service/athena`: Updates service API and documentation + * Introducing new NotebookS3LocationUri parameter to Athena ImportNotebook API. Payload is no longer required and either Payload or NotebookS3LocationUri needs to be provided (not both) for a successful ImportNotebook API call. If both are provided, an InvalidRequestException will be thrown. +* `service/codebuild`: Updates service API, documentation, and paginators + * Release CodeBuild Reserved Capacity feature +* `service/dynamodb`: Updates service API, documentation, waiters, paginators, and examples + * This release adds support for including ApproximateCreationDateTimePrecision configurations in EnableKinesisStreamingDestination API, adds the same as an optional field in the response of DescribeKinesisStreamingDestination, and adds support for a new UpdateKinesisStreamingDestination API. +* `service/qconnect`: Updates service API + +### SDK Features +* `service/cloudfrontkeyvaluestore`: Deprecate cloudfrontkeyvaluestore + * This change removes the cloudfrontkeyvaluestore service, since it does not support sigv4a. + Release v1.49.24 (2024-01-18) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 724f4e807bf..8a1927a39ca 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,6 +1,4 @@ ### SDK Features -* `service/cloudfrontkeyvaluestore`: Deprecate cloudfrontkeyvaluestore - * This change removes the cloudfrontkeyvaluestore service, since it does not support sigv4a. ### SDK Enhancements diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 146fdbd905b..6bd6449440f 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -3450,6 +3450,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-3", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-4", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, @@ -3477,6 +3480,9 @@ var awsPartition = partition{ endpointKey{ Region: "eu-west-3", }: endpoint{}, + endpointKey{ + Region: "il-central-1", + }: endpoint{}, endpointKey{ Region: "me-central-1", }: endpoint{}, @@ -30374,6 +30380,9 @@ var awsPartition = partition{ endpointKey{ Region: "il-central-1", }: endpoint{}, + endpointKey{ + Region: "me-central-1", + }: endpoint{}, endpointKey{ Region: "me-south-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index db416ea8756..945a8b45e2c 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.49.24" +const SDKVersion = "1.50.0" diff --git a/models/apis/athena/2017-05-18/api-2.json b/models/apis/athena/2017-05-18/api-2.json index 1b3c21698bb..547b01b93ad 100644 --- a/models/apis/athena/2017-05-18/api-2.json +++ b/models/apis/athena/2017-05-18/api-2.json @@ -1994,7 +1994,6 @@ "required":[ "WorkGroup", "Name", - "Payload", "Type" ], "members":{ @@ -2002,6 +2001,7 @@ "Name":{"shape":"NotebookName"}, "Payload":{"shape":"Payload"}, "Type":{"shape":"NotebookType"}, + "NotebookS3LocationUri":{"shape":"S3Uri"}, "ClientRequestToken":{"shape":"ClientRequestToken"} } }, diff --git a/models/apis/athena/2017-05-18/docs-2.json b/models/apis/athena/2017-05-18/docs-2.json index faa2468b97e..91da9403ecc 100644 --- a/models/apis/athena/2017-05-18/docs-2.json +++ b/models/apis/athena/2017-05-18/docs-2.json @@ -37,7 +37,7 @@ "GetSessionStatus": "
Gets the current status of a session.
", "GetTableMetadata": "Returns table metadata for the specified catalog, database, and table.
", "GetWorkGroup": "Returns information about the workgroup with the specified name.
", - "ImportNotebook": "Imports a single ipynb
file to a Spark enabled workgroup. The maximum file size that can be imported is 10 megabytes. If an ipynb
file with the same name already exists in the workgroup, throws an error.
Imports a single ipynb
file to a Spark enabled workgroup. To import the notebook, the request must specify a value for either Payload
or NoteBookS3LocationUri
. If neither is specified or both are specified, an InvalidRequestException
occurs. The maximum file size that can be imported is 10 megabytes. If an ipynb
file with the same name already exists in the workgroup, throws an error.
Returns the supported DPU sizes for the supported application runtimes (for example, Athena notebook version 1
).
Lists the calculations that have been submitted to a session in descending order. Newer calculations are listed first; older calculations are listed later.
", "ListCapacityReservations": "Lists the capacity reservations for the current account.
", @@ -1485,7 +1485,7 @@ "base": null, "refs": { "ExportNotebookOutput$Payload": "The content of the exported notebook.
", - "ImportNotebookInput$Payload": "The notebook content to be imported.
", + "ImportNotebookInput$Payload": "The notebook content to be imported. The payload must be in ipynb
format.
The updated content for the notebook.
" } }, @@ -1715,7 +1715,7 @@ "base": null, "refs": { "SessionConfiguration$ExecutionRole": "The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.
", - "WorkGroupConfiguration$ExecutionRole": "The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.
", + "WorkGroupConfiguration$ExecutionRole": "The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and IAM Identity Center enabled workgroups. The property is required for IAM Identity Center enabled workgroups.
", "WorkGroupConfigurationUpdates$ExecutionRole": "The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.
" } }, @@ -1743,7 +1743,8 @@ "CalculationResult$StdOutS3Uri": "The Amazon S3 location of the stdout
file for the calculation.
The Amazon S3 location of the stderr
error messages file for the calculation.
The Amazon S3 location of the folder for the calculation results.
", - "GetCalculationExecutionResponse$WorkingDirectory": "The Amazon S3 location in which calculation results are stored.
" + "GetCalculationExecutionResponse$WorkingDirectory": "The Amazon S3 location in which calculation results are stored.
", + "ImportNotebookInput$NotebookS3LocationUri": "A URI that specifies the Amazon S3 location of a notebook file in ipynb
format.
Deletes one or more builds.
", "BatchGetBuildBatches": "Retrieves information about one or more batch builds.
", "BatchGetBuilds": "Gets information about one or more builds.
", + "BatchGetFleets": "Gets information about one or more compute fleets.
", "BatchGetProjects": "Gets information about one or more build projects.
", "BatchGetReportGroups": "Returns an array of report groups.
", "BatchGetReports": "Returns an array of reports.
", + "CreateFleet": "Creates a compute fleet.
", "CreateProject": "Creates a build project.
", "CreateReportGroup": "Creates a report group. A report group contains a collection of reports.
", "CreateWebhook": "For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
Deletes a batch build.
", + "DeleteFleet": "Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.
", "DeleteProject": "Deletes a build project. When you delete a project, its builds are not deleted.
", "DeleteReport": "Deletes a report.
", "DeleteReportGroup": "Deletes a report group. Before you delete a report group, you must delete its reports.
", @@ -29,6 +32,7 @@ "ListBuilds": "Gets a list of build IDs, with each build ID representing a single build.
", "ListBuildsForProject": "Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
", "ListCuratedEnvironmentImages": "Gets information about Docker images that are managed by CodeBuild.
", + "ListFleets": "Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
", "ListProjects": "Gets a list of build project names, with each build project name representing a single build project.
", "ListReportGroups": "Gets a list ARNs for the report groups in the current Amazon Web Services account.
", "ListReports": "Returns a list of ARNs for the reports in the current Amazon Web Services account.
", @@ -43,6 +47,7 @@ "StartBuildBatch": "Starts a batch build for a project.
", "StopBuild": "Attempts to stop running a build.
", "StopBuildBatch": "Stops a running batch build.
", + "UpdateFleet": "Updates a compute fleet.
", "UpdateProject": "Changes the settings of a build project.
", "UpdateProjectVisibility": "Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
Updates a report group.
", @@ -110,6 +115,16 @@ "refs": { } }, + "BatchGetFleetsInput": { + "base": null, + "refs": { + } + }, + "BatchGetFleetsOutput": { + "base": null, + "refs": { + } + }, "BatchGetProjectsInput": { "base": null, "refs": { @@ -371,9 +386,12 @@ "ComputeType": { "base": null, "refs": { - "ProjectEnvironment$computeType": "Information about the compute resources the build project uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_XLARGE
: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_2XLARGE
: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
BUILD_LAMBDA_1GB
: Use up to 1 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_2GB
: Use up to 2 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_4GB
: Use up to 4 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_8GB
: Use up to 8 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_10GB
: Use up to 10 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
If you use BUILD_GENERAL1_SMALL
:
For environment type LINUX_CONTAINER
, you can use up to 3 GB memory and 2 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
For environment type ARM_CONTAINER
, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.
If you use BUILD_GENERAL1_LARGE
:
For environment type LINUX_CONTAINER
, you can use up to 15 GB memory and 8 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
For environment type ARM_CONTAINER
, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.
For more information, see Build Environment Compute Types in the CodeBuild User Guide.
", + "CreateFleetInput$computeType": "Information about the compute resources the compute fleet uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_XLARGE
: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_2XLARGE
: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
If you use BUILD_GENERAL1_SMALL
:
For environment type LINUX_CONTAINER
, you can use up to 3 GB memory and 2 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
For environment type ARM_CONTAINER
, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.
If you use BUILD_GENERAL1_LARGE
:
For environment type LINUX_CONTAINER
, you can use up to 15 GB memory and 8 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
For environment type ARM_CONTAINER
, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.
For more information, see Build environment compute types in the CodeBuild User Guide.
", + "Fleet$computeType": "Information about the compute resources the compute fleet uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_XLARGE
: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_2XLARGE
: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
If you use BUILD_GENERAL1_SMALL
:
For environment type LINUX_CONTAINER
, you can use up to 3 GB memory and 2 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
For environment type ARM_CONTAINER
, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.
If you use BUILD_GENERAL1_LARGE
:
For environment type LINUX_CONTAINER
, you can use up to 15 GB memory and 8 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
For environment type ARM_CONTAINER
, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.
For more information, see Build environment compute types in the CodeBuild User Guide.
", + "ProjectEnvironment$computeType": "Information about the compute resources the build project uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_XLARGE
: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_2XLARGE
: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
BUILD_LAMBDA_1GB
: Use up to 1 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_2GB
: Use up to 2 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_4GB
: Use up to 4 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_8GB
: Use up to 8 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
BUILD_LAMBDA_10GB
: Use up to 10 GB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER
and ARM_LAMBDA_CONTAINER
.
If you use BUILD_GENERAL1_SMALL
:
For environment type LINUX_CONTAINER
, you can use up to 3 GB memory and 2 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
For environment type ARM_CONTAINER
, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.
If you use BUILD_GENERAL1_LARGE
:
For environment type LINUX_CONTAINER
, you can use up to 15 GB memory and 8 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
For environment type ARM_CONTAINER
, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.
If you're using compute fleets during project creation, computeType
will be ignored.
For more information, see Build Environment Compute Types in the CodeBuild User Guide.
", "StartBuildBatchInput$computeTypeOverride": "The name of a compute type for this batch build that overrides the one specified in the batch build project.
", - "StartBuildInput$computeTypeOverride": "The name of a compute type for this build that overrides the one specified in the build project.
" + "StartBuildInput$computeTypeOverride": "The name of a compute type for this build that overrides the one specified in the build project.
", + "UpdateFleetInput$computeType": "Information about the compute resources the compute fleet uses. Available values include:
BUILD_GENERAL1_SMALL
: Use up to 3 GB memory and 2 vCPUs for builds.
BUILD_GENERAL1_MEDIUM
: Use up to 7 GB memory and 4 vCPUs for builds.
BUILD_GENERAL1_LARGE
: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_XLARGE
: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
BUILD_GENERAL1_2XLARGE
: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
If you use BUILD_GENERAL1_SMALL
:
For environment type LINUX_CONTAINER
, you can use up to 3 GB memory and 2 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
For environment type ARM_CONTAINER
, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.
If you use BUILD_GENERAL1_LARGE
:
For environment type LINUX_CONTAINER
, you can use up to 15 GB memory and 8 vCPUs for builds.
For environment type LINUX_GPU_CONTAINER
, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
For environment type ARM_CONTAINER
, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.
For more information, see Build environment compute types in the CodeBuild User Guide.
" } }, "ComputeTypesAllowed": { @@ -382,6 +400,16 @@ "BatchRestrictions$computeTypesAllowed": "An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
" } }, + "CreateFleetInput": { + "base": null, + "refs": { + } + }, + "CreateFleetOutput": { + "base": null, + "refs": { + } + }, "CreateProjectInput": { "base": null, "refs": { @@ -434,6 +462,16 @@ "refs": { } }, + "DeleteFleetInput": { + "base": null, + "refs": { + } + }, + "DeleteFleetOutput": { + "base": null, + "refs": { + } + }, "DeleteProjectInput": { "base": null, "refs": { @@ -553,9 +591,12 @@ "EnvironmentType": { "base": null, "refs": { - "ProjectEnvironment$type": "The type of build environment to use for related builds.
The environment type ARM_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt).
The environment type LINUX_CONTAINER
with compute type build.general1.2xlarge
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia).
The environment type LINUX_GPU_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).
The environment types ARM_LAMBDA_CONTAINER
and LINUX_LAMBDA_CONTAINER
are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).
The environment types WINDOWS_CONTAINER
and WINDOWS_SERVER_2019_CONTAINER
are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).
For more information, see Build environment compute types in the CodeBuild user guide.
", + "CreateFleetInput$environmentType": "The environment type of the compute fleet.
The environment type ARM_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).
The environment type LINUX_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
The environment type LINUX_GPU_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).
The environment type WINDOWS_SERVER_2019_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).
The environment type WINDOWS_SERVER_2022_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).
For more information, see Build environment compute types in the CodeBuild user guide.
", + "Fleet$environmentType": "The environment type of the compute fleet.
The environment type ARM_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).
The environment type LINUX_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
The environment type LINUX_GPU_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).
The environment type WINDOWS_SERVER_2019_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).
The environment type WINDOWS_SERVER_2022_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).
For more information, see Build environment compute types in the CodeBuild user guide.
", + "ProjectEnvironment$type": "The type of build environment to use for related builds.
The environment type ARM_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt).
The environment type LINUX_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia).
The environment type LINUX_GPU_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).
The environment types ARM_LAMBDA_CONTAINER
and LINUX_LAMBDA_CONTAINER
are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo).
The environment types WINDOWS_CONTAINER
and WINDOWS_SERVER_2019_CONTAINER
are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).
If you're using compute fleets during project creation, type
will be ignored.
For more information, see Build environment compute types in the CodeBuild user guide.
", "StartBuildBatchInput$environmentTypeOverride": "A container type for this batch build that overrides the one specified in the batch build project.
", - "StartBuildInput$environmentTypeOverride": "A container type for this build that overrides the one specified in the build project.
" + "StartBuildInput$environmentTypeOverride": "A container type for this build that overrides the one specified in the build project.
", + "UpdateFleetInput$environmentType": "The environment type of the compute fleet.
The environment type ARM_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).
The environment type LINUX_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
The environment type LINUX_GPU_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).
The environment type WINDOWS_SERVER_2019_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).
The environment type WINDOWS_SERVER_2022_CONTAINER
is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).
For more information, see Build environment compute types in the CodeBuild user guide.
" } }, "EnvironmentVariable": { @@ -610,6 +651,88 @@ "Webhook$filterGroups": "An array of arrays of WebhookFilter
objects used to determine which webhooks are triggered. At least one WebhookFilter
in the array must specify EVENT
as its type
.
For a build to be triggered, at least one filter group in the filterGroups
array must pass. For a filter group to pass, each of its filters must pass.
A set of dedicated instances for your build environment.
", + "refs": { + "CreateFleetOutput$fleet": "Information about the compute fleet
", + "Fleets$member": null, + "UpdateFleetOutput$fleet": "A Fleet
object.
The list of compute fleet names.
" + } + }, + "FleetCapacity": { + "base": null, + "refs": { + "CreateFleetInput$baseCapacity": "The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.
", + "Fleet$baseCapacity": "The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.
", + "ScalingConfigurationInput$maxCapacity": "The maximum number of instances in the fleet when auto-scaling.
", + "ScalingConfigurationOutput$maxCapacity": "The maximum number of instances in the fleet when auto-scaling.
", + "ScalingConfigurationOutput$desiredCapacity": "The desired number of instances in the fleet when auto-scaling.
", + "UpdateFleetInput$baseCapacity": "The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.
" + } + }, + "FleetContextCode": { + "base": null, + "refs": { + "FleetStatus$context": "Additional information about a compute fleet. Valid values include:
CREATE_FAILED
: The compute fleet has failed to create.
UPDATE_FAILED
: The compute fleet has failed to update.
The name of the compute fleet.
", + "Fleet$name": "The name of the compute fleet.
" + } + }, + "FleetNames": { + "base": null, + "refs": { + "BatchGetFleetsInput$names": "The names or ARNs of the compute fleets.
", + "BatchGetFleetsOutput$fleetsNotFound": "The names of compute fleets for which information could not be found.
" + } + }, + "FleetScalingMetricType": { + "base": null, + "refs": { + "TargetTrackingScalingConfiguration$metricType": "The metric type to determine auto-scaling.
" + } + }, + "FleetScalingType": { + "base": null, + "refs": { + "ScalingConfigurationInput$scalingType": "The scaling type for a compute fleet.
", + "ScalingConfigurationOutput$scalingType": "The scaling type for a compute fleet.
" + } + }, + "FleetSortByType": { + "base": null, + "refs": { + "ListFleetsInput$sortBy": "The criterion to be used to list compute fleet names. Valid values include:
CREATED_TIME
: List based on when each compute fleet was created.
LAST_MODIFIED_TIME
: List based on when information about each compute fleet was last changed.
NAME
: List based on each compute fleet's name.
Use sortOrder
to specify in what order to list the compute fleet names based on the preceding criteria.
The status of the compute fleet.
", + "refs": { + "Fleet$status": "The status of the compute fleet.
" + } + }, + "FleetStatusCode": { + "base": null, + "refs": { + "FleetStatus$statusCode": "The status code of the compute fleet. Valid values include:
CREATING
: The compute fleet is being created.
UPDATING
: The compute fleet is being updated.
ROTATING
: The compute fleet is being rotated.
DELETING
: The compute fleet is being deleted.
CREATE_FAILED
: The compute fleet has failed to create.
UPDATE_ROLLBACK_FAILED
: The compute fleet has failed to update and could not rollback to previous state.
ACTIVE
: The compute fleet has succeeded and is active.
Information about the requested compute fleets.
" + } + }, "GetReportGroupTrendInput": { "base": null, "refs": { @@ -753,6 +876,16 @@ "refs": { } }, + "ListFleetsInput": { + "base": null, + "refs": { + } + }, + "ListFleetsOutput": { + "base": null, + "refs": { + } + }, "ListProjectsInput": { "base": null, "refs": { @@ -881,6 +1014,7 @@ "CreateProjectInput$encryptionKey": "The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/<alias-name>
).
Contains the identifier of the Session Manager session used for the build. To work with the paused build, you open this session to examine, control, and resume the build.
", "DeleteBuildBatchInput$id": "The identifier of the batch build to delete.
", + "DeleteFleetInput$arn": "The ARN of the compute fleet.
", "DeleteProjectInput$name": "The name of the build project.
", "DeleteReportGroupInput$arn": "The ARN of the report group to delete.
", "DeleteReportInput$arn": "The ARN of the report to delete.
", @@ -890,6 +1024,10 @@ "DescribeCodeCoveragesInput$reportArn": "The ARN of the report for which test cases are returned.
", "EnvironmentVariable$name": "The name or key of the environment variable.
", "ExportedEnvironmentVariable$name": "The name of the exported environment variable.
", + "Fleet$arn": "The ARN of the compute fleet.
", + "Fleet$id": "The ID of the compute fleet.
", + "FleetArns$member": null, + "FleetNames$member": null, "GetReportGroupTrendInput$reportGroupArn": "The ARN of the report group that contains the reports to analyze.
", "GetResourcePolicyInput$resourceArn": "The ARN of the resource that is associated with the resource policy.
", "GetResourcePolicyOutput$policy": "The resource policy for the resource identified by the input ARN parameter.
", @@ -939,6 +1077,7 @@ "StopBuildInput$id": "The ID of the build.
", "Subnets$member": null, "TestCase$reportArn": "The ARN of the report to which the test case belongs.
", + "UpdateFleetInput$arn": "The ARN of the compute fleet.
", "UpdateProjectInput$name": "The name of the build project.
You cannot change a build project's name.
The replacement ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
", "UpdateProjectInput$encryptionKey": "The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/<alias-name>
).
The number of reports to analyze. This operation always retrieves the most recent reports.
If this parameter is omitted, the most recent 100 reports are analyzed.
", "ListBuildBatchesForProjectInput$maxResults": "The maximum number of results to return.
", "ListBuildBatchesInput$maxResults": "The maximum number of results to return.
", + "ListFleetsInput$maxResults": "The maximum number of paginated compute fleets returned per response. Use nextToken
to iterate pages in the list of returned compute fleets.
The maximum number of paginated report groups returned per response. Use nextToken
to iterate pages in the list of returned ReportGroup
objects. The default value is 100.
The maximum number of paginated reports in this report group returned per response. Use nextToken
to iterate pages in the list of returned Report
objects. The default value is 100.
The maximum number of paginated reports returned per response. Use nextToken
to iterate pages in the list of returned Report
objects. The default value is 100.
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using Amazon Elastic File System.
Information about the compute fleet of the build project. For more information, see Working with reserved capacity in CodeBuild.
", + "refs": { + "ProjectEnvironment$fleet": "A ProjectFleet object to use for this build project.
", + "StartBuildInput$fleetOverride": "A ProjectFleet object specified for this build that overrides the one defined in the build project.
" + } + }, "ProjectName": { "base": null, "refs": { @@ -1420,6 +1567,19 @@ "ReportExportConfig$s3Destination": " A S3ReportExportConfig
object that contains information about the S3 bucket where the run of a report is exported.
The scaling configuration input of a compute fleet.
", + "refs": { + "CreateFleetInput$scalingConfiguration": "The scaling configuration of the compute fleet.
", + "UpdateFleetInput$scalingConfiguration": "The scaling configuration of the compute fleet.
" + } + }, + "ScalingConfigurationOutput": { + "base": "The scaling configuration output of a compute fleet.
", + "refs": { + "Fleet$scalingConfiguration": "The scaling configuration of the compute fleet.
" + } + }, "SecurityGroupIds": { "base": null, "refs": { @@ -1432,6 +1592,12 @@ "ImportSourceCredentialsInput$token": "For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
" } }, + "SensitiveString": { + "base": null, + "refs": { + "ListFleetsInput$nextToken": "During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
" + } + }, "ServerType": { "base": null, "refs": { @@ -1454,6 +1620,7 @@ "ListBuildBatchesInput$sortOrder": "Specifies the sort order of the returned items. Valid values include:
ASCENDING
: List the batch build identifiers in ascending order by identifier.
DESCENDING
: List the batch build identifiers in descending order by identifier.
The order to sort the results in. The results are sorted by build number, not the build identifier. If this is not specified, the results are sorted in descending order.
Valid values include:
ASCENDING
: List the build identifiers in ascending order, by build number.
DESCENDING
: List the build identifiers in descending order, by build number.
If the project has more than 100 builds, setting the sort order will result in an error.
", "ListBuildsInput$sortOrder": "The order to list build IDs. Valid values include:
ASCENDING
: List the build IDs in ascending order by build ID.
DESCENDING
: List the build IDs in descending order by build ID.
The order in which to list compute fleets. Valid values include:
ASCENDING
: List in ascending order.
DESCENDING
: List in descending order.
Use sortBy
to specify the criterion to be used to list compute fleet names.
The order in which to list build projects. Valid values include:
ASCENDING
: List in ascending order.
DESCENDING
: List in descending order.
Use sortBy
to specify the criterion to be used to list build project names.
Used to specify the order to sort the list of returned report groups. Valid values are ASCENDING
and DESCENDING
.
Use to specify whether the results are returned in ascending or descending order.
", @@ -1579,6 +1746,7 @@ "EnvironmentImage$description": "The description of the Docker image.
", "EnvironmentVariable$value": "The value of the environment variable.
We strongly discourage the use of PLAINTEXT
environment variables to store sensitive values, especially Amazon Web Services secret key IDs. PLAINTEXT
environment variables can be displayed in plain text using the CodeBuild console and the CLI. For sensitive values, we recommend you use an environment variable of type PARAMETER_STORE
or SECRETS_MANAGER
.
The value assigned to the exported environment variable.
", + "FleetStatus$message": "A message associated with the status of a compute fleet.
", "ImageVersions$member": null, "ListBuildBatchesForProjectInput$nextToken": "The nextToken
value returned from a previous call to ListBuildBatchesForProject
. This specifies the next item to return. To return the beginning of the list, exclude this parameter.
If there are more items to return, this contains a token that is passed to a subsequent call to ListBuildBatchesForProject
to retrieve the next set of items.
If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.
", "ListBuildsInput$nextToken": "During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
", "ListBuildsOutput$nextToken": "If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.
", + "ListFleetsOutput$nextToken": "If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.
", "ListProjectsOutput$nextToken": "If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.
", "ListReportGroupsInput$nextToken": " During a previous call, the maximum number of items that can be returned is the value specified in maxResults
. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
During a previous call, the maximum number of items that can be returned is the value specified in maxResults
. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
The location in the container where you mount the file system.
", "ProjectFileSystemLocation$identifier": "The name used to access a file system created by Amazon EFS. CodeBuild creates an environment variable by appending the identifier
in all capital letters to CODEBUILD_
. For example, if you specify my_efs
for identifier
, a new environment variable is create named CODEBUILD_MY_EFS
.
The identifier
is used to mount your file system.
The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild are nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2
. For more information, see Recommended NFS Mount Options.
Specifies the compute fleet ARN for the build project.
", "ProjectSource$location": "Information about the location of the source code to be built. Valid values include:
For source code settings that are specified in the source action of a pipeline in CodePipeline, location
should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.
For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
For source code in an Amazon S3 input bucket, one of the following.
The path to the ZIP file that contains the source code (for example, <bucket-name>/<path>/<object-name>.zip
).
The path to the folder that contains the source code (for example, <bucket-name>/<path-to-source-code>/<folder>/
).
For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub Authorize application page, for Organization access, choose Request access next to each repository you want to allow CodeBuild to have access to, and then choose Authorize application. (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the source
object, set the auth
object's type
value to OAUTH
.
For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket Confirm access to your account page, choose Grant access. (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the source
object, set the auth
object's type
value to OAUTH
.
If you specify CODEPIPELINE
for the Type
property, don't specify this property. For all of the other types, you must specify Location
.
The buildspec file declaration to use for the builds in this build project.
If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.
An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.
", @@ -1678,14 +1848,30 @@ "TagList": { "base": null, "refs": { + "CreateFleetInput$tags": "A list of tag key and value pairs associated with this compute fleet.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
", "CreateProjectInput$tags": "A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
", "CreateReportGroupInput$tags": "A list of tag key and value pairs associated with this report group.
These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
", + "Fleet$tags": "A list of tag key and value pairs associated with this compute fleet.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
", "Project$tags": "A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
", "ReportGroup$tags": "A list of tag key and value pairs associated with this report group.
These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
", + "UpdateFleetInput$tags": "A list of tag key and value pairs associated with this compute fleet.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
", "UpdateProjectInput$tags": "An updated list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
", "UpdateReportGroupInput$tags": "An updated list of tag key and value pairs associated with this report group.
These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
" } }, + "TargetTrackingScalingConfiguration": { + "base": "Defines when a new instance is auto-scaled into the compute fleet.
", + "refs": { + "TargetTrackingScalingConfigurations$member": null + } + }, + "TargetTrackingScalingConfigurations": { + "base": null, + "refs": { + "ScalingConfigurationInput$targetTrackingScalingConfigs": "A list of TargetTrackingScalingConfiguration
objects.
A list of TargetTrackingScalingConfiguration
objects.
Information about a test case created using a framework such as NUnit or Cucumber. A test case might be a unit test or a configuration test.
", "refs": { @@ -1738,6 +1924,8 @@ "BuildPhase$endTime": "When the build phase ended, expressed in Unix time format.
", "BuildSummary$requestedOn": "When the build was started, expressed in Unix time format.
", "CodeCoverage$expired": "The date and time that the tests were run.
", + "Fleet$created": "The time at which the compute fleet was created.
", + "Fleet$lastModified": "The time at which the compute fleet was last modified.
", "Project$created": "When the build project was created, expressed in Unix time format.
", "Project$lastModified": "When the build project's settings were last modified, expressed in Unix time format.
", "Report$created": "The date and time this report run occurred.
", @@ -1748,6 +1936,16 @@ "Webhook$lastModifiedSecret": "A timestamp that indicates the last time a repository's secret token was modified.
" } }, + "UpdateFleetInput": { + "base": null, + "refs": { + } + }, + "UpdateFleetOutput": { + "base": null, + "refs": { + } + }, "UpdateProjectInput": { "base": null, "refs": { @@ -1863,6 +2061,12 @@ "WebhookFilter$excludeMatchedPattern": " Used to indicate that the pattern
determines which webhook events do not trigger a build. If true, then a webhook event that does not match the pattern
triggers a build. If false, then a webhook event that matches the pattern
triggers a build.
The value of metricType
when to start scaling.
Adds or removes replicas in the specified global table. The global table must already exist to be able to use this operation. Any replica to be added must be empty, have the same name as the global table, have the same key schema, have DynamoDB Streams enabled, and have the same provisioned and maximum write capacity units.
This operation only applies to Version 2017.11.29 (Legacy) of global tables. We recommend using Version 2019.11.21 (Current) when creating new global tables, as it provides greater flexibility, higher efficiency and consumes less write capacity than 2017.11.29 (Legacy). To determine which version you are using, see Determining the version. To update existing global tables from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see Updating global tables.
This operation only applies to Version 2017.11.29 of global tables. If you are using global tables Version 2019.11.21 you can use DescribeTable instead.
Although you can use UpdateGlobalTable
to add replicas and remove replicas in a single request, for simplicity we recommend that you issue separate requests for adding or removing replicas.
If global secondary indexes are specified, then the following conditions must also be met:
The global secondary indexes must have the same name.
The global secondary indexes must have the same hash key and sort key (if present).
The global secondary indexes must have the same provisioned and maximum write capacity units.
Updates settings for a global table.
This operation only applies to Version 2017.11.29 (Legacy) of global tables. We recommend using Version 2019.11.21 (Current) when creating new global tables, as it provides greater flexibility, higher efficiency and consumes less write capacity than 2017.11.29 (Legacy). To determine which version you are using, see Determining the version. To update existing global tables from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see Updating global tables.
Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).
You can also return the item's attribute values in the same UpdateItem
operation using the ReturnValues
parameter.
The command to update the Kinesis stream destination.
", "UpdateTable": "Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.
This operation only applies to Version 2019.11.21 (Current) of global tables.
You can only perform one of the following operations at once:
Modify the provisioned throughput settings of the table.
Remove a global secondary index from the table.
Create a new global secondary index on the table. After the index begins backfilling, you can use UpdateTable
to perform other operations.
UpdateTable
is an asynchronous operation; while it is executing, the table status changes from ACTIVE
to UPDATING
. While it is UPDATING
, you cannot issue another UpdateTable
request. When the table returns to the ACTIVE
state, the UpdateTable
operation is complete.
Updates auto scaling settings on your global tables at once.
This operation only applies to Version 2019.11.21 (Current) of global tables.
The UpdateTimeToLive
method enables or disables Time to Live (TTL) for the specified table. A successful UpdateTimeToLive
call returns the current TimeToLiveSpecification
. It can take up to one hour for the change to fully process. Any additional UpdateTimeToLive
calls for the same table during this one hour duration result in a ValidationException
.
TTL compares the current time in epoch time format to the time stored in the TTL attribute of an item. If the epoch time value stored in the attribute is less than the current time, the item is marked as expired and subsequently deleted.
The epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.
DynamoDB deletes expired items on a best-effort basis to ensure availability of throughput for other data operations.
DynamoDB typically deletes expired items within two days of expiration. The exact duration within which an item gets deleted after expiration is specific to the nature of the workload. Items that have expired and not been deleted will still show up in reads, queries, and scans.
As items are deleted, they are removed from any local secondary index and global secondary index immediately in the same eventually consistent way as a standard delete operation.
For more information, see Time To Live in the Amazon DynamoDB Developer Guide.
" }, "shapes": { + "ApproximateCreationDateTimePrecision": { + "base": null, + "refs": { + "EnableKinesisStreamingConfiguration$ApproximateCreationDateTimePrecision": "Toggle for the precision of Kinesis data stream timestamp. The values are either MILLISECOND
or MICROSECOND
.
The precision of the Kinesis data stream timestamp. The values are either MILLISECOND
or MICROSECOND
.
Enables updating the precision of Kinesis data stream timestamp.
" + } + }, "ArchivalReason": { "base": null, "refs": { @@ -963,7 +972,8 @@ "base": null, "refs": { "KinesisDataStreamDestination$DestinationStatus": "The current status of replication.
", - "KinesisStreamingDestinationOutput$DestinationStatus": "The current status of the replication.
" + "KinesisStreamingDestinationOutput$DestinationStatus": "The current status of the replication.
", + "UpdateKinesisStreamingDestinationOutput$DestinationStatus": "The status of the attempt to update the Kinesis streaming destination output.
" } }, "DoubleObject": { @@ -978,6 +988,13 @@ "refs": { } }, + "EnableKinesisStreamingConfiguration": { + "base": "Enables setting the configuration for Kinesis Streaming.
", + "refs": { + "KinesisStreamingDestinationInput$EnableKinesisStreamingConfiguration": "The source for the Kinesis streaming information that is being enabled.
", + "KinesisStreamingDestinationOutput$EnableKinesisStreamingConfiguration": "The destination for the Kinesis streaming information that is being enabled.
" + } + }, "Endpoint": { "base": "An endpoint information details.
", "refs": { @@ -2005,7 +2022,7 @@ } }, "ParameterizedStatement": { - "base": "Represents a PartiQL statment that uses parameters.
", + "base": "Represents a PartiQL statement that uses parameters.
", "refs": { "ParameterizedStatements$member": null } @@ -2040,7 +2057,7 @@ "refs": { "BatchStatementRequest$Statement": "A valid PartiQL statement.
", "ExecuteStatementInput$Statement": "The PartiQL statement representing the operation to run.
", - "ParameterizedStatement$Statement": "A PartiQL statment that uses parameters.
" + "ParameterizedStatement$Statement": "A PartiQL statement that uses parameters.
" } }, "PointInTimeRecoveryDescription": { @@ -2684,7 +2701,9 @@ "KinesisDataStreamDestination$StreamArn": "The ARN for a specific Kinesis data stream.
", "KinesisStreamingDestinationInput$StreamArn": "The ARN for a Kinesis data stream.
", "KinesisStreamingDestinationOutput$StreamArn": "The ARN for the specific Kinesis data stream.
", - "TableDescription$LatestStreamArn": "The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.
" + "TableDescription$LatestStreamArn": "The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.
", + "UpdateKinesisStreamingDestinationInput$StreamArn": "The ARN for the Kinesis stream input.
", + "UpdateKinesisStreamingDestinationOutput$StreamArn": "The ARN for the Kinesis stream input.
" } }, "StreamEnabled": { @@ -2699,7 +2718,7 @@ "CreateTableInput$StreamSpecification": "The settings for DynamoDB Streams on the table. These settings consist of:
StreamEnabled
- Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false).
StreamViewType
- When an item in the table is modified, StreamViewType
determines what information is written to the table's stream. Valid values for StreamViewType
are:
KEYS_ONLY
- Only the key attributes of the modified item are written to the stream.
NEW_IMAGE
- The entire item, as it appears after it was modified, is written to the stream.
OLD_IMAGE
- The entire item, as it appeared before it was modified, is written to the stream.
NEW_AND_OLD_IMAGES
- Both the new and the old item images of the item are written to the stream.
Stream settings on the table when the backup was created.
", "TableDescription$StreamSpecification": "The current DynamoDB Streams configuration for the table.
", - "UpdateTableInput$StreamSpecification": "Represents the DynamoDB Streams configuration for the table.
You receive a ValidationException
if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
Represents the DynamoDB Streams configuration for the table.
You receive a ResourceInUseException
if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
The name of the global table
", "UpdateGlobalTableSettingsOutput$GlobalTableName": "The name of the global table.
", "UpdateItemInput$TableName": "The name of the table containing the item to update.
", + "UpdateKinesisStreamingDestinationInput$TableName": "The table name for the Kinesis streaming destination input.
", + "UpdateKinesisStreamingDestinationOutput$TableName": "The table name for the Kinesis streaming destination output.
", "UpdateTableInput$TableName": "The name of the table to be updated.
", "UpdateTableReplicaAutoScalingInput$TableName": "The name of the global table to be updated.
", "UpdateTimeToLiveInput$TableName": "The name of the table to be configured.
" @@ -3120,6 +3141,23 @@ "refs": { } }, + "UpdateKinesisStreamingConfiguration": { + "base": "Enables updating the configuration for Kinesis Streaming.
", + "refs": { + "UpdateKinesisStreamingDestinationInput$UpdateKinesisStreamingConfiguration": "The command to update the Kinesis stream configuration.
", + "UpdateKinesisStreamingDestinationOutput$UpdateKinesisStreamingConfiguration": "The command to update the Kinesis streaming destination configuration.
" + } + }, + "UpdateKinesisStreamingDestinationInput": { + "base": null, + "refs": { + } + }, + "UpdateKinesisStreamingDestinationOutput": { + "base": null, + "refs": { + } + }, "UpdateReplicationGroupMemberAction": { "base": "Represents a replica to be modified.
", "refs": { diff --git a/models/apis/qconnect/2020-10-19/api-2.json b/models/apis/qconnect/2020-10-19/api-2.json index 4cee1706576..534bf68c63a 100644 --- a/models/apis/qconnect/2020-10-19/api-2.json +++ b/models/apis/qconnect/2020-10-19/api-2.json @@ -2361,7 +2361,7 @@ }, "QuickResponseName":{ "type":"string", - "max":40, + "max":100, "min":1 }, "QuickResponseOrderField":{ diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index c1ed6d00f02..d1d1b6f2027 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -1938,6 +1938,7 @@ "ap-southeast-1" : { }, "ap-southeast-2" : { }, "ap-southeast-3" : { }, + "ap-southeast-4" : { }, "ca-central-1" : { }, "eu-central-1" : { }, "eu-central-2" : { }, @@ -1947,6 +1948,7 @@ "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, + "il-central-1" : { }, "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, @@ -17640,6 +17642,7 @@ "eu-west-2" : { }, "eu-west-3" : { }, "il-central-1" : { }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { }, diff --git a/service/athena/api.go b/service/athena/api.go index 4b73e465ac4..1cf9a2c92c8 100644 --- a/service/athena/api.go +++ b/service/athena/api.go @@ -3178,9 +3178,12 @@ func (c *Athena) ImportNotebookRequest(input *ImportNotebookInput) (req *request // ImportNotebook API operation for Amazon Athena. // -// Imports a single ipynb file to a Spark enabled workgroup. The maximum file -// size that can be imported is 10 megabytes. If an ipynb file with the same -// name already exists in the workgroup, throws an error. +// Imports a single ipynb file to a Spark enabled workgroup. To import the notebook, +// the request must specify a value for either Payload or NoteBookS3LocationUri. +// If neither is specified or both are specified, an InvalidRequestException +// occurs. The maximum file size that can be imported is 10 megabytes. If an +// ipynb file with the same name already exists in the workgroup, throws an +// error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -11781,10 +11784,11 @@ type ImportNotebookInput struct { // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // The notebook content to be imported. - // - // Payload is a required field - Payload *string `min:"1" type:"string" required:"true"` + // A URI that specifies the Amazon S3 location of a notebook file in ipynb format. + NotebookS3LocationUri *string `type:"string"` + + // The notebook content to be imported. The payload must be in ipynb format. + Payload *string `min:"1" type:"string"` // The notebook content type. Currently, the only valid type is IPYNB. // @@ -11827,9 +11831,6 @@ func (s *ImportNotebookInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.Payload == nil { - invalidParams.Add(request.NewErrParamRequired("Payload")) - } if s.Payload != nil && len(*s.Payload) < 1 { invalidParams.Add(request.NewErrParamMinLen("Payload", 1)) } @@ -11858,6 +11859,12 @@ func (s *ImportNotebookInput) SetName(v string) *ImportNotebookInput { return s } +// SetNotebookS3LocationUri sets the NotebookS3LocationUri field's value. +func (s *ImportNotebookInput) SetNotebookS3LocationUri(v string) *ImportNotebookInput { + s.NotebookS3LocationUri = &v + return s +} + // SetPayload sets the Payload field's value. func (s *ImportNotebookInput) SetPayload(v string) *ImportNotebookInput { s.Payload = &v @@ -18451,8 +18458,9 @@ type WorkGroupConfiguration struct { EngineVersion *EngineVersion `type:"structure"` // The ARN of the execution role used to access user resources for Spark sessions - // and Identity Center enabled workgroups. This property applies only to Spark - // enabled workgroups and Identity Center enabled workgroups. + // and IAM Identity Center enabled workgroups. This property applies only to + // Spark enabled workgroups and IAM Identity Center enabled workgroups. The + // property is required for IAM Identity Center enabled workgroups. ExecutionRole *string `min:"20" type:"string"` // Specifies whether the workgroup is IAM Identity Center supported. diff --git a/service/codebuild/api.go b/service/codebuild/api.go index 0c187095f91..85c3509d63b 100644 --- a/service/codebuild/api.go +++ b/service/codebuild/api.go @@ -247,6 +247,84 @@ func (c *CodeBuild) BatchGetBuildsWithContext(ctx aws.Context, input *BatchGetBu return out, req.Send() } +const opBatchGetFleets = "BatchGetFleets" + +// BatchGetFleetsRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetFleets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetFleets for more information on using the BatchGetFleets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchGetFleetsRequest method. +// req, resp := client.BatchGetFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetFleets +func (c *CodeBuild) BatchGetFleetsRequest(input *BatchGetFleetsInput) (req *request.Request, output *BatchGetFleetsOutput) { + op := &request.Operation{ + Name: opBatchGetFleets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetFleetsInput{} + } + + output = &BatchGetFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetFleets API operation for AWS CodeBuild. +// +// Gets information about one or more compute fleets. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation BatchGetFleets for usage and error information. +// +// Returned Error Types: +// - InvalidInputException +// The input value that was provided is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetFleets +func (c *CodeBuild) BatchGetFleets(input *BatchGetFleetsInput) (*BatchGetFleetsOutput, error) { + req, out := c.BatchGetFleetsRequest(input) + return out, req.Send() +} + +// BatchGetFleetsWithContext is the same as BatchGetFleets with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetFleets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeBuild) BatchGetFleetsWithContext(ctx aws.Context, input *BatchGetFleetsInput, opts ...request.Option) (*BatchGetFleetsOutput, error) { + req, out := c.BatchGetFleetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetProjects = "BatchGetProjects" // BatchGetProjectsRequest generates a "aws/request.Request" representing the @@ -481,6 +559,93 @@ func (c *CodeBuild) BatchGetReportsWithContext(ctx aws.Context, input *BatchGetR return out, req.Send() } +const opCreateFleet = "CreateFleet" + +// CreateFleetRequest generates a "aws/request.Request" representing the +// client's request for the CreateFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFleet for more information on using the CreateFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateFleetRequest method. +// req, resp := client.CreateFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateFleet +func (c *CodeBuild) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) { + op := &request.Operation{ + Name: opCreateFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateFleetInput{} + } + + output = &CreateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFleet API operation for AWS CodeBuild. +// +// Creates a compute fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation CreateFleet for usage and error information. +// +// Returned Error Types: +// +// - InvalidInputException +// The input value that was provided is not valid. +// +// - ResourceAlreadyExistsException +// The specified Amazon Web Services resource cannot be created, because an +// Amazon Web Services resource with the same settings already exists. +// +// - AccountLimitExceededException +// An Amazon Web Services service limit was exceeded for the calling Amazon +// Web Services account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateFleet +func (c *CodeBuild) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { + req, out := c.CreateFleetRequest(input) + return out, req.Send() +} + +// CreateFleetWithContext is the same as CreateFleet with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeBuild) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) { + req, out := c.CreateFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the @@ -832,6 +997,86 @@ func (c *CodeBuild) DeleteBuildBatchWithContext(ctx aws.Context, input *DeleteBu return out, req.Send() } +const opDeleteFleet = "DeleteFleet" + +// DeleteFleetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFleet for more information on using the DeleteFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteFleetRequest method. +// req, resp := client.DeleteFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteFleet +func (c *CodeBuild) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) { + op := &request.Operation{ + Name: opDeleteFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFleetInput{} + } + + output = &DeleteFleetOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteFleet API operation for AWS CodeBuild. +// +// Deletes a compute fleet. When you delete a compute fleet, its builds are +// not deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation DeleteFleet for usage and error information. +// +// Returned Error Types: +// - InvalidInputException +// The input value that was provided is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteFleet +func (c *CodeBuild) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { + req, out := c.DeleteFleetRequest(input) + return out, req.Send() +} + +// DeleteFleetWithContext is the same as DeleteFleet with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeBuild) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) { + req, out := c.DeleteFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteProject = "DeleteProject" // DeleteProjectRequest generates a "aws/request.Request" representing the @@ -2550,127 +2795,127 @@ func (c *CodeBuild) ListCuratedEnvironmentImagesWithContext(ctx aws.Context, inp return out, req.Send() } -const opListProjects = "ListProjects" +const opListFleets = "ListFleets" -// ListProjectsRequest generates a "aws/request.Request" representing the -// client's request for the ListProjects operation. The "output" return +// ListFleetsRequest generates a "aws/request.Request" representing the +// client's request for the ListFleets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListProjects for more information on using the ListProjects +// See ListFleets for more information on using the ListFleets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListProjectsRequest method. -// req, resp := client.ListProjectsRequest(params) +// // Example sending a request using the ListFleetsRequest method. +// req, resp := client.ListFleetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects -func (c *CodeBuild) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListFleets +func (c *CodeBuild) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) { op := &request.Operation{ - Name: opListProjects, + Name: opListFleets, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, - LimitToken: "", + LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { - input = &ListProjectsInput{} + input = &ListFleetsInput{} } - output = &ListProjectsOutput{} + output = &ListFleetsOutput{} req = c.newRequest(op, input, output) return } -// ListProjects API operation for AWS CodeBuild. +// ListFleets API operation for AWS CodeBuild. // -// Gets a list of build project names, with each build project name representing -// a single build project. +// Gets a list of compute fleet names with each compute fleet name representing +// a single compute fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeBuild's -// API operation ListProjects for usage and error information. +// API operation ListFleets for usage and error information. // // Returned Error Types: // - InvalidInputException // The input value that was provided is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects -func (c *CodeBuild) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { - req, out := c.ListProjectsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListFleets +func (c *CodeBuild) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { + req, out := c.ListFleetsRequest(input) return out, req.Send() } -// ListProjectsWithContext is the same as ListProjects with the addition of +// ListFleetsWithContext is the same as ListFleets with the addition of // the ability to pass a context and additional request options. // -// See ListProjects for details on how to use this API operation. +// See ListFleets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeBuild) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error) { - req, out := c.ListProjectsRequest(input) +func (c *CodeBuild) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput, opts ...request.Option) (*ListFleetsOutput, error) { + req, out := c.ListFleetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListProjectsPages iterates over the pages of a ListProjects operation, +// ListFleetsPages iterates over the pages of a ListFleets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListProjects method for more information on how to use this operation. +// See ListFleets method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListProjects operation. +// // Example iterating over at most 3 pages of a ListFleets operation. // pageNum := 0 -// err := client.ListProjectsPages(params, -// func(page *codebuild.ListProjectsOutput, lastPage bool) bool { +// err := client.ListFleetsPages(params, +// func(page *codebuild.ListFleetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *CodeBuild) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error { - return c.ListProjectsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *CodeBuild) ListFleetsPages(input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool) error { + return c.ListFleetsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListProjectsPagesWithContext same as ListProjectsPages except +// ListFleetsPagesWithContext same as ListFleetsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeBuild) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error { +func (c *CodeBuild) ListFleetsPagesWithContext(ctx aws.Context, input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListProjectsInput + var inCpy *ListFleetsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListProjectsRequest(inCpy) + req, _ := c.ListFleetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2678,7 +2923,7 @@ func (c *CodeBuild) ListProjectsPagesWithContext(ctx aws.Context, input *ListPro } for p.Next() { - if !fn(p.Page().(*ListProjectsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListFleetsOutput), !p.HasNextPage()) { break } } @@ -2686,76 +2931,212 @@ func (c *CodeBuild) ListProjectsPagesWithContext(ctx aws.Context, input *ListPro return p.Err() } -const opListReportGroups = "ListReportGroups" +const opListProjects = "ListProjects" -// ListReportGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListReportGroups operation. The "output" return +// ListProjectsRequest generates a "aws/request.Request" representing the +// client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListReportGroups for more information on using the ListReportGroups +// See ListProjects for more information on using the ListProjects // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListReportGroupsRequest method. -// req, resp := client.ListReportGroupsRequest(params) +// // Example sending a request using the ListProjectsRequest method. +// req, resp := client.ListProjectsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroups -func (c *CodeBuild) ListReportGroupsRequest(input *ListReportGroupsInput) (req *request.Request, output *ListReportGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects +func (c *CodeBuild) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) { op := &request.Operation{ - Name: opListReportGroups, + Name: opListProjects, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", + LimitToken: "", TruncationToken: "", }, } if input == nil { - input = &ListReportGroupsInput{} + input = &ListProjectsInput{} } - output = &ListReportGroupsOutput{} + output = &ListProjectsOutput{} req = c.newRequest(op, input, output) return } -// ListReportGroups API operation for AWS CodeBuild. +// ListProjects API operation for AWS CodeBuild. // -// Gets a list ARNs for the report groups in the current Amazon Web Services -// account. +// Gets a list of build project names, with each build project name representing +// a single build project. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeBuild's -// API operation ListReportGroups for usage and error information. +// API operation ListProjects for usage and error information. // // Returned Error Types: // - InvalidInputException // The input value that was provided is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroups -func (c *CodeBuild) ListReportGroups(input *ListReportGroupsInput) (*ListReportGroupsOutput, error) { - req, out := c.ListReportGroupsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects +func (c *CodeBuild) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { + req, out := c.ListProjectsRequest(input) return out, req.Send() } -// ListReportGroupsWithContext is the same as ListReportGroups with the addition of +// ListProjectsWithContext is the same as ListProjects with the addition of +// the ability to pass a context and additional request options. +// +// See ListProjects for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeBuild) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error) { + req, out := c.ListProjectsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListProjectsPages iterates over the pages of a ListProjects operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListProjects method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListProjects operation. +// pageNum := 0 +// err := client.ListProjectsPages(params, +// func(page *codebuild.ListProjectsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *CodeBuild) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error { + return c.ListProjectsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListProjectsPagesWithContext same as ListProjectsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeBuild) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListProjectsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListProjectsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListProjectsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListReportGroups = "ListReportGroups" + +// ListReportGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListReportGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListReportGroups for more information on using the ListReportGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListReportGroupsRequest method. +// req, resp := client.ListReportGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroups +func (c *CodeBuild) ListReportGroupsRequest(input *ListReportGroupsInput) (req *request.Request, output *ListReportGroupsOutput) { + op := &request.Operation{ + Name: opListReportGroups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListReportGroupsInput{} + } + + output = &ListReportGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListReportGroups API operation for AWS CodeBuild. +// +// Gets a list ARNs for the report groups in the current Amazon Web Services +// account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation ListReportGroups for usage and error information. +// +// Returned Error Types: +// - InvalidInputException +// The input value that was provided is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroups +func (c *CodeBuild) ListReportGroups(input *ListReportGroupsInput) (*ListReportGroupsOutput, error) { + req, out := c.ListReportGroupsRequest(input) + return out, req.Send() +} + +// ListReportGroupsWithContext is the same as ListReportGroups with the addition of // the ability to pass a context and additional request options. // // See ListReportGroups for details on how to use this API operation. @@ -4030,6 +4411,92 @@ func (c *CodeBuild) StopBuildBatchWithContext(ctx aws.Context, input *StopBuildB return out, req.Send() } +const opUpdateFleet = "UpdateFleet" + +// UpdateFleetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFleet for more information on using the UpdateFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateFleetRequest method. +// req, resp := client.UpdateFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateFleet +func (c *CodeBuild) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput) { + op := &request.Operation{ + Name: opUpdateFleet, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateFleetInput{} + } + + output = &UpdateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFleet API operation for AWS CodeBuild. +// +// Updates a compute fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeBuild's +// API operation UpdateFleet for usage and error information. +// +// Returned Error Types: +// +// - InvalidInputException +// The input value that was provided is not valid. +// +// - ResourceNotFoundException +// The specified Amazon Web Services resource cannot be found. +// +// - AccountLimitExceededException +// An Amazon Web Services service limit was exceeded for the calling Amazon +// Web Services account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateFleet +func (c *CodeBuild) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) { + req, out := c.UpdateFleetRequest(input) + return out, req.Send() +} + +// UpdateFleetWithContext is the same as UpdateFleet with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeBuild) UpdateFleetWithContext(ctx aws.Context, input *UpdateFleetInput, opts ...request.Option) (*UpdateFleetOutput, error) { + req, out := c.UpdateFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateProject = "UpdateProject" // UpdateProjectRequest generates a "aws/request.Request" representing the @@ -4718,12 +5185,10 @@ func (s *BatchGetBuildsOutput) SetBuildsNotFound(v []*string) *BatchGetBuildsOut return s } -type BatchGetProjectsInput struct { +type BatchGetFleetsInput struct { _ struct{} `type:"structure"` - // The names or ARNs of the build projects. To get information about a project - // shared with your Amazon Web Services account, its ARN must be specified. - // You cannot specify a shared project using its name. + // The names or ARNs of the compute fleets. // // Names is a required field Names []*string `locationName:"names" min:"1" type:"list" required:"true"` @@ -4734,7 +5199,7 @@ type BatchGetProjectsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchGetProjectsInput) String() string { +func (s BatchGetFleetsInput) String() string { return awsutil.Prettify(s) } @@ -4743,13 +5208,13 @@ func (s BatchGetProjectsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchGetProjectsInput) GoString() string { +func (s BatchGetFleetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetProjectsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetProjectsInput"} +func (s *BatchGetFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetFleetsInput"} if s.Names == nil { invalidParams.Add(request.NewErrParamRequired("Names")) } @@ -4764,19 +5229,19 @@ func (s *BatchGetProjectsInput) Validate() error { } // SetNames sets the Names field's value. -func (s *BatchGetProjectsInput) SetNames(v []*string) *BatchGetProjectsInput { +func (s *BatchGetFleetsInput) SetNames(v []*string) *BatchGetFleetsInput { s.Names = v return s } -type BatchGetProjectsOutput struct { +type BatchGetFleetsOutput struct { _ struct{} `type:"structure"` - // Information about the requested build projects. - Projects []*Project `locationName:"projects" type:"list"` + // Information about the requested compute fleets. + Fleets []*Fleet `locationName:"fleets" min:"1" type:"list"` - // The names of build projects for which information could not be found. - ProjectsNotFound []*string `locationName:"projectsNotFound" min:"1" type:"list"` + // The names of compute fleets for which information could not be found. + FleetsNotFound []*string `locationName:"fleetsNotFound" min:"1" type:"list"` } // String returns the string representation. @@ -4784,7 +5249,7 @@ type BatchGetProjectsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchGetProjectsOutput) String() string { +func (s BatchGetFleetsOutput) String() string { return awsutil.Prettify(s) } @@ -4793,29 +5258,31 @@ func (s BatchGetProjectsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchGetProjectsOutput) GoString() string { +func (s BatchGetFleetsOutput) GoString() string { return s.String() } -// SetProjects sets the Projects field's value. -func (s *BatchGetProjectsOutput) SetProjects(v []*Project) *BatchGetProjectsOutput { - s.Projects = v +// SetFleets sets the Fleets field's value. +func (s *BatchGetFleetsOutput) SetFleets(v []*Fleet) *BatchGetFleetsOutput { + s.Fleets = v return s } -// SetProjectsNotFound sets the ProjectsNotFound field's value. -func (s *BatchGetProjectsOutput) SetProjectsNotFound(v []*string) *BatchGetProjectsOutput { - s.ProjectsNotFound = v +// SetFleetsNotFound sets the FleetsNotFound field's value. +func (s *BatchGetFleetsOutput) SetFleetsNotFound(v []*string) *BatchGetFleetsOutput { + s.FleetsNotFound = v return s } -type BatchGetReportGroupsInput struct { +type BatchGetProjectsInput struct { _ struct{} `type:"structure"` - // An array of report group ARNs that identify the report groups to return. + // The names or ARNs of the build projects. To get information about a project + // shared with your Amazon Web Services account, its ARN must be specified. + // You cannot specify a shared project using its name. // - // ReportGroupArns is a required field - ReportGroupArns []*string `locationName:"reportGroupArns" min:"1" type:"list" required:"true"` + // Names is a required field + Names []*string `locationName:"names" min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -4823,7 +5290,7 @@ type BatchGetReportGroupsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchGetReportGroupsInput) String() string { +func (s BatchGetProjectsInput) String() string { return awsutil.Prettify(s) } @@ -4832,18 +5299,18 @@ func (s BatchGetReportGroupsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchGetReportGroupsInput) GoString() string { +func (s BatchGetProjectsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetReportGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetReportGroupsInput"} - if s.ReportGroupArns == nil { - invalidParams.Add(request.NewErrParamRequired("ReportGroupArns")) +func (s *BatchGetProjectsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetProjectsInput"} + if s.Names == nil { + invalidParams.Add(request.NewErrParamRequired("Names")) } - if s.ReportGroupArns != nil && len(s.ReportGroupArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ReportGroupArns", 1)) + if s.Names != nil && len(s.Names) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Names", 1)) } if invalidParams.Len() > 0 { @@ -4852,9 +5319,98 @@ func (s *BatchGetReportGroupsInput) Validate() error { return nil } -// SetReportGroupArns sets the ReportGroupArns field's value. -func (s *BatchGetReportGroupsInput) SetReportGroupArns(v []*string) *BatchGetReportGroupsInput { - s.ReportGroupArns = v +// SetNames sets the Names field's value. +func (s *BatchGetProjectsInput) SetNames(v []*string) *BatchGetProjectsInput { + s.Names = v + return s +} + +type BatchGetProjectsOutput struct { + _ struct{} `type:"structure"` + + // Information about the requested build projects. + Projects []*Project `locationName:"projects" type:"list"` + + // The names of build projects for which information could not be found. + ProjectsNotFound []*string `locationName:"projectsNotFound" min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetProjectsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetProjectsOutput) GoString() string { + return s.String() +} + +// SetProjects sets the Projects field's value. +func (s *BatchGetProjectsOutput) SetProjects(v []*Project) *BatchGetProjectsOutput { + s.Projects = v + return s +} + +// SetProjectsNotFound sets the ProjectsNotFound field's value. +func (s *BatchGetProjectsOutput) SetProjectsNotFound(v []*string) *BatchGetProjectsOutput { + s.ProjectsNotFound = v + return s +} + +type BatchGetReportGroupsInput struct { + _ struct{} `type:"structure"` + + // An array of report group ARNs that identify the report groups to return. + // + // ReportGroupArns is a required field + ReportGroupArns []*string `locationName:"reportGroupArns" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetReportGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetReportGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetReportGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetReportGroupsInput"} + if s.ReportGroupArns == nil { + invalidParams.Add(request.NewErrParamRequired("ReportGroupArns")) + } + if s.ReportGroupArns != nil && len(s.ReportGroupArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReportGroupArns", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReportGroupArns sets the ReportGroupArns field's value. +func (s *BatchGetReportGroupsInput) SetReportGroupArns(v []*string) *BatchGetReportGroupsInput { + s.ReportGroupArns = v return s } @@ -6752,6 +7308,234 @@ func (s *CodeCoverageReportSummary) SetLinesMissed(v int64) *CodeCoverageReportS return s } +type CreateFleetInput struct { + _ struct{} `type:"structure"` + + // The initial number of machines allocated to the fleet, which defines the + // number of builds that can run in parallel. + // + // BaseCapacity is a required field + BaseCapacity *int64 `locationName:"baseCapacity" min:"1" type:"integer" required:"true"` + + // Information about the compute resources the compute fleet uses. Available + // values include: + // + // * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. + // + // * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. + // + // * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, + // depending on your environment type. + // + // * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, + // depending on your environment type. + // + // * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB + // of SSD storage for builds. This compute type supports Docker images up + // to 100 GB uncompressed. + // + // If you use BUILD_GENERAL1_SMALL: + // + // * For environment type LINUX_CONTAINER, you can use up to 3 GB memory + // and 2 vCPUs for builds. + // + // * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, + // 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds. + // + // * For environment type ARM_CONTAINER, you can use up to 4 GB memory and + // 2 vCPUs on ARM-based processors for builds. + // + // If you use BUILD_GENERAL1_LARGE: + // + // * For environment type LINUX_CONTAINER, you can use up to 15 GB memory + // and 8 vCPUs for builds. + // + // * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, + // 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds. + // + // * For environment type ARM_CONTAINER, you can use up to 16 GB memory and + // 8 vCPUs on ARM-based processors for builds. + // + // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild User Guide. + // + // ComputeType is a required field + ComputeType *string `locationName:"computeType" type:"string" required:"true" enum:"ComputeType"` + + // The environment type of the compute fleet. + // + // * The environment type ARM_CONTAINER is available only in regions US East + // (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific + // (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific + // (Sydney), EU (Frankfurt), and South America (São Paulo). + // + // * The environment type LINUX_CONTAINER is available only in regions US + // East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU + // (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific + // (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). + // + // * The environment type LINUX_GPU_CONTAINER is available only in regions + // US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + // EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). + // + // * The environment type WINDOWS_SERVER_2019_CONTAINER is available only + // in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia + // Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). + // + // * The environment type WINDOWS_SERVER_2022_CONTAINER is available only + // in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU + // (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), + // Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). + // + // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild user guide. + // + // EnvironmentType is a required field + EnvironmentType *string `locationName:"environmentType" type:"string" required:"true" enum:"EnvironmentType"` + + // The name of the compute fleet. + // + // Name is a required field + Name *string `locationName:"name" min:"2" type:"string" required:"true"` + + // The scaling configuration of the compute fleet. + ScalingConfiguration *ScalingConfigurationInput_ `locationName:"scalingConfiguration" type:"structure"` + + // A list of tag key and value pairs associated with this compute fleet. + // + // These tags are available for use by Amazon Web Services services that support + // CodeBuild build project tags. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"} + if s.BaseCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("BaseCapacity")) + } + if s.BaseCapacity != nil && *s.BaseCapacity < 1 { + invalidParams.Add(request.NewErrParamMinValue("BaseCapacity", 1)) + } + if s.ComputeType == nil { + invalidParams.Add(request.NewErrParamRequired("ComputeType")) + } + if s.EnvironmentType == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentType")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Name", 2)) + } + if s.ScalingConfiguration != nil { + if err := s.ScalingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ScalingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaseCapacity sets the BaseCapacity field's value. +func (s *CreateFleetInput) SetBaseCapacity(v int64) *CreateFleetInput { + s.BaseCapacity = &v + return s +} + +// SetComputeType sets the ComputeType field's value. +func (s *CreateFleetInput) SetComputeType(v string) *CreateFleetInput { + s.ComputeType = &v + return s +} + +// SetEnvironmentType sets the EnvironmentType field's value. +func (s *CreateFleetInput) SetEnvironmentType(v string) *CreateFleetInput { + s.EnvironmentType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFleetInput) SetName(v string) *CreateFleetInput { + s.Name = &v + return s +} + +// SetScalingConfiguration sets the ScalingConfiguration field's value. +func (s *CreateFleetInput) SetScalingConfiguration(v *ScalingConfigurationInput_) *CreateFleetInput { + s.ScalingConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateFleetInput) SetTags(v []*Tag) *CreateFleetInput { + s.Tags = v + return s +} + +type CreateFleetOutput struct { + _ struct{} `type:"structure"` + + // Information about the compute fleet + Fleet *Fleet `locationName:"fleet" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFleetOutput) GoString() string { + return s.String() +} + +// SetFleet sets the Fleet field's value. +func (s *CreateFleetOutput) SetFleet(v *Fleet) *CreateFleetOutput { + s.Fleet = v + return s +} + type CreateProjectInput struct { _ struct{} `type:"structure"` @@ -7566,6 +8350,77 @@ func (s *DeleteBuildBatchOutput) SetStatusCode(v string) *DeleteBuildBatchOutput return s } +type DeleteFleetInput struct { + _ struct{} `type:"structure"` + + // The ARN of the compute fleet. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *DeleteFleetInput) SetArn(v string) *DeleteFleetInput { + s.Arn = &v + return s +} + +type DeleteFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteFleetOutput) GoString() string { + return s.String() +} + type DeleteProjectInput struct { _ struct{} `type:"structure"` @@ -8550,11 +9405,266 @@ func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable { type ExportedEnvironmentVariable struct { _ struct{} `type:"structure"` - // The name of the exported environment variable. - Name *string `locationName:"name" min:"1" type:"string"` + // The name of the exported environment variable. + Name *string `locationName:"name" min:"1" type:"string"` + + // The value assigned to the exported environment variable. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExportedEnvironmentVariable) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExportedEnvironmentVariable) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ExportedEnvironmentVariable) SetName(v string) *ExportedEnvironmentVariable { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ExportedEnvironmentVariable) SetValue(v string) *ExportedEnvironmentVariable { + s.Value = &v + return s +} + +// A set of dedicated instances for your build environment. +type Fleet struct { + _ struct{} `type:"structure"` + + // The ARN of the compute fleet. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The initial number of machines allocated to the compute fleet, which defines + // the number of builds that can run in parallel. + BaseCapacity *int64 `locationName:"baseCapacity" min:"1" type:"integer"` + + // Information about the compute resources the compute fleet uses. Available + // values include: + // + // * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. + // + // * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. + // + // * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, + // depending on your environment type. + // + // * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, + // depending on your environment type. + // + // * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB + // of SSD storage for builds. This compute type supports Docker images up + // to 100 GB uncompressed. + // + // If you use BUILD_GENERAL1_SMALL: + // + // * For environment type LINUX_CONTAINER, you can use up to 3 GB memory + // and 2 vCPUs for builds. + // + // * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, + // 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds. + // + // * For environment type ARM_CONTAINER, you can use up to 4 GB memory and + // 2 vCPUs on ARM-based processors for builds. + // + // If you use BUILD_GENERAL1_LARGE: + // + // * For environment type LINUX_CONTAINER, you can use up to 15 GB memory + // and 8 vCPUs for builds. + // + // * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, + // 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds. + // + // * For environment type ARM_CONTAINER, you can use up to 16 GB memory and + // 8 vCPUs on ARM-based processors for builds. + // + // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild User Guide. + ComputeType *string `locationName:"computeType" type:"string" enum:"ComputeType"` + + // The time at which the compute fleet was created. + Created *time.Time `locationName:"created" type:"timestamp"` + + // The environment type of the compute fleet. + // + // * The environment type ARM_CONTAINER is available only in regions US East + // (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific + // (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific + // (Sydney), EU (Frankfurt), and South America (São Paulo). + // + // * The environment type LINUX_CONTAINER is available only in regions US + // East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU + // (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific + // (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). + // + // * The environment type LINUX_GPU_CONTAINER is available only in regions + // US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + // EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). + // + // * The environment type WINDOWS_SERVER_2019_CONTAINER is available only + // in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia + // Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). + // + // * The environment type WINDOWS_SERVER_2022_CONTAINER is available only + // in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU + // (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), + // Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). + // + // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild user guide. + EnvironmentType *string `locationName:"environmentType" type:"string" enum:"EnvironmentType"` + + // The ID of the compute fleet. + Id *string `locationName:"id" min:"1" type:"string"` + + // The time at which the compute fleet was last modified. + LastModified *time.Time `locationName:"lastModified" type:"timestamp"` + + // The name of the compute fleet. + Name *string `locationName:"name" min:"2" type:"string"` + + // The scaling configuration of the compute fleet. + ScalingConfiguration *ScalingConfigurationOutput_ `locationName:"scalingConfiguration" type:"structure"` + + // The status of the compute fleet. + Status *FleetStatus `locationName:"status" type:"structure"` + + // A list of tag key and value pairs associated with this compute fleet. + // + // These tags are available for use by Amazon Web Services services that support + // CodeBuild build project tags. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Fleet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Fleet) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Fleet) SetArn(v string) *Fleet { + s.Arn = &v + return s +} + +// SetBaseCapacity sets the BaseCapacity field's value. +func (s *Fleet) SetBaseCapacity(v int64) *Fleet { + s.BaseCapacity = &v + return s +} + +// SetComputeType sets the ComputeType field's value. +func (s *Fleet) SetComputeType(v string) *Fleet { + s.ComputeType = &v + return s +} + +// SetCreated sets the Created field's value. +func (s *Fleet) SetCreated(v time.Time) *Fleet { + s.Created = &v + return s +} + +// SetEnvironmentType sets the EnvironmentType field's value. +func (s *Fleet) SetEnvironmentType(v string) *Fleet { + s.EnvironmentType = &v + return s +} + +// SetId sets the Id field's value. +func (s *Fleet) SetId(v string) *Fleet { + s.Id = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *Fleet) SetLastModified(v time.Time) *Fleet { + s.LastModified = &v + return s +} + +// SetName sets the Name field's value. +func (s *Fleet) SetName(v string) *Fleet { + s.Name = &v + return s +} + +// SetScalingConfiguration sets the ScalingConfiguration field's value. +func (s *Fleet) SetScalingConfiguration(v *ScalingConfigurationOutput_) *Fleet { + s.ScalingConfiguration = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Fleet) SetStatus(v *FleetStatus) *Fleet { + s.Status = v + return s +} + +// SetTags sets the Tags field's value. +func (s *Fleet) SetTags(v []*Tag) *Fleet { + s.Tags = v + return s +} + +// The status of the compute fleet. +type FleetStatus struct { + _ struct{} `type:"structure"` + + // Additional information about a compute fleet. Valid values include: + // + // * CREATE_FAILED: The compute fleet has failed to create. + // + // * UPDATE_FAILED: The compute fleet has failed to update. + Context *string `locationName:"context" type:"string" enum:"FleetContextCode"` - // The value assigned to the exported environment variable. - Value *string `locationName:"value" type:"string"` + // A message associated with the status of a compute fleet. + Message *string `locationName:"message" type:"string"` + + // The status code of the compute fleet. Valid values include: + // + // * CREATING: The compute fleet is being created. + // + // * UPDATING: The compute fleet is being updated. + // + // * ROTATING: The compute fleet is being rotated. + // + // * DELETING: The compute fleet is being deleted. + // + // * CREATE_FAILED: The compute fleet has failed to create. + // + // * UPDATE_ROLLBACK_FAILED: The compute fleet has failed to update and could + // not rollback to previous state. + // + // * ACTIVE: The compute fleet has succeeded and is active. + StatusCode *string `locationName:"statusCode" type:"string" enum:"FleetStatusCode"` } // String returns the string representation. @@ -8562,7 +9672,7 @@ type ExportedEnvironmentVariable struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExportedEnvironmentVariable) String() string { +func (s FleetStatus) String() string { return awsutil.Prettify(s) } @@ -8571,19 +9681,25 @@ func (s ExportedEnvironmentVariable) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ExportedEnvironmentVariable) GoString() string { +func (s FleetStatus) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *ExportedEnvironmentVariable) SetName(v string) *ExportedEnvironmentVariable { - s.Name = &v +// SetContext sets the Context field's value. +func (s *FleetStatus) SetContext(v string) *FleetStatus { + s.Context = &v return s } -// SetValue sets the Value field's value. -func (s *ExportedEnvironmentVariable) SetValue(v string) *ExportedEnvironmentVariable { - s.Value = &v +// SetMessage sets the Message field's value. +func (s *FleetStatus) SetMessage(v string) *FleetStatus { + s.Message = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *FleetStatus) SetStatusCode(v string) *FleetStatus { + s.StatusCode = &v return s } @@ -9672,6 +10788,146 @@ func (s *ListCuratedEnvironmentImagesOutput) SetPlatforms(v []*EnvironmentPlatfo return s } +type ListFleetsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of paginated compute fleets returned per response. Use + // nextToken to iterate pages in the list of returned compute fleets. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // During a previous call, if there are more than 100 items in the list, only + // the first 100 items are returned, along with a unique string called a nextToken. + // To get the next batch of items in the list, call this operation again, adding + // the next token to the call. To get all of the items in the list, keep calling + // this operation with each subsequent next token that is returned, until no + // more next tokens are returned. + // + // NextToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ListFleetsInput's + // String and GoString methods. + NextToken *string `locationName:"nextToken" type:"string" sensitive:"true"` + + // The criterion to be used to list compute fleet names. Valid values include: + // + // * CREATED_TIME: List based on when each compute fleet was created. + // + // * LAST_MODIFIED_TIME: List based on when information about each compute + // fleet was last changed. + // + // * NAME: List based on each compute fleet's name. + // + // Use sortOrder to specify in what order to list the compute fleet names based + // on the preceding criteria. + SortBy *string `locationName:"sortBy" type:"string" enum:"FleetSortByType"` + + // The order in which to list compute fleets. Valid values include: + // + // * ASCENDING: List in ascending order. + // + // * DESCENDING: List in descending order. + // + // Use sortBy to specify the criterion to be used to list compute fleet names. + SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFleetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFleetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFleetsInput) SetMaxResults(v int64) *ListFleetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput { + s.NextToken = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListFleetsInput) SetSortBy(v string) *ListFleetsInput { + s.SortBy = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListFleetsInput) SetSortOrder(v string) *ListFleetsInput { + s.SortOrder = &v + return s +} + +type ListFleetsOutput struct { + _ struct{} `type:"structure"` + + // The list of compute fleet names. + Fleets []*string `locationName:"fleets" min:"1" type:"list"` + + // If there are more than 100 items in the list, only the first 100 items are + // returned, along with a unique string called a nextToken. To get the next + // batch of items in the list, call this operation again, adding the next token + // to the call. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFleetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListFleetsOutput) GoString() string { + return s.String() +} + +// SetFleets sets the Fleets field's value. +func (s *ListFleetsOutput) SetFleets(v []*string) *ListFleetsOutput { + s.Fleets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput { + s.NextToken = &v + return s +} + type ListProjectsInput struct { _ struct{} `type:"structure"` @@ -11751,6 +13007,9 @@ type ProjectEnvironment struct { // * For environment type ARM_CONTAINER, you can use up to 16 GB memory and // 8 vCPUs on ARM-based processors for builds. // + // If you're using compute fleets during project creation, computeType will + // be ignored. + // // For more information, see Build Environment Compute Types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) // in the CodeBuild User Guide. // @@ -11761,6 +13020,9 @@ type ProjectEnvironment struct { // project. EnvironmentVariables []*EnvironmentVariable `locationName:"environmentVariables" type:"list"` + // A ProjectFleet object to use for this build project. + Fleet *ProjectFleet `locationName:"fleet" type:"structure"` + // The image tag or image digest that identifies the Docker image to use for // this build project. Use the following formats: // @@ -11827,11 +13089,11 @@ type ProjectEnvironment struct { // (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific // (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt). // - // * The environment type LINUX_CONTAINER with compute type build.general1.2xlarge - // is available only in regions US East (N. Virginia), US East (Ohio), US - // West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), - // Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), - // Asia Pacific (Sydney), China (Beijing), and China (Ningxia). + // * The environment type LINUX_CONTAINER is available only in regions US + // East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), + // EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia + // Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China + // (Beijing), and China (Ningxia). // // * The environment type LINUX_GPU_CONTAINER is available only in regions // US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), @@ -11849,6 +13111,8 @@ type ProjectEnvironment struct { // are available only in regions US East (N. Virginia), US East (Ohio), US // West (Oregon), and EU (Ireland). // + // If you're using compute fleets during project creation, type will be ignored. + // // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) // in the CodeBuild user guide. // @@ -11929,6 +13193,12 @@ func (s *ProjectEnvironment) SetEnvironmentVariables(v []*EnvironmentVariable) * return s } +// SetFleet sets the Fleet field's value. +func (s *ProjectEnvironment) SetFleet(v *ProjectFleet) *ProjectEnvironment { + s.Fleet = v + return s +} + // SetImage sets the Image field's value. func (s *ProjectEnvironment) SetImage(v string) *ProjectEnvironment { s.Image = &v @@ -12044,6 +13314,39 @@ func (s *ProjectFileSystemLocation) SetType(v string) *ProjectFileSystemLocation return s } +// Information about the compute fleet of the build project. For more information, +// see Working with reserved capacity in CodeBuild (https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html). +type ProjectFleet struct { + _ struct{} `type:"structure"` + + // Specifies the compute fleet ARN for the build project. + FleetArn *string `locationName:"fleetArn" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ProjectFleet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ProjectFleet) GoString() string { + return s.String() +} + +// SetFleetArn sets the FleetArn field's value. +func (s *ProjectFleet) SetFleetArn(v string) *ProjectFleet { + s.FleetArn = &v + return s +} + // Information about the build input source code for the build project. type ProjectSource struct { _ struct{} `type:"structure"` @@ -13535,33 +14838,155 @@ func (s *S3ReportExportConfig) SetBucket(v string) *S3ReportExportConfig { return s } -// SetBucketOwner sets the BucketOwner field's value. -func (s *S3ReportExportConfig) SetBucketOwner(v string) *S3ReportExportConfig { - s.BucketOwner = &v - return s +// SetBucketOwner sets the BucketOwner field's value. +func (s *S3ReportExportConfig) SetBucketOwner(v string) *S3ReportExportConfig { + s.BucketOwner = &v + return s +} + +// SetEncryptionDisabled sets the EncryptionDisabled field's value. +func (s *S3ReportExportConfig) SetEncryptionDisabled(v bool) *S3ReportExportConfig { + s.EncryptionDisabled = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *S3ReportExportConfig) SetEncryptionKey(v string) *S3ReportExportConfig { + s.EncryptionKey = &v + return s +} + +// SetPackaging sets the Packaging field's value. +func (s *S3ReportExportConfig) SetPackaging(v string) *S3ReportExportConfig { + s.Packaging = &v + return s +} + +// SetPath sets the Path field's value. +func (s *S3ReportExportConfig) SetPath(v string) *S3ReportExportConfig { + s.Path = &v + return s +} + +// The scaling configuration input of a compute fleet. +type ScalingConfigurationInput_ struct { + _ struct{} `type:"structure"` + + // The maximum number of instances in the fleet when auto-scaling. + MaxCapacity *int64 `locationName:"maxCapacity" min:"1" type:"integer"` + + // The scaling type for a compute fleet. + ScalingType *string `locationName:"scalingType" type:"string" enum:"FleetScalingType"` + + // A list of TargetTrackingScalingConfiguration objects. + TargetTrackingScalingConfigs []*TargetTrackingScalingConfiguration `locationName:"targetTrackingScalingConfigs" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScalingConfigurationInput_) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScalingConfigurationInput_) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScalingConfigurationInput_) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScalingConfigurationInput_"} + if s.MaxCapacity != nil && *s.MaxCapacity < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxCapacity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ScalingConfigurationInput_) SetMaxCapacity(v int64) *ScalingConfigurationInput_ { + s.MaxCapacity = &v + return s +} + +// SetScalingType sets the ScalingType field's value. +func (s *ScalingConfigurationInput_) SetScalingType(v string) *ScalingConfigurationInput_ { + s.ScalingType = &v + return s +} + +// SetTargetTrackingScalingConfigs sets the TargetTrackingScalingConfigs field's value. +func (s *ScalingConfigurationInput_) SetTargetTrackingScalingConfigs(v []*TargetTrackingScalingConfiguration) *ScalingConfigurationInput_ { + s.TargetTrackingScalingConfigs = v + return s +} + +// The scaling configuration output of a compute fleet. +type ScalingConfigurationOutput_ struct { + _ struct{} `type:"structure"` + + // The desired number of instances in the fleet when auto-scaling. + DesiredCapacity *int64 `locationName:"desiredCapacity" min:"1" type:"integer"` + + // The maximum number of instances in the fleet when auto-scaling. + MaxCapacity *int64 `locationName:"maxCapacity" min:"1" type:"integer"` + + // The scaling type for a compute fleet. + ScalingType *string `locationName:"scalingType" type:"string" enum:"FleetScalingType"` + + // A list of TargetTrackingScalingConfiguration objects. + TargetTrackingScalingConfigs []*TargetTrackingScalingConfiguration `locationName:"targetTrackingScalingConfigs" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScalingConfigurationOutput_) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScalingConfigurationOutput_) GoString() string { + return s.String() } -// SetEncryptionDisabled sets the EncryptionDisabled field's value. -func (s *S3ReportExportConfig) SetEncryptionDisabled(v bool) *S3ReportExportConfig { - s.EncryptionDisabled = &v +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *ScalingConfigurationOutput_) SetDesiredCapacity(v int64) *ScalingConfigurationOutput_ { + s.DesiredCapacity = &v return s } -// SetEncryptionKey sets the EncryptionKey field's value. -func (s *S3ReportExportConfig) SetEncryptionKey(v string) *S3ReportExportConfig { - s.EncryptionKey = &v +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ScalingConfigurationOutput_) SetMaxCapacity(v int64) *ScalingConfigurationOutput_ { + s.MaxCapacity = &v return s } -// SetPackaging sets the Packaging field's value. -func (s *S3ReportExportConfig) SetPackaging(v string) *S3ReportExportConfig { - s.Packaging = &v +// SetScalingType sets the ScalingType field's value. +func (s *ScalingConfigurationOutput_) SetScalingType(v string) *ScalingConfigurationOutput_ { + s.ScalingType = &v return s } -// SetPath sets the Path field's value. -func (s *S3ReportExportConfig) SetPath(v string) *S3ReportExportConfig { - s.Path = &v +// SetTargetTrackingScalingConfigs sets the TargetTrackingScalingConfigs field's value. +func (s *ScalingConfigurationOutput_) SetTargetTrackingScalingConfigs(v []*TargetTrackingScalingConfiguration) *ScalingConfigurationOutput_ { + s.TargetTrackingScalingConfigs = v return s } @@ -14281,6 +15706,10 @@ type StartBuildInput struct { // ones already defined in the build project. EnvironmentVariablesOverride []*EnvironmentVariable `locationName:"environmentVariablesOverride" type:"list"` + // A ProjectFleet object specified for this build that overrides the one defined + // in the build project. + FleetOverride *ProjectFleet `locationName:"fleetOverride" type:"structure"` + // The user-defined depth of history, with a minimum value of 0, that overrides, // for this build only, any previous depth of history defined in the build project. GitCloneDepthOverride *int64 `locationName:"gitCloneDepthOverride" type:"integer"` @@ -14601,6 +16030,12 @@ func (s *StartBuildInput) SetEnvironmentVariablesOverride(v []*EnvironmentVariab return s } +// SetFleetOverride sets the FleetOverride field's value. +func (s *StartBuildInput) SetFleetOverride(v *ProjectFleet) *StartBuildInput { + s.FleetOverride = v + return s +} + // SetGitCloneDepthOverride sets the GitCloneDepthOverride field's value. func (s *StartBuildInput) SetGitCloneDepthOverride(v int64) *StartBuildInput { s.GitCloneDepthOverride = &v @@ -14975,6 +16410,47 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// Defines when a new instance is auto-scaled into the compute fleet. +type TargetTrackingScalingConfiguration struct { + _ struct{} `type:"structure"` + + // The metric type to determine auto-scaling. + MetricType *string `locationName:"metricType" type:"string" enum:"FleetScalingMetricType"` + + // The value of metricType when to start scaling. + TargetValue *float64 `locationName:"targetValue" type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TargetTrackingScalingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TargetTrackingScalingConfiguration) GoString() string { + return s.String() +} + +// SetMetricType sets the MetricType field's value. +func (s *TargetTrackingScalingConfiguration) SetMetricType(v string) *TargetTrackingScalingConfiguration { + s.MetricType = &v + return s +} + +// SetTargetValue sets the TargetValue field's value. +func (s *TargetTrackingScalingConfiguration) SetTargetValue(v float64) *TargetTrackingScalingConfiguration { + s.TargetValue = &v + return s +} + // Information about a test case created using a framework such as NUnit or // Cucumber. A test case might be a unit test or a configuration test. type TestCase struct { @@ -15188,6 +16664,219 @@ func (s *TestReportSummary) SetTotal(v int64) *TestReportSummary { return s } +type UpdateFleetInput struct { + _ struct{} `type:"structure"` + + // The ARN of the compute fleet. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // The initial number of machines allocated to the compute fleet, which defines + // the number of builds that can run in parallel. + BaseCapacity *int64 `locationName:"baseCapacity" min:"1" type:"integer"` + + // Information about the compute resources the compute fleet uses. Available + // values include: + // + // * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. + // + // * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds. + // + // * BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, + // depending on your environment type. + // + // * BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, + // depending on your environment type. + // + // * BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB + // of SSD storage for builds. This compute type supports Docker images up + // to 100 GB uncompressed. + // + // If you use BUILD_GENERAL1_SMALL: + // + // * For environment type LINUX_CONTAINER, you can use up to 3 GB memory + // and 2 vCPUs for builds. + // + // * For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, + // 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds. + // + // * For environment type ARM_CONTAINER, you can use up to 4 GB memory and + // 2 vCPUs on ARM-based processors for builds. + // + // If you use BUILD_GENERAL1_LARGE: + // + // * For environment type LINUX_CONTAINER, you can use up to 15 GB memory + // and 8 vCPUs for builds. + // + // * For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, + // 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds. + // + // * For environment type ARM_CONTAINER, you can use up to 16 GB memory and + // 8 vCPUs on ARM-based processors for builds. + // + // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild User Guide. + ComputeType *string `locationName:"computeType" type:"string" enum:"ComputeType"` + + // The environment type of the compute fleet. + // + // * The environment type ARM_CONTAINER is available only in regions US East + // (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific + // (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific + // (Sydney), EU (Frankfurt), and South America (São Paulo). + // + // * The environment type LINUX_CONTAINER is available only in regions US + // East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU + // (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific + // (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). + // + // * The environment type LINUX_GPU_CONTAINER is available only in regions + // US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), + // EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). + // + // * The environment type WINDOWS_SERVER_2019_CONTAINER is available only + // in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia + // Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). + // + // * The environment type WINDOWS_SERVER_2022_CONTAINER is available only + // in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU + // (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), + // Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). + // + // For more information, see Build environment compute types (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) + // in the CodeBuild user guide. + EnvironmentType *string `locationName:"environmentType" type:"string" enum:"EnvironmentType"` + + // The scaling configuration of the compute fleet. + ScalingConfiguration *ScalingConfigurationInput_ `locationName:"scalingConfiguration" type:"structure"` + + // A list of tag key and value pairs associated with this compute fleet. + // + // These tags are available for use by Amazon Web Services services that support + // CodeBuild build project tags. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFleetInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + if s.BaseCapacity != nil && *s.BaseCapacity < 1 { + invalidParams.Add(request.NewErrParamMinValue("BaseCapacity", 1)) + } + if s.ScalingConfiguration != nil { + if err := s.ScalingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ScalingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *UpdateFleetInput) SetArn(v string) *UpdateFleetInput { + s.Arn = &v + return s +} + +// SetBaseCapacity sets the BaseCapacity field's value. +func (s *UpdateFleetInput) SetBaseCapacity(v int64) *UpdateFleetInput { + s.BaseCapacity = &v + return s +} + +// SetComputeType sets the ComputeType field's value. +func (s *UpdateFleetInput) SetComputeType(v string) *UpdateFleetInput { + s.ComputeType = &v + return s +} + +// SetEnvironmentType sets the EnvironmentType field's value. +func (s *UpdateFleetInput) SetEnvironmentType(v string) *UpdateFleetInput { + s.EnvironmentType = &v + return s +} + +// SetScalingConfiguration sets the ScalingConfiguration field's value. +func (s *UpdateFleetInput) SetScalingConfiguration(v *ScalingConfigurationInput_) *UpdateFleetInput { + s.ScalingConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateFleetInput) SetTags(v []*Tag) *UpdateFleetInput { + s.Tags = v + return s +} + +type UpdateFleetOutput struct { + _ struct{} `type:"structure"` + + // A Fleet object. + Fleet *Fleet `locationName:"fleet" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFleetOutput) GoString() string { + return s.String() +} + +// SetFleet sets the Fleet field's value. +func (s *UpdateFleetOutput) SetFleet(v *Fleet) *UpdateFleetOutput { + s.Fleet = v + return s +} + type UpdateProjectInput struct { _ struct{} `type:"structure"` @@ -16651,6 +18340,102 @@ func FileSystemType_Values() []string { } } +const ( + // FleetContextCodeCreateFailed is a FleetContextCode enum value + FleetContextCodeCreateFailed = "CREATE_FAILED" + + // FleetContextCodeUpdateFailed is a FleetContextCode enum value + FleetContextCodeUpdateFailed = "UPDATE_FAILED" +) + +// FleetContextCode_Values returns all elements of the FleetContextCode enum +func FleetContextCode_Values() []string { + return []string{ + FleetContextCodeCreateFailed, + FleetContextCodeUpdateFailed, + } +} + +const ( + // FleetScalingMetricTypeFleetUtilizationRate is a FleetScalingMetricType enum value + FleetScalingMetricTypeFleetUtilizationRate = "FLEET_UTILIZATION_RATE" +) + +// FleetScalingMetricType_Values returns all elements of the FleetScalingMetricType enum +func FleetScalingMetricType_Values() []string { + return []string{ + FleetScalingMetricTypeFleetUtilizationRate, + } +} + +const ( + // FleetScalingTypeTargetTrackingScaling is a FleetScalingType enum value + FleetScalingTypeTargetTrackingScaling = "TARGET_TRACKING_SCALING" +) + +// FleetScalingType_Values returns all elements of the FleetScalingType enum +func FleetScalingType_Values() []string { + return []string{ + FleetScalingTypeTargetTrackingScaling, + } +} + +const ( + // FleetSortByTypeName is a FleetSortByType enum value + FleetSortByTypeName = "NAME" + + // FleetSortByTypeCreatedTime is a FleetSortByType enum value + FleetSortByTypeCreatedTime = "CREATED_TIME" + + // FleetSortByTypeLastModifiedTime is a FleetSortByType enum value + FleetSortByTypeLastModifiedTime = "LAST_MODIFIED_TIME" +) + +// FleetSortByType_Values returns all elements of the FleetSortByType enum +func FleetSortByType_Values() []string { + return []string{ + FleetSortByTypeName, + FleetSortByTypeCreatedTime, + FleetSortByTypeLastModifiedTime, + } +} + +const ( + // FleetStatusCodeCreating is a FleetStatusCode enum value + FleetStatusCodeCreating = "CREATING" + + // FleetStatusCodeUpdating is a FleetStatusCode enum value + FleetStatusCodeUpdating = "UPDATING" + + // FleetStatusCodeRotating is a FleetStatusCode enum value + FleetStatusCodeRotating = "ROTATING" + + // FleetStatusCodeDeleting is a FleetStatusCode enum value + FleetStatusCodeDeleting = "DELETING" + + // FleetStatusCodeCreateFailed is a FleetStatusCode enum value + FleetStatusCodeCreateFailed = "CREATE_FAILED" + + // FleetStatusCodeUpdateRollbackFailed is a FleetStatusCode enum value + FleetStatusCodeUpdateRollbackFailed = "UPDATE_ROLLBACK_FAILED" + + // FleetStatusCodeActive is a FleetStatusCode enum value + FleetStatusCodeActive = "ACTIVE" +) + +// FleetStatusCode_Values returns all elements of the FleetStatusCode enum +func FleetStatusCode_Values() []string { + return []string{ + FleetStatusCodeCreating, + FleetStatusCodeUpdating, + FleetStatusCodeRotating, + FleetStatusCodeDeleting, + FleetStatusCodeCreateFailed, + FleetStatusCodeUpdateRollbackFailed, + FleetStatusCodeActive, + } +} + const ( // ImagePullCredentialsTypeCodebuild is a ImagePullCredentialsType enum value ImagePullCredentialsTypeCodebuild = "CODEBUILD" diff --git a/service/codebuild/codebuildiface/interface.go b/service/codebuild/codebuildiface/interface.go index 88d6c52d0e5..68e28fa0cb5 100644 --- a/service/codebuild/codebuildiface/interface.go +++ b/service/codebuild/codebuildiface/interface.go @@ -72,6 +72,10 @@ type CodeBuildAPI interface { BatchGetBuildsWithContext(aws.Context, *codebuild.BatchGetBuildsInput, ...request.Option) (*codebuild.BatchGetBuildsOutput, error) BatchGetBuildsRequest(*codebuild.BatchGetBuildsInput) (*request.Request, *codebuild.BatchGetBuildsOutput) + BatchGetFleets(*codebuild.BatchGetFleetsInput) (*codebuild.BatchGetFleetsOutput, error) + BatchGetFleetsWithContext(aws.Context, *codebuild.BatchGetFleetsInput, ...request.Option) (*codebuild.BatchGetFleetsOutput, error) + BatchGetFleetsRequest(*codebuild.BatchGetFleetsInput) (*request.Request, *codebuild.BatchGetFleetsOutput) + BatchGetProjects(*codebuild.BatchGetProjectsInput) (*codebuild.BatchGetProjectsOutput, error) BatchGetProjectsWithContext(aws.Context, *codebuild.BatchGetProjectsInput, ...request.Option) (*codebuild.BatchGetProjectsOutput, error) BatchGetProjectsRequest(*codebuild.BatchGetProjectsInput) (*request.Request, *codebuild.BatchGetProjectsOutput) @@ -84,6 +88,10 @@ type CodeBuildAPI interface { BatchGetReportsWithContext(aws.Context, *codebuild.BatchGetReportsInput, ...request.Option) (*codebuild.BatchGetReportsOutput, error) BatchGetReportsRequest(*codebuild.BatchGetReportsInput) (*request.Request, *codebuild.BatchGetReportsOutput) + CreateFleet(*codebuild.CreateFleetInput) (*codebuild.CreateFleetOutput, error) + CreateFleetWithContext(aws.Context, *codebuild.CreateFleetInput, ...request.Option) (*codebuild.CreateFleetOutput, error) + CreateFleetRequest(*codebuild.CreateFleetInput) (*request.Request, *codebuild.CreateFleetOutput) + CreateProject(*codebuild.CreateProjectInput) (*codebuild.CreateProjectOutput, error) CreateProjectWithContext(aws.Context, *codebuild.CreateProjectInput, ...request.Option) (*codebuild.CreateProjectOutput, error) CreateProjectRequest(*codebuild.CreateProjectInput) (*request.Request, *codebuild.CreateProjectOutput) @@ -100,6 +108,10 @@ type CodeBuildAPI interface { DeleteBuildBatchWithContext(aws.Context, *codebuild.DeleteBuildBatchInput, ...request.Option) (*codebuild.DeleteBuildBatchOutput, error) DeleteBuildBatchRequest(*codebuild.DeleteBuildBatchInput) (*request.Request, *codebuild.DeleteBuildBatchOutput) + DeleteFleet(*codebuild.DeleteFleetInput) (*codebuild.DeleteFleetOutput, error) + DeleteFleetWithContext(aws.Context, *codebuild.DeleteFleetInput, ...request.Option) (*codebuild.DeleteFleetOutput, error) + DeleteFleetRequest(*codebuild.DeleteFleetInput) (*request.Request, *codebuild.DeleteFleetOutput) + DeleteProject(*codebuild.DeleteProjectInput) (*codebuild.DeleteProjectOutput, error) DeleteProjectWithContext(aws.Context, *codebuild.DeleteProjectInput, ...request.Option) (*codebuild.DeleteProjectOutput, error) DeleteProjectRequest(*codebuild.DeleteProjectInput) (*request.Request, *codebuild.DeleteProjectOutput) @@ -186,6 +198,13 @@ type CodeBuildAPI interface { ListCuratedEnvironmentImagesWithContext(aws.Context, *codebuild.ListCuratedEnvironmentImagesInput, ...request.Option) (*codebuild.ListCuratedEnvironmentImagesOutput, error) ListCuratedEnvironmentImagesRequest(*codebuild.ListCuratedEnvironmentImagesInput) (*request.Request, *codebuild.ListCuratedEnvironmentImagesOutput) + ListFleets(*codebuild.ListFleetsInput) (*codebuild.ListFleetsOutput, error) + ListFleetsWithContext(aws.Context, *codebuild.ListFleetsInput, ...request.Option) (*codebuild.ListFleetsOutput, error) + ListFleetsRequest(*codebuild.ListFleetsInput) (*request.Request, *codebuild.ListFleetsOutput) + + ListFleetsPages(*codebuild.ListFleetsInput, func(*codebuild.ListFleetsOutput, bool) bool) error + ListFleetsPagesWithContext(aws.Context, *codebuild.ListFleetsInput, func(*codebuild.ListFleetsOutput, bool) bool, ...request.Option) error + ListProjects(*codebuild.ListProjectsInput) (*codebuild.ListProjectsOutput, error) ListProjectsWithContext(aws.Context, *codebuild.ListProjectsInput, ...request.Option) (*codebuild.ListProjectsOutput, error) ListProjectsRequest(*codebuild.ListProjectsInput) (*request.Request, *codebuild.ListProjectsOutput) @@ -260,6 +279,10 @@ type CodeBuildAPI interface { StopBuildBatchWithContext(aws.Context, *codebuild.StopBuildBatchInput, ...request.Option) (*codebuild.StopBuildBatchOutput, error) StopBuildBatchRequest(*codebuild.StopBuildBatchInput) (*request.Request, *codebuild.StopBuildBatchOutput) + UpdateFleet(*codebuild.UpdateFleetInput) (*codebuild.UpdateFleetOutput, error) + UpdateFleetWithContext(aws.Context, *codebuild.UpdateFleetInput, ...request.Option) (*codebuild.UpdateFleetOutput, error) + UpdateFleetRequest(*codebuild.UpdateFleetInput) (*request.Request, *codebuild.UpdateFleetOutput) + UpdateProject(*codebuild.UpdateProjectInput) (*codebuild.UpdateProjectOutput, error) UpdateProjectWithContext(aws.Context, *codebuild.UpdateProjectInput, ...request.Option) (*codebuild.UpdateProjectOutput, error) UpdateProjectRequest(*codebuild.UpdateProjectInput) (*request.Request, *codebuild.UpdateProjectOutput) diff --git a/service/dynamodb/api.go b/service/dynamodb/api.go index 9d9924cd3e1..53673a0e959 100644 --- a/service/dynamodb/api.go +++ b/service/dynamodb/api.go @@ -7299,6 +7299,142 @@ func (c *DynamoDB) UpdateItemWithContext(ctx aws.Context, input *UpdateItemInput return out, req.Send() } +const opUpdateKinesisStreamingDestination = "UpdateKinesisStreamingDestination" + +// UpdateKinesisStreamingDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateKinesisStreamingDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateKinesisStreamingDestination for more information on using the UpdateKinesisStreamingDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateKinesisStreamingDestinationRequest method. +// req, resp := client.UpdateKinesisStreamingDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateKinesisStreamingDestination +func (c *DynamoDB) UpdateKinesisStreamingDestinationRequest(input *UpdateKinesisStreamingDestinationInput) (req *request.Request, output *UpdateKinesisStreamingDestinationOutput) { + op := &request.Operation{ + Name: opUpdateKinesisStreamingDestination, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateKinesisStreamingDestinationInput{} + } + + output = &UpdateKinesisStreamingDestinationOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + } + return +} + +// UpdateKinesisStreamingDestination API operation for Amazon DynamoDB. +// +// The command to update the Kinesis stream destination. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation UpdateKinesisStreamingDestination for usage and error information. +// +// Returned Error Types: +// +// - InternalServerError +// An error occurred on the server side. +// +// - LimitExceededException +// There is no limit to the number of daily on-demand backups that can be taken. +// +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. +// +// There is a soft account quota of 2,500 tables. +// +// GetRecords was called with a value of more than 1000 for the limit request +// parameter. +// +// More than 2 processes are reading from the same streams shard at the same +// time. Exceeding this limit may result in request throttling. +// +// - ResourceInUseException +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// - ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateKinesisStreamingDestination +func (c *DynamoDB) UpdateKinesisStreamingDestination(input *UpdateKinesisStreamingDestinationInput) (*UpdateKinesisStreamingDestinationOutput, error) { + req, out := c.UpdateKinesisStreamingDestinationRequest(input) + return out, req.Send() +} + +// UpdateKinesisStreamingDestinationWithContext is the same as UpdateKinesisStreamingDestination with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateKinesisStreamingDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DynamoDB) UpdateKinesisStreamingDestinationWithContext(ctx aws.Context, input *UpdateKinesisStreamingDestinationInput, opts ...request.Option) (*UpdateKinesisStreamingDestinationOutput, error) { + req, out := c.UpdateKinesisStreamingDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateTable = "UpdateTable" // UpdateTableRequest generates a "aws/request.Request" representing the @@ -13233,6 +13369,9 @@ func (s *DescribeTimeToLiveOutput) SetTimeToLiveDescription(v *TimeToLiveDescrip type DisableKinesisStreamingDestinationInput struct { _ struct{} `type:"structure"` + // The source for the Kinesis streaming information that is being enabled. + EnableKinesisStreamingConfiguration *EnableKinesisStreamingConfiguration `type:"structure"` + // The ARN for a Kinesis data stream. // // StreamArn is a required field @@ -13284,6 +13423,12 @@ func (s *DisableKinesisStreamingDestinationInput) Validate() error { return nil } +// SetEnableKinesisStreamingConfiguration sets the EnableKinesisStreamingConfiguration field's value. +func (s *DisableKinesisStreamingDestinationInput) SetEnableKinesisStreamingConfiguration(v *EnableKinesisStreamingConfiguration) *DisableKinesisStreamingDestinationInput { + s.EnableKinesisStreamingConfiguration = v + return s +} + // SetStreamArn sets the StreamArn field's value. func (s *DisableKinesisStreamingDestinationInput) SetStreamArn(v string) *DisableKinesisStreamingDestinationInput { s.StreamArn = &v @@ -13302,6 +13447,9 @@ type DisableKinesisStreamingDestinationOutput struct { // The current status of the replication. DestinationStatus *string `type:"string" enum:"DestinationStatus"` + // The destination for the Kinesis streaming information that is being enabled. + EnableKinesisStreamingConfiguration *EnableKinesisStreamingConfiguration `type:"structure"` + // The ARN for the specific Kinesis data stream. StreamArn *string `min:"37" type:"string"` @@ -13333,6 +13481,12 @@ func (s *DisableKinesisStreamingDestinationOutput) SetDestinationStatus(v string return s } +// SetEnableKinesisStreamingConfiguration sets the EnableKinesisStreamingConfiguration field's value. +func (s *DisableKinesisStreamingDestinationOutput) SetEnableKinesisStreamingConfiguration(v *EnableKinesisStreamingConfiguration) *DisableKinesisStreamingDestinationOutput { + s.EnableKinesisStreamingConfiguration = v + return s +} + // SetStreamArn sets the StreamArn field's value. func (s *DisableKinesisStreamingDestinationOutput) SetStreamArn(v string) *DisableKinesisStreamingDestinationOutput { s.StreamArn = &v @@ -13410,9 +13564,45 @@ func (s *DuplicateItemException) RequestID() string { return s.RespMetadata.RequestID } +// Enables setting the configuration for Kinesis Streaming. +type EnableKinesisStreamingConfiguration struct { + _ struct{} `type:"structure"` + + // Toggle for the precision of Kinesis data stream timestamp. The values are + // either MILLISECOND or MICROSECOND. + ApproximateCreationDateTimePrecision *string `type:"string" enum:"ApproximateCreationDateTimePrecision"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EnableKinesisStreamingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EnableKinesisStreamingConfiguration) GoString() string { + return s.String() +} + +// SetApproximateCreationDateTimePrecision sets the ApproximateCreationDateTimePrecision field's value. +func (s *EnableKinesisStreamingConfiguration) SetApproximateCreationDateTimePrecision(v string) *EnableKinesisStreamingConfiguration { + s.ApproximateCreationDateTimePrecision = &v + return s +} + type EnableKinesisStreamingDestinationInput struct { _ struct{} `type:"structure"` + // The source for the Kinesis streaming information that is being enabled. + EnableKinesisStreamingConfiguration *EnableKinesisStreamingConfiguration `type:"structure"` + // The ARN for a Kinesis data stream. // // StreamArn is a required field @@ -13464,6 +13654,12 @@ func (s *EnableKinesisStreamingDestinationInput) Validate() error { return nil } +// SetEnableKinesisStreamingConfiguration sets the EnableKinesisStreamingConfiguration field's value. +func (s *EnableKinesisStreamingDestinationInput) SetEnableKinesisStreamingConfiguration(v *EnableKinesisStreamingConfiguration) *EnableKinesisStreamingDestinationInput { + s.EnableKinesisStreamingConfiguration = v + return s +} + // SetStreamArn sets the StreamArn field's value. func (s *EnableKinesisStreamingDestinationInput) SetStreamArn(v string) *EnableKinesisStreamingDestinationInput { s.StreamArn = &v @@ -13482,6 +13678,9 @@ type EnableKinesisStreamingDestinationOutput struct { // The current status of the replication. DestinationStatus *string `type:"string" enum:"DestinationStatus"` + // The destination for the Kinesis streaming information that is being enabled. + EnableKinesisStreamingConfiguration *EnableKinesisStreamingConfiguration `type:"structure"` + // The ARN for the specific Kinesis data stream. StreamArn *string `min:"37" type:"string"` @@ -13513,6 +13712,12 @@ func (s *EnableKinesisStreamingDestinationOutput) SetDestinationStatus(v string) return s } +// SetEnableKinesisStreamingConfiguration sets the EnableKinesisStreamingConfiguration field's value. +func (s *EnableKinesisStreamingDestinationOutput) SetEnableKinesisStreamingConfiguration(v *EnableKinesisStreamingConfiguration) *EnableKinesisStreamingDestinationOutput { + s.EnableKinesisStreamingConfiguration = v + return s +} + // SetStreamArn sets the StreamArn field's value. func (s *EnableKinesisStreamingDestinationOutput) SetStreamArn(v string) *EnableKinesisStreamingDestinationOutput { s.StreamArn = &v @@ -17334,6 +17539,10 @@ func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes type KinesisDataStreamDestination struct { _ struct{} `type:"structure"` + // The precision of the Kinesis data stream timestamp. The values are either + // MILLISECOND or MICROSECOND. + ApproximateCreationDateTimePrecision *string `type:"string" enum:"ApproximateCreationDateTimePrecision"` + // The current status of replication. DestinationStatus *string `type:"string" enum:"DestinationStatus"` @@ -17362,6 +17571,12 @@ func (s KinesisDataStreamDestination) GoString() string { return s.String() } +// SetApproximateCreationDateTimePrecision sets the ApproximateCreationDateTimePrecision field's value. +func (s *KinesisDataStreamDestination) SetApproximateCreationDateTimePrecision(v string) *KinesisDataStreamDestination { + s.ApproximateCreationDateTimePrecision = &v + return s +} + // SetDestinationStatus sets the DestinationStatus field's value. func (s *KinesisDataStreamDestination) SetDestinationStatus(v string) *KinesisDataStreamDestination { s.DestinationStatus = &v @@ -18540,7 +18755,7 @@ func (s *LocalSecondaryIndexInfo) SetProjection(v *Projection) *LocalSecondaryIn return s } -// Represents a PartiQL statment that uses parameters. +// Represents a PartiQL statement that uses parameters. type ParameterizedStatement struct { _ struct{} `type:"structure"` @@ -18555,7 +18770,7 @@ type ParameterizedStatement struct { // No read capacity units are consumed. ReturnValuesOnConditionCheckFailure *string `type:"string" enum:"ReturnValuesOnConditionCheckFailure"` - // A PartiQL statment that uses parameters. + // A PartiQL statement that uses parameters. // // Statement is a required field Statement *string `min:"1" type:"string" required:"true"` @@ -26065,6 +26280,171 @@ func (s *UpdateItemOutput) SetItemCollectionMetrics(v *ItemCollectionMetrics) *U return s } +// Enables updating the configuration for Kinesis Streaming. +type UpdateKinesisStreamingConfiguration struct { + _ struct{} `type:"structure"` + + // Enables updating the precision of Kinesis data stream timestamp. + ApproximateCreationDateTimePrecision *string `type:"string" enum:"ApproximateCreationDateTimePrecision"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateKinesisStreamingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateKinesisStreamingConfiguration) GoString() string { + return s.String() +} + +// SetApproximateCreationDateTimePrecision sets the ApproximateCreationDateTimePrecision field's value. +func (s *UpdateKinesisStreamingConfiguration) SetApproximateCreationDateTimePrecision(v string) *UpdateKinesisStreamingConfiguration { + s.ApproximateCreationDateTimePrecision = &v + return s +} + +type UpdateKinesisStreamingDestinationInput struct { + _ struct{} `type:"structure"` + + // The ARN for the Kinesis stream input. + // + // StreamArn is a required field + StreamArn *string `min:"37" type:"string" required:"true"` + + // The table name for the Kinesis streaming destination input. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` + + // The command to update the Kinesis stream configuration. + UpdateKinesisStreamingConfiguration *UpdateKinesisStreamingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateKinesisStreamingDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateKinesisStreamingDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateKinesisStreamingDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateKinesisStreamingDestinationInput"} + if s.StreamArn == nil { + invalidParams.Add(request.NewErrParamRequired("StreamArn")) + } + if s.StreamArn != nil && len(*s.StreamArn) < 37 { + invalidParams.Add(request.NewErrParamMinLen("StreamArn", 37)) + } + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TableName != nil && len(*s.TableName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStreamArn sets the StreamArn field's value. +func (s *UpdateKinesisStreamingDestinationInput) SetStreamArn(v string) *UpdateKinesisStreamingDestinationInput { + s.StreamArn = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *UpdateKinesisStreamingDestinationInput) SetTableName(v string) *UpdateKinesisStreamingDestinationInput { + s.TableName = &v + return s +} + +// SetUpdateKinesisStreamingConfiguration sets the UpdateKinesisStreamingConfiguration field's value. +func (s *UpdateKinesisStreamingDestinationInput) SetUpdateKinesisStreamingConfiguration(v *UpdateKinesisStreamingConfiguration) *UpdateKinesisStreamingDestinationInput { + s.UpdateKinesisStreamingConfiguration = v + return s +} + +type UpdateKinesisStreamingDestinationOutput struct { + _ struct{} `type:"structure"` + + // The status of the attempt to update the Kinesis streaming destination output. + DestinationStatus *string `type:"string" enum:"DestinationStatus"` + + // The ARN for the Kinesis stream input. + StreamArn *string `min:"37" type:"string"` + + // The table name for the Kinesis streaming destination output. + TableName *string `min:"3" type:"string"` + + // The command to update the Kinesis streaming destination configuration. + UpdateKinesisStreamingConfiguration *UpdateKinesisStreamingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateKinesisStreamingDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateKinesisStreamingDestinationOutput) GoString() string { + return s.String() +} + +// SetDestinationStatus sets the DestinationStatus field's value. +func (s *UpdateKinesisStreamingDestinationOutput) SetDestinationStatus(v string) *UpdateKinesisStreamingDestinationOutput { + s.DestinationStatus = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *UpdateKinesisStreamingDestinationOutput) SetStreamArn(v string) *UpdateKinesisStreamingDestinationOutput { + s.StreamArn = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *UpdateKinesisStreamingDestinationOutput) SetTableName(v string) *UpdateKinesisStreamingDestinationOutput { + s.TableName = &v + return s +} + +// SetUpdateKinesisStreamingConfiguration sets the UpdateKinesisStreamingConfiguration field's value. +func (s *UpdateKinesisStreamingDestinationOutput) SetUpdateKinesisStreamingConfiguration(v *UpdateKinesisStreamingConfiguration) *UpdateKinesisStreamingDestinationOutput { + s.UpdateKinesisStreamingConfiguration = v + return s +} + // Represents a replica to be modified. type UpdateReplicationGroupMemberAction struct { _ struct{} `type:"structure"` @@ -26228,7 +26608,7 @@ type UpdateTableInput struct { // Represents the DynamoDB Streams configuration for the table. // - // You receive a ValidationException if you try to enable a stream on a table + // You receive a ResourceInUseException if you try to enable a stream on a table // that already has a stream, or if you try to disable a stream on a table that // doesn't have a stream. StreamSpecification *StreamSpecification `type:"structure"` @@ -26698,6 +27078,22 @@ func (s *WriteRequest) SetPutRequest(v *PutRequest) *WriteRequest { return s } +const ( + // ApproximateCreationDateTimePrecisionMillisecond is a ApproximateCreationDateTimePrecision enum value + ApproximateCreationDateTimePrecisionMillisecond = "MILLISECOND" + + // ApproximateCreationDateTimePrecisionMicrosecond is a ApproximateCreationDateTimePrecision enum value + ApproximateCreationDateTimePrecisionMicrosecond = "MICROSECOND" +) + +// ApproximateCreationDateTimePrecision_Values returns all elements of the ApproximateCreationDateTimePrecision enum +func ApproximateCreationDateTimePrecision_Values() []string { + return []string{ + ApproximateCreationDateTimePrecisionMillisecond, + ApproximateCreationDateTimePrecisionMicrosecond, + } +} + const ( // AttributeActionAdd is a AttributeAction enum value AttributeActionAdd = "ADD" @@ -27001,6 +27397,9 @@ const ( // DestinationStatusEnableFailed is a DestinationStatus enum value DestinationStatusEnableFailed = "ENABLE_FAILED" + + // DestinationStatusUpdating is a DestinationStatus enum value + DestinationStatusUpdating = "UPDATING" ) // DestinationStatus_Values returns all elements of the DestinationStatus enum @@ -27011,6 +27410,7 @@ func DestinationStatus_Values() []string { DestinationStatusDisabling, DestinationStatusDisabled, DestinationStatusEnableFailed, + DestinationStatusUpdating, } } diff --git a/service/dynamodb/dynamodbiface/interface.go b/service/dynamodb/dynamodbiface/interface.go index 0c97f94ed04..a4497260334 100644 --- a/service/dynamodb/dynamodbiface/interface.go +++ b/service/dynamodb/dynamodbiface/interface.go @@ -281,6 +281,10 @@ type DynamoDBAPI interface { UpdateItemWithContext(aws.Context, *dynamodb.UpdateItemInput, ...request.Option) (*dynamodb.UpdateItemOutput, error) UpdateItemRequest(*dynamodb.UpdateItemInput) (*request.Request, *dynamodb.UpdateItemOutput) + UpdateKinesisStreamingDestination(*dynamodb.UpdateKinesisStreamingDestinationInput) (*dynamodb.UpdateKinesisStreamingDestinationOutput, error) + UpdateKinesisStreamingDestinationWithContext(aws.Context, *dynamodb.UpdateKinesisStreamingDestinationInput, ...request.Option) (*dynamodb.UpdateKinesisStreamingDestinationOutput, error) + UpdateKinesisStreamingDestinationRequest(*dynamodb.UpdateKinesisStreamingDestinationInput) (*request.Request, *dynamodb.UpdateKinesisStreamingDestinationOutput) + UpdateTable(*dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error) UpdateTableWithContext(aws.Context, *dynamodb.UpdateTableInput, ...request.Option) (*dynamodb.UpdateTableOutput, error) UpdateTableRequest(*dynamodb.UpdateTableInput) (*request.Request, *dynamodb.UpdateTableOutput)