From 2a05d9136a1a77812867ae559b4c75ca9075e0a5 Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Tue, 17 Sep 2024 18:35:27 +0000 Subject: [PATCH] Update SDK models --- aws-models/codebuild.json | 12 +- aws-models/ecr.json | 29 +- aws-models/ecs.json | 90 ++-- aws-models/lambda.json | 445 ++++++++++++++++++ aws-models/rds.json | 6 +- aws-models/ssm.json | 165 +++++-- .../src/types/_scope_configuration.rs | 30 +- .../src/types/_webhook_scope_type.rs | 8 +- .../shape_enhanced_image_scan_finding.rs | 14 + .../shape_vulnerable_package.rs | 7 + .../src/types/_encryption_configuration.rs | 25 +- .../src/types/_enhanced_image_scan_finding.rs | 44 ++ sdk/ecr/src/types/_vulnerable_package.rs | 22 + sdk/ecs/src/client/put_account_setting.rs | 2 +- .../_put_account_setting_input.rs | 10 - .../operation/put_account_setting/builders.rs | 6 - sdk/ecs/src/types/_container_definition.rs | 310 ++++++------ .../src/types/_deployment_configuration.rs | 50 +- .../src/types/_docker_volume_configuration.rs | 20 +- sdk/ecs/src/types/_health_check.rs | 10 +- sdk/ecs/src/types/_kernel_capabilities.rs | 20 +- sdk/ecs/src/types/_linux_parameters.rs | 10 +- sdk/ecs/src/types/_log_configuration.rs | 2 +- sdk/ecs/src/types/_port_mapping.rs | 2 +- .../types/_service_connect_configuration.rs | 10 +- sdk/ecs/src/types/_system_control.rs | 2 +- sdk/ecs/src/types/_task_definition.rs | 10 +- sdk/ecs/src/types/_ulimit.rs | 20 +- sdk/lambda/src/client.rs | 10 + .../src/client/delete_resource_policy.rs | 13 + .../client/get_public_access_block_config.rs | 15 + sdk/lambda/src/client/get_resource_policy.rs | 14 + .../client/put_public_access_block_config.rs | 16 + sdk/lambda/src/client/put_resource_policy.rs | 16 + sdk/lambda/src/error_meta.rs | 186 ++++++++ sdk/lambda/src/operation.rs | 15 + .../src/operation/delete_resource_policy.rs | 429 +++++++++++++++++ .../_delete_resource_policy_input.rs | 75 +++ .../_delete_resource_policy_output.rs | 42 ++ .../delete_resource_policy/builders.rs | 139 ++++++ .../get_public_access_block_config.rs | 392 +++++++++++++++ .../_get_public_access_block_config_input.rs | 55 +++ .../_get_public_access_block_config_output.rs | 66 +++ .../builders.rs | 125 +++++ .../src/operation/get_resource_policy.rs | 390 +++++++++++++++ .../_get_resource_policy_input.rs | 52 ++ .../_get_resource_policy_output.rs | 88 ++++ .../operation/get_resource_policy/builders.rs | 125 +++++ .../put_public_access_block_config.rs | 408 ++++++++++++++++ .../_put_public_access_block_config_input.rs | 93 ++++ .../_put_public_access_block_config_output.rs | 66 +++ .../builders.rs | 149 ++++++ .../src/operation/put_resource_policy.rs | 440 +++++++++++++++++ .../_put_resource_policy_input.rs | 102 ++++ .../_put_resource_policy_output.rs | 88 ++++ .../operation/put_resource_policy/builders.rs | 158 +++++++ sdk/lambda/src/protocol_serde.rs | 18 + .../shape_delete_resource_policy.rs | 143 ++++++ .../shape_get_public_access_block_config.rs | 156 ++++++ .../shape_get_resource_policy.rs | 154 ++++++ .../shape_public_access_block_config.rs | 53 +++ .../shape_public_policy_exception.rs | 43 ++ .../shape_put_public_access_block_config.rs | 184 ++++++++ ...pe_put_public_access_block_config_input.rs | 13 + .../shape_put_resource_policy.rs | 228 +++++++++ .../shape_put_resource_policy_input.rs | 13 + sdk/lambda/src/types.rs | 4 + .../src/types/_public_access_block_config.rs | 72 +++ sdk/lambda/src/types/builders.rs | 2 + sdk/lambda/src/types/error.rs | 8 +- .../types/error/_public_policy_exception.rs | 111 +++++ sdk/lambda/src/types/error/builders.rs | 6 +- sdk/rds/src/client/create_db_instance.rs | 2 +- .../restore_db_instance_from_db_snapshot.rs | 2 +- .../restore_db_instance_to_point_in_time.rs | 2 +- .../_create_db_instance_input.rs | 10 +- .../operation/create_db_instance/builders.rs | 6 +- ...tore_db_instance_from_db_snapshot_input.rs | 10 +- .../builders.rs | 6 +- ...tore_db_instance_to_point_in_time_input.rs | 10 +- .../builders.rs | 6 +- sdk/ssm/src/client/create_activation.rs | 4 +- sdk/ssm/src/client/create_association.rs | 2 +- sdk/ssm/src/client/create_patch_baseline.rs | 4 +- sdk/ssm/src/client/delete_inventory.rs | 2 +- .../src/client/describe_instance_patches.rs | 2 +- .../describe_maintenance_window_executions.rs | 2 +- .../src/client/get_maintenance_window_task.rs | 2 +- sdk/ssm/src/client/get_parameter.rs | 2 +- .../register_task_with_maintenance_window.rs | 2 +- .../src/client/start_automation_execution.rs | 9 +- .../client/update_maintenance_window_task.rs | 4 +- .../client/update_managed_instance_role.rs | 2 +- sdk/ssm/src/client/update_ops_item.rs | 2 +- sdk/ssm/src/client/update_patch_baseline.rs | 4 +- sdk/ssm/src/error_meta.rs | 2 +- .../_create_activation_input.rs | 20 +- .../operation/create_activation/builders.rs | 14 +- .../_create_association_input.rs | 10 +- .../operation/create_association/builders.rs | 6 +- .../src/operation/create_document/builders.rs | 2 +- .../_create_patch_baseline_input.rs | 20 +- .../create_patch_baseline/builders.rs | 12 +- .../create_resource_data_sync/builders.rs | 2 +- .../_delete_inventory_output.rs | 10 +- .../_describe_instance_patches_input.rs | 10 +- .../describe_instance_patches/builders.rs | 6 +- ...ibe_maintenance_window_executions_input.rs | 10 +- .../builders.rs | 6 +- .../_get_maintenance_window_task_output.rs | 10 +- .../get_parameter/_get_parameter_input.rs | 10 +- .../src/operation/get_parameter/builders.rs | 6 +- ...ster_task_with_maintenance_window_input.rs | 10 +- .../builders.rs | 6 +- .../_start_automation_execution_input.rs | 47 +- .../start_automation_execution/builders.rs | 29 +- sdk/ssm/src/operation/start_session.rs | 2 +- .../_update_maintenance_window_task_input.rs | 10 +- .../_update_maintenance_window_task_output.rs | 10 +- .../builders.rs | 6 +- .../_update_managed_instance_role_input.rs | 10 +- .../update_managed_instance_role/builders.rs | 6 +- .../update_ops_item/_update_ops_item_input.rs | 10 +- .../src/operation/update_ops_item/builders.rs | 6 +- .../_update_patch_baseline_input.rs | 20 +- .../update_patch_baseline/builders.rs | 12 +- sdk/ssm/src/protocol_serde.rs | 2 + .../shape_automation_execution.rs | 7 + .../shape_automation_execution_metadata.rs | 7 + .../protocol_serde/shape_exclude_accounts.rs | 34 ++ .../shape_start_automation_execution_input.rs | 3 + .../protocol_serde/shape_target_location.rs | 56 +++ sdk/ssm/src/types/_attachments_source.rs | 20 +- sdk/ssm/src/types/_automation_execution.rs | 22 + .../types/_automation_execution_metadata.rs | 32 +- sdk/ssm/src/types/_baseline_override.rs | 20 +- sdk/ssm/src/types/_command_filter.rs | 20 +- sdk/ssm/src/types/_command_plugin.rs | 60 +-- sdk/ssm/src/types/_instance_information.rs | 10 +- sdk/ssm/src/types/_instance_patch_state.rs | 10 +- .../types/_inventory_deletion_status_item.rs | 10 +- sdk/ssm/src/types/_inventory_filter.rs | 10 +- ...intenance_window_run_command_parameters.rs | 10 +- sdk/ssm/src/types/_maintenance_window_task.rs | 10 +- sdk/ssm/src/types/_ops_item.rs | 10 +- sdk/ssm/src/types/_ops_item_summary.rs | 10 +- sdk/ssm/src/types/_patch_compliance_data.rs | 10 +- sdk/ssm/src/types/_patch_rule.rs | 90 ++-- sdk/ssm/src/types/_session_filter.rs | 20 +- sdk/ssm/src/types/_target_location.rs | 131 ++++++ .../src/types/error/_target_not_connected.rs | 2 +- versions.toml | 24 +- 152 files changed, 6711 insertions(+), 722 deletions(-) create mode 100644 sdk/lambda/src/client/delete_resource_policy.rs create mode 100644 sdk/lambda/src/client/get_public_access_block_config.rs create mode 100644 sdk/lambda/src/client/get_resource_policy.rs create mode 100644 sdk/lambda/src/client/put_public_access_block_config.rs create mode 100644 sdk/lambda/src/client/put_resource_policy.rs create mode 100644 sdk/lambda/src/operation/delete_resource_policy.rs create mode 100644 sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_input.rs create mode 100644 sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_output.rs create mode 100644 sdk/lambda/src/operation/delete_resource_policy/builders.rs create mode 100644 sdk/lambda/src/operation/get_public_access_block_config.rs create mode 100644 sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_input.rs create mode 100644 sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_output.rs create mode 100644 sdk/lambda/src/operation/get_public_access_block_config/builders.rs create mode 100644 sdk/lambda/src/operation/get_resource_policy.rs create mode 100644 sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_input.rs create mode 100644 sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_output.rs create mode 100644 sdk/lambda/src/operation/get_resource_policy/builders.rs create mode 100644 sdk/lambda/src/operation/put_public_access_block_config.rs create mode 100644 sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_input.rs create mode 100644 sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_output.rs create mode 100644 sdk/lambda/src/operation/put_public_access_block_config/builders.rs create mode 100644 sdk/lambda/src/operation/put_resource_policy.rs create mode 100644 sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_input.rs create mode 100644 sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_output.rs create mode 100644 sdk/lambda/src/operation/put_resource_policy/builders.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_delete_resource_policy.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_get_public_access_block_config.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_get_resource_policy.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_public_access_block_config.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_public_policy_exception.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_put_public_access_block_config.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_put_public_access_block_config_input.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_put_resource_policy.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_put_resource_policy_input.rs create mode 100644 sdk/lambda/src/types/_public_access_block_config.rs create mode 100644 sdk/lambda/src/types/error/_public_policy_exception.rs create mode 100644 sdk/ssm/src/protocol_serde/shape_exclude_accounts.rs diff --git a/aws-models/codebuild.json b/aws-models/codebuild.json index fa7f301f2697..fd1a144d349a 100644 --- a/aws-models/codebuild.json +++ b/aws-models/codebuild.json @@ -7455,20 +7455,20 @@ "name": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

", + "smithy.api#documentation": "

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

", "smithy.api#required": {} } }, "domain": { "target": "com.amazonaws.codebuild#String", "traits": { - "smithy.api#documentation": "

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

" + "smithy.api#documentation": "

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

" } }, "scope": { "target": "com.amazonaws.codebuild#WebhookScopeType", "traits": { - "smithy.api#documentation": "

The type of scope for a GitHub webhook.

", + "smithy.api#documentation": "

The type of scope for a GitHub or GitLab webhook.

", "smithy.api#required": {} } } @@ -9206,6 +9206,12 @@ "traits": { "smithy.api#enumValue": "GITHUB_GLOBAL" } + }, + "GITLAB_GROUP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GITLAB_GROUP" + } } } }, diff --git a/aws-models/ecr.json b/aws-models/ecr.json index 01682344f84c..fe5e547ed209 100644 --- a/aws-models/ecr.json +++ b/aws-models/ecr.json @@ -3499,7 +3499,7 @@ "encryptionType": { "target": "com.amazonaws.ecr#EncryptionType", "traits": { - "smithy.api#documentation": "

The encryption type to use.

\n

If you use the KMS encryption type, the contents of the repository will\n be encrypted using server-side encryption with Key Management Service key stored in KMS. When you\n use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key\n for Amazon ECR, or specify your own KMS key, which you already created.

\n

If you use the KMS_DSSE encryption type, the contents of the repository\n will be encrypted with two layers of encryption using server-side encryption with the\n KMS Management Service key stored in KMS. Similar to the KMS encryption type, you\n can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS\n key, which you've already created.

\n

If you use the AES256 encryption type, Amazon ECR uses server-side encryption\n with Amazon S3-managed encryption keys which encrypts the images in the repository using an\n AES256 encryption algorithm. For more information, see Protecting data using\n server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the\n Amazon Simple Storage Service Console Developer Guide.

", + "smithy.api#documentation": "

The encryption type to use.

\n

If you use the KMS encryption type, the contents of the repository will\n be encrypted using server-side encryption with Key Management Service key stored in KMS. When you\n use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key\n for Amazon ECR, or specify your own KMS key, which you already created.

\n

If you use the KMS_DSSE encryption type, the contents of the repository\n will be encrypted with two layers of encryption using server-side encryption with the\n KMS Management Service key stored in KMS. Similar to the KMS encryption type, you\n can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS\n key, which you've already created.

\n

If you use the AES256 encryption type, Amazon ECR uses server-side encryption\n with Amazon S3-managed encryption keys which encrypts the images in the repository using an\n AES256 encryption algorithm.

\n

For more information, see Amazon ECR encryption at\n rest in the Amazon Elastic Container Registry User Guide.

", "smithy.api#required": {} } }, @@ -3651,6 +3651,18 @@ "traits": { "smithy.api#documentation": "

The date and time the finding was last updated at.

" } + }, + "fixAvailable": { + "target": "com.amazonaws.ecr#FixAvailable", + "traits": { + "smithy.api#documentation": "

Details on whether a fix is available through a version update. This value can be\n YES, NO, or PARTIAL. A PARTIAL\n fix means that some, but not all, of the packages identified in the finding have fixes\n available through updated versions.

" + } + }, + "exploitAvailable": { + "target": "com.amazonaws.ecr#ExploitAvailable", + "traits": { + "smithy.api#documentation": "

If a finding discovered in your environment has an exploit available.

" + } } }, "traits": { @@ -3675,6 +3687,9 @@ "com.amazonaws.ecr#ExpirationTimestamp": { "type": "timestamp" }, + "com.amazonaws.ecr#ExploitAvailable": { + "type": "string" + }, "com.amazonaws.ecr#FilePath": { "type": "string" }, @@ -3737,6 +3752,12 @@ "target": "com.amazonaws.ecr#SeverityCount" } }, + "com.amazonaws.ecr#FixAvailable": { + "type": "string" + }, + "com.amazonaws.ecr#FixedInVersion": { + "type": "string" + }, "com.amazonaws.ecr#ForceFlag": { "type": "boolean", "traits": { @@ -8639,6 +8660,12 @@ "traits": { "smithy.api#documentation": "

The version of the vulnerable package.

" } + }, + "fixedInVersion": { + "target": "com.amazonaws.ecr#FixedInVersion", + "traits": { + "smithy.api#documentation": "

The version of the package that contains the vulnerability fix.

" + } } }, "traits": { diff --git a/aws-models/ecs.json b/aws-models/ecs.json index c65b3d1beb71..22284c4de10c 100644 --- a/aws-models/ecs.json +++ b/aws-models/ecs.json @@ -2279,13 +2279,13 @@ "name": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The name of a container. If you're linking multiple containers together in a task\n\t\t\tdefinition, the name of one container can be entered in the\n\t\t\t\tlinks of another container to connect the containers.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in tthe docker conainer create command and the\n\t\t\t\t--name option to docker\n\t\t\trun.

" + "smithy.api#documentation": "

The name of a container. If you're linking multiple containers together in a task\n\t\t\tdefinition, the name of one container can be entered in the\n\t\t\t\tlinks of another container to connect the containers.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the\n\t\t\t\t--name option to docker\n\t\t\trun.

" } }, "image": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The image used to start a container. This string is passed directly to the Docker\n\t\t\tdaemon. By default, images in the Docker Hub registry are available. Other repositories\n\t\t\tare specified with either \n repository-url/image:tag\n or \n repository-url/image@digest\n . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker conainer create command and the\n\t\t\t\tIMAGE parameter of docker\n\t\t\t\trun.

\n " + "smithy.api#documentation": "

The image used to start a container. This string is passed directly to the Docker\n\t\t\tdaemon. By default, images in the Docker Hub registry are available. Other repositories\n\t\t\tare specified with either \n repository-url/image:tag\n or \n repository-url/image@digest\n . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the\n\t\t\t\tIMAGE parameter of docker\n\t\t\t\trun.

\n " } }, "repositoryCredentials": { @@ -2298,31 +2298,31 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The number of cpu units reserved for the container. This parameter maps\n\t\t\tto CpuShares in the docker conainer create commandand the --cpu-shares option to docker run.

\n

This field is optional for tasks using the Fargate launch type, and the\n\t\t\tonly requirement is that the total amount of CPU reserved for all containers within a\n\t\t\ttask be lower than the task-level cpu value.

\n \n

You can determine the number of CPU units that are available per EC2 instance type\n\t\t\t\tby multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page\n\t\t\t\tby 1,024.

\n
\n

Linux containers share unallocated CPU units with other containers on the container\n\t\t\tinstance with the same ratio as their allocated amount. For example, if you run a\n\t\t\tsingle-container task on a single-core instance type with 512 CPU units specified for\n\t\t\tthat container, and that's the only task running on the container instance, that\n\t\t\tcontainer could use the full 1,024 CPU unit share at any given time. However, if you\n\t\t\tlaunched another copy of the same task on that container instance, each task is\n\t\t\tguaranteed a minimum of 512 CPU units when needed. Moreover, each container could float\n\t\t\tto higher CPU usage if the other container was not using it. If both tasks were 100%\n\t\t\tactive all of the time, they would be limited to 512 CPU units.

\n

On Linux container instances, the Docker daemon on the container instance uses the CPU\n\t\t\tvalue to calculate the relative CPU share ratios for running containers. The minimum valid CPU share value\n\t\t\tthat the Linux kernel allows is 2, and the\n\t\t\tmaximum valid CPU share value that the Linux kernel allows is 262144. However, the CPU parameter isn't required, and you\n\t\t\tcan use CPU values below 2 or above 262144 in your container definitions. For CPU values below 2\n\t\t\t(including null) or above 262144, the behavior varies based on your Amazon ECS container agent\n\t\t\tversion:

\n \n

On Windows container instances, the CPU limit is enforced as an absolute limit, or a\n\t\t\tquota. Windows containers only have access to the specified amount of CPU that's\n\t\t\tdescribed in the task definition. A null or zero CPU value is passed to Docker as\n\t\t\t\t0, which Windows interprets as 1% of one CPU.

" + "smithy.api#documentation": "

The number of cpu units reserved for the container. This parameter maps\n\t\t\tto CpuShares in the docker container create commandand the --cpu-shares option to docker run.

\n

This field is optional for tasks using the Fargate launch type, and the\n\t\t\tonly requirement is that the total amount of CPU reserved for all containers within a\n\t\t\ttask be lower than the task-level cpu value.

\n \n

You can determine the number of CPU units that are available per EC2 instance type\n\t\t\t\tby multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page\n\t\t\t\tby 1,024.

\n
\n

Linux containers share unallocated CPU units with other containers on the container\n\t\t\tinstance with the same ratio as their allocated amount. For example, if you run a\n\t\t\tsingle-container task on a single-core instance type with 512 CPU units specified for\n\t\t\tthat container, and that's the only task running on the container instance, that\n\t\t\tcontainer could use the full 1,024 CPU unit share at any given time. However, if you\n\t\t\tlaunched another copy of the same task on that container instance, each task is\n\t\t\tguaranteed a minimum of 512 CPU units when needed. Moreover, each container could float\n\t\t\tto higher CPU usage if the other container was not using it. If both tasks were 100%\n\t\t\tactive all of the time, they would be limited to 512 CPU units.

\n

On Linux container instances, the Docker daemon on the container instance uses the CPU\n\t\t\tvalue to calculate the relative CPU share ratios for running containers. The minimum valid CPU share value\n\t\t\tthat the Linux kernel allows is 2, and the\n\t\t\tmaximum valid CPU share value that the Linux kernel allows is 262144. However, the CPU parameter isn't required, and you\n\t\t\tcan use CPU values below 2 or above 262144 in your container definitions. For CPU values below 2\n\t\t\t(including null) or above 262144, the behavior varies based on your Amazon ECS container agent\n\t\t\tversion:

\n \n

On Windows container instances, the CPU limit is enforced as an absolute limit, or a\n\t\t\tquota. Windows containers only have access to the specified amount of CPU that's\n\t\t\tdescribed in the task definition. A null or zero CPU value is passed to Docker as\n\t\t\t\t0, which Windows interprets as 1% of one CPU.

" } }, "memory": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The amount (in MiB) of memory to present to the container. If your container attempts\n\t\t\tto exceed the memory specified here, the container is killed. The total amount of memory\n\t\t\treserved for all containers within a task must be lower than the task\n\t\t\t\tmemory value, if one is specified. This parameter maps to\n\t\t\tMemory in thethe docker conainer create command and the --memory option to docker run.

\n

If using the Fargate launch type, this parameter is optional.

\n

If using the EC2 launch type, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. If you specify both a container-level\n\t\t\t\tmemory and memoryReservation value, memory\n\t\t\tmust be greater than memoryReservation. If you specify\n\t\t\t\tmemoryReservation, then that value is subtracted from the available\n\t\t\tmemory resources for the container instance where the container is placed. Otherwise,\n\t\t\tthe value of memory is used.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 4 MiB of memory for your containers.

" + "smithy.api#documentation": "

The amount (in MiB) of memory to present to the container. If your container attempts\n\t\t\tto exceed the memory specified here, the container is killed. The total amount of memory\n\t\t\treserved for all containers within a task must be lower than the task\n\t\t\t\tmemory value, if one is specified. This parameter maps to\n\t\t\tMemory in the docker container create command and the --memory option to docker run.

\n

If using the Fargate launch type, this parameter is optional.

\n

If using the EC2 launch type, you must specify either a task-level\n\t\t\tmemory value or a container-level memory value. If you specify both a container-level\n\t\t\t\tmemory and memoryReservation value, memory\n\t\t\tmust be greater than memoryReservation. If you specify\n\t\t\t\tmemoryReservation, then that value is subtracted from the available\n\t\t\tmemory resources for the container instance where the container is placed. Otherwise,\n\t\t\tthe value of memory is used.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 4 MiB of memory for your containers.

" } }, "memoryReservation": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

The soft limit (in MiB) of memory to reserve for the container. When system memory is\n\t\t\tunder heavy contention, Docker attempts to keep the container memory to this soft limit.\n\t\t\tHowever, your container can consume more memory when it needs to, up to either the hard\n\t\t\tlimit specified with the memory parameter (if applicable), or all of the\n\t\t\tavailable memory on the container instance, whichever comes first. This parameter maps\n\t\t\tto MemoryReservation in the the docker conainer create command and the --memory-reservation option to docker run.

\n

If a task-level memory value is not specified, you must specify a non-zero integer for\n\t\t\tone or both of memory or memoryReservation in a container\n\t\t\tdefinition. If you specify both, memory must be greater than\n\t\t\t\tmemoryReservation. If you specify memoryReservation, then\n\t\t\tthat value is subtracted from the available memory resources for the container instance\n\t\t\twhere the container is placed. Otherwise, the value of memory is\n\t\t\tused.

\n

For example, if your container normally uses 128 MiB of memory, but occasionally\n\t\t\tbursts to 256 MiB of memory for short periods of time, you can set a\n\t\t\t\tmemoryReservation of 128 MiB, and a memory hard limit of\n\t\t\t300 MiB. This configuration would allow the container to only reserve 128 MiB of memory\n\t\t\tfrom the remaining resources on the container instance, but also allow the container to\n\t\t\tconsume more memory resources when needed.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 4 MiB of memory for your containers.

" + "smithy.api#documentation": "

The soft limit (in MiB) of memory to reserve for the container. When system memory is\n\t\t\tunder heavy contention, Docker attempts to keep the container memory to this soft limit.\n\t\t\tHowever, your container can consume more memory when it needs to, up to either the hard\n\t\t\tlimit specified with the memory parameter (if applicable), or all of the\n\t\t\tavailable memory on the container instance, whichever comes first. This parameter maps\n\t\t\tto MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

\n

If a task-level memory value is not specified, you must specify a non-zero integer for\n\t\t\tone or both of memory or memoryReservation in a container\n\t\t\tdefinition. If you specify both, memory must be greater than\n\t\t\t\tmemoryReservation. If you specify memoryReservation, then\n\t\t\tthat value is subtracted from the available memory resources for the container instance\n\t\t\twhere the container is placed. Otherwise, the value of memory is\n\t\t\tused.

\n

For example, if your container normally uses 128 MiB of memory, but occasionally\n\t\t\tbursts to 256 MiB of memory for short periods of time, you can set a\n\t\t\t\tmemoryReservation of 128 MiB, and a memory hard limit of\n\t\t\t300 MiB. This configuration would allow the container to only reserve 128 MiB of memory\n\t\t\tfrom the remaining resources on the container instance, but also allow the container to\n\t\t\tconsume more memory resources when needed.

\n

The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 6 MiB of memory for your containers.

\n

The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a\n\t\t\tcontainer. So, don't specify less than 4 MiB of memory for your containers.

" } }, "links": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The links parameter allows containers to communicate with each other\n\t\t\twithout the need for port mappings. This parameter is only supported if the network mode\n\t\t\tof a task definition is bridge. The name:internalName\n\t\t\tconstruct is analogous to name:alias in Docker links.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker conainer create command and the\n\t\t\t\t--link option to docker\n\t\t\trun.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

Containers that are collocated on a single container instance may be able to\n\t\t\t\tcommunicate with each other without requiring links or host port mappings. Network\n\t\t\t\tisolation is achieved on the container instance using security groups and VPC\n\t\t\t\tsettings.

\n
" + "smithy.api#documentation": "

The links parameter allows containers to communicate with each other\n\t\t\twithout the need for port mappings. This parameter is only supported if the network mode\n\t\t\tof a task definition is bridge. The name:internalName\n\t\t\tconstruct is analogous to name:alias in Docker links.\n\t\t\tUp to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the\n\t\t\t\t--link option to docker\n\t\t\trun.

\n \n

This parameter is not supported for Windows containers.

\n
\n \n

Containers that are collocated on a single container instance may be able to\n\t\t\t\tcommunicate with each other without requiring links or host port mappings. Network\n\t\t\t\tisolation is achieved on the container instance using security groups and VPC\n\t\t\t\tsettings.

\n
" } }, "portMappings": { "target": "com.amazonaws.ecs#PortMappingList", "traits": { - "smithy.api#documentation": "

The list of port mappings for the container. Port mappings allow containers to access\n\t\t\tports on the host container instance to send or receive traffic.

\n

For task definitions that use the awsvpc network mode, only specify the\n\t\t\t\tcontainerPort. The hostPort can be left blank or it must\n\t\t\tbe the same value as the containerPort.

\n

Port mappings on Windows use the NetNAT gateway address rather than\n\t\t\t\tlocalhost. There's no loopback for port mappings on Windows, so you\n\t\t\tcan't access a container's mapped port from the host itself.

\n

This parameter maps to PortBindings in the\n\t\t\tthe docker conainer create command and the\n\t\t\t\t--publish option to docker\n\t\t\t\trun. If the network mode of a task definition is set to none,\n\t\t\tthen you can't specify port mappings. If the network mode of a task definition is set to\n\t\t\t\thost, then host ports must either be undefined or they must match the\n\t\t\tcontainer port in the port mapping.

\n \n

After a task reaches the RUNNING status, manual and automatic host\n\t\t\t\tand container port assignments are visible in the Network\n\t\t\t\t\tBindings section of a container description for a selected task in\n\t\t\t\tthe Amazon ECS console. The assignments are also visible in the\n\t\t\t\tnetworkBindings section DescribeTasks\n\t\t\t\tresponses.

\n
" + "smithy.api#documentation": "

The list of port mappings for the container. Port mappings allow containers to access\n\t\t\tports on the host container instance to send or receive traffic.

\n

For task definitions that use the awsvpc network mode, only specify the\n\t\t\t\tcontainerPort. The hostPort can be left blank or it must\n\t\t\tbe the same value as the containerPort.

\n

Port mappings on Windows use the NetNAT gateway address rather than\n\t\t\t\tlocalhost. There's no loopback for port mappings on Windows, so you\n\t\t\tcan't access a container's mapped port from the host itself.

\n

This parameter maps to PortBindings in the\n\t\t\tthe docker container create command and the\n\t\t\t\t--publish option to docker\n\t\t\t\trun. If the network mode of a task definition is set to none,\n\t\t\tthen you can't specify port mappings. If the network mode of a task definition is set to\n\t\t\t\thost, then host ports must either be undefined or they must match the\n\t\t\tcontainer port in the port mapping.

\n \n

After a task reaches the RUNNING status, manual and automatic host\n\t\t\t\tand container port assignments are visible in the Network\n\t\t\t\t\tBindings section of a container description for a selected task in\n\t\t\t\tthe Amazon ECS console. The assignments are also visible in the\n\t\t\t\tnetworkBindings section DescribeTasks\n\t\t\t\tresponses.

\n
" } }, "essential": { @@ -2340,19 +2340,19 @@ "entryPoint": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "\n

Early versions of the Amazon ECS container agent don't properly handle\n\t\t\t\t\tentryPoint parameters. If you have problems using\n\t\t\t\t\tentryPoint, update your container agent or enter your commands and\n\t\t\t\targuments as command array items instead.

\n
\n

The entry point that's passed to the container. This parameter maps to\n\t\t\tEntrypoint in tthe docker conainer create command and the --entrypoint option to docker run.

" + "smithy.api#documentation": "\n

Early versions of the Amazon ECS container agent don't properly handle\n\t\t\t\t\tentryPoint parameters. If you have problems using\n\t\t\t\t\tentryPoint, update your container agent or enter your commands and\n\t\t\t\targuments as command array items instead.

\n
\n

The entry point that's passed to the container. This parameter maps to\n\t\t\tEntrypoint in the docker container create command and the --entrypoint option to docker run.

" } }, "command": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The command that's passed to the container. This parameter maps to Cmd in\n\t\t\tthe docker conainer create command and the\n\t\t\t\tCOMMAND parameter to docker\n\t\t\t\trun. If there are multiple arguments, each\n\t\t\targument is a separated string in the array.

" + "smithy.api#documentation": "

The command that's passed to the container. This parameter maps to Cmd in\n\t\t\tthe docker container create command and the\n\t\t\t\tCOMMAND parameter to docker\n\t\t\t\trun. If there are multiple arguments, each\n\t\t\targument is a separated string in the array.

" } }, "environment": { "target": "com.amazonaws.ecs#EnvironmentVariables", "traits": { - "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to\n\t\t\tEnv in the docker conainer create command and the --env option to docker run.

\n \n

We don't recommend that you use plaintext environment variables for sensitive\n\t\t\t\tinformation, such as credential data.

\n
" + "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to\n\t\t\tEnv in the docker container create command and the --env option to docker run.

\n \n

We don't recommend that you use plaintext environment variables for sensitive\n\t\t\t\tinformation, such as credential data.

\n
" } }, "environmentFiles": { @@ -2364,13 +2364,13 @@ "mountPoints": { "target": "com.amazonaws.ecs#MountPointList", "traits": { - "smithy.api#documentation": "

The mount points for data volumes in your container.

\n

This parameter maps to Volumes in the the docker conainer create command and the --volume option to docker run.

\n

Windows containers can mount whole directories on the same drive as\n\t\t\t\t$env:ProgramData. Windows containers can't mount directories on a\n\t\t\tdifferent drive, and mount point can't be across drives.

" + "smithy.api#documentation": "

The mount points for data volumes in your container.

\n

This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

\n

Windows containers can mount whole directories on the same drive as\n\t\t\t\t$env:ProgramData. Windows containers can't mount directories on a\n\t\t\tdifferent drive, and mount point can't be across drives.

" } }, "volumesFrom": { "target": "com.amazonaws.ecs#VolumeFromList", "traits": { - "smithy.api#documentation": "

Data volumes to mount from another container. This parameter maps to\n\t\t\tVolumesFrom in tthe docker conainer create command and the --volumes-from option to docker run.

" + "smithy.api#documentation": "

Data volumes to mount from another container. This parameter maps to\n\t\t\tVolumesFrom in the docker container create command and the --volumes-from option to docker run.

" } }, "linuxParameters": { @@ -2400,109 +2400,109 @@ "stopTimeout": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

Time duration (in seconds) to wait before the container is forcefully killed if it\n\t\t\tdoesn't exit normally on its own.

\n

For tasks using the Fargate launch type, the task or service requires\n\t\t\tthe following platforms:

\n \n

The max stop timeout value is 120 seconds and if the parameter is not specified, the\n\t\t\tdefault value of 30 seconds is used.

\n

For tasks that use the EC2 launch type, if the stopTimeout\n\t\t\tparameter isn't specified, the value set for the Amazon ECS container agent configuration\n\t\t\tvariable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the\n\t\t\t\tstopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT\n\t\t\tagent configuration variable are set, then the default values of 30 seconds for Linux\n\t\t\tcontainers and 30 seconds on Windows containers are used. Your container instances\n\t\t\trequire at least version 1.26.0 of the container agent to use a container stop timeout\n\t\t\tvalue. However, we recommend using the latest container agent version. For information\n\t\t\tabout checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using\n\t\t\tan Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the\n\t\t\t\tecs-init package. If your container instances are launched from version\n\t\t\t\t20190301 or later, then they contain the required versions of the\n\t\t\tcontainer agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

\n

The valid values are 2-120 seconds.

" + "smithy.api#documentation": "

Time duration (in seconds) to wait before the container is forcefully killed if it\n\t\t\tdoesn't exit normally on its own.

\n

For tasks using the Fargate launch type, the task or service requires\n\t\t\tthe following platforms:

\n \n

For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the\n\t\t\tdefault value of 30 seconds is used.

\n

For tasks that use the EC2 launch type, if the stopTimeout\n\t\t\tparameter isn't specified, the value set for the Amazon ECS container agent configuration\n\t\t\tvariable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the\n\t\t\t\tstopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT\n\t\t\tagent configuration variable are set, then the default values of 30 seconds for Linux\n\t\t\tcontainers and 30 seconds on Windows containers are used. Your container instances\n\t\t\trequire at least version 1.26.0 of the container agent to use a container stop timeout\n\t\t\tvalue. However, we recommend using the latest container agent version. For information\n\t\t\tabout checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using\n\t\t\tan Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the\n\t\t\t\tecs-init package. If your container instances are launched from version\n\t\t\t\t20190301 or later, then they contain the required versions of the\n\t\t\tcontainer agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

\n

The valid values for Fargate are 2-120 seconds.

" } }, "hostname": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The hostname to use for your container. This parameter maps to Hostname\n\t\t\tin thethe docker conainer create command and the\n\t\t\t\t--hostname option to docker\n\t\t\t\trun.

\n \n

The hostname parameter is not supported if you're using the\n\t\t\t\t\tawsvpc network mode.

\n
" + "smithy.api#documentation": "

The hostname to use for your container. This parameter maps to Hostname\n\t\t\tin the docker container create command and the\n\t\t\t\t--hostname option to docker\n\t\t\t\trun.

\n \n

The hostname parameter is not supported if you're using the\n\t\t\t\t\tawsvpc network mode.

\n
" } }, "user": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The user to use inside the container. This parameter maps to User in the docker conainer create command and the\n\t\t\t\t--user option to docker\n\t\t\trun.

\n \n

When running tasks using the host network mode, don't run containers\n\t\t\t\tusing the root user (UID 0). We recommend using a non-root user for better\n\t\t\t\tsecurity.

\n
\n

You can specify the user using the following formats. If specifying a UID\n\t\t\tor GID, you must specify it as a positive integer.

\n \n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

The user to use inside the container. This parameter maps to User in the docker container create command and the\n\t\t\t\t--user option to docker\n\t\t\trun.

\n \n

When running tasks using the host network mode, don't run containers\n\t\t\t\tusing the root user (UID 0). We recommend using a non-root user for better\n\t\t\t\tsecurity.

\n
\n

You can specify the user using the following formats. If specifying a UID\n\t\t\tor GID, you must specify it as a positive integer.

\n \n \n

This parameter is not supported for Windows containers.

\n
" } }, "workingDirectory": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The working directory to run commands inside the container in. This parameter maps to\n\t\t\tWorkingDir in the docker conainer create command and the --workdir option to docker run.

" + "smithy.api#documentation": "

The working directory to run commands inside the container in. This parameter maps to\n\t\t\tWorkingDir in the docker container create command and the --workdir option to docker run.

" } }, "disableNetworking": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, networking is off within the container. This parameter\n\t\t\tmaps to NetworkDisabled in the docker conainer create command.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

When this parameter is true, networking is off within the container. This parameter\n\t\t\tmaps to NetworkDisabled in the docker container create command.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "privileged": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\tPrivileged in the the docker conainer create command and the --privileged option to docker run

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the host\n\t\t\tcontainer instance (similar to the root user). This parameter maps to\n\t\t\tPrivileged in the docker container create command and the --privileged option to docker run

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" } }, "readonlyRootFilesystem": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, the container is given read-only access to its root file\n\t\t\tsystem. This parameter maps to ReadonlyRootfs in the docker conainer create command and the\n\t\t\t\t--read-only option to docker\n\t\t\t\trun.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

When this parameter is true, the container is given read-only access to its root file\n\t\t\tsystem. This parameter maps to ReadonlyRootfs in the docker container create command and the\n\t\t\t\t--read-only option to docker\n\t\t\t\trun.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "dnsServers": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of DNS servers that are presented to the container. This parameter maps to\n\t\t\tDns in the the docker conainer create command and the --dns option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

A list of DNS servers that are presented to the container. This parameter maps to\n\t\t\tDns in the docker container create command and the --dns option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "dnsSearchDomains": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of DNS search domains that are presented to the container. This parameter maps\n\t\t\tto DnsSearch in the docker conainer create command and the --dns-search option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

A list of DNS search domains that are presented to the container. This parameter maps\n\t\t\tto DnsSearch in the docker container create command and the --dns-search option to docker run.

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "extraHosts": { "target": "com.amazonaws.ecs#HostEntryList", "traits": { - "smithy.api#documentation": "

A list of hostnames and IP address mappings to append to the /etc/hosts\n\t\t\tfile on the container. This parameter maps to ExtraHosts in the docker conainer create command and the\n\t\t\t\t--add-host option to docker\n\t\t\t\trun.

\n \n

This parameter isn't supported for Windows containers or tasks that use the\n\t\t\t\t\tawsvpc network mode.

\n
" + "smithy.api#documentation": "

A list of hostnames and IP address mappings to append to the /etc/hosts\n\t\t\tfile on the container. This parameter maps to ExtraHosts in the docker container create command and the\n\t\t\t\t--add-host option to docker\n\t\t\t\trun.

\n \n

This parameter isn't supported for Windows containers or tasks that use the\n\t\t\t\t\tawsvpc network mode.

\n
" } }, "dockerSecurityOptions": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks\n\t\t\tusing the Fargate launch type.

\n

For Linux tasks on EC2, this parameter can be used to reference custom\n\t\t\tlabels for SELinux and AppArmor multi-level security systems.

\n

For any tasks on EC2, this parameter can be used to reference a\n\t\t\tcredential spec file that configures a container for Active Directory authentication.\n\t\t\tFor more information, see Using gMSAs for Windows\n\t\t\t\tContainers and Using gMSAs for Linux\n\t\t\t\tContainers in the Amazon Elastic Container Service Developer Guide.

\n

This parameter maps to SecurityOpt in the docker conainer create command and the\n\t\t\t\t--security-opt option to docker\n\t\t\t\trun.

\n \n

The Amazon ECS container agent running on a container instance must register with the\n\t\t\t\t\tECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true\n\t\t\t\tenvironment variables before containers placed on that instance can use these\n\t\t\t\tsecurity options. For more information, see Amazon ECS Container\n\t\t\t\t\tAgent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
\n

Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" | \"label:value\" |\n\t\t\t\"credentialspec:CredentialSpecFilePath\"

" + "smithy.api#documentation": "

A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks\n\t\t\tusing the Fargate launch type.

\n

For Linux tasks on EC2, this parameter can be used to reference custom\n\t\t\tlabels for SELinux and AppArmor multi-level security systems.

\n

For any tasks on EC2, this parameter can be used to reference a\n\t\t\tcredential spec file that configures a container for Active Directory authentication.\n\t\t\tFor more information, see Using gMSAs for Windows\n\t\t\t\tContainers and Using gMSAs for Linux\n\t\t\t\tContainers in the Amazon Elastic Container Service Developer Guide.

\n

This parameter maps to SecurityOpt in the docker container create command and the\n\t\t\t\t--security-opt option to docker\n\t\t\t\trun.

\n \n

The Amazon ECS container agent running on a container instance must register with the\n\t\t\t\t\tECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true\n\t\t\t\tenvironment variables before containers placed on that instance can use these\n\t\t\t\tsecurity options. For more information, see Amazon ECS Container\n\t\t\t\t\tAgent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
\n

Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" | \"label:value\" |\n\t\t\t\"credentialspec:CredentialSpecFilePath\"

" } }, "interactive": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, you can deploy containerized applications\n\t\t\tthat require stdin or a tty to be allocated. This parameter\n\t\t\tmaps to OpenStdin in the docker conainer create command and the --interactive option to docker run.

" + "smithy.api#documentation": "

When this parameter is true, you can deploy containerized applications\n\t\t\tthat require stdin or a tty to be allocated. This parameter\n\t\t\tmaps to OpenStdin in the docker container create command and the --interactive option to docker run.

" } }, "pseudoTerminal": { "target": "com.amazonaws.ecs#BoxedBoolean", "traits": { - "smithy.api#documentation": "

When this parameter is true, a TTY is allocated. This parameter maps to\n\t\t\tTty in tthe docker conainer create command and the --tty option to docker run.

" + "smithy.api#documentation": "

When this parameter is true, a TTY is allocated. This parameter maps to\n\t\t\tTty in the docker container create command and the --tty option to docker run.

" } }, "dockerLabels": { "target": "com.amazonaws.ecs#DockerLabelsMap", "traits": { - "smithy.api#documentation": "

A key/value map of labels to add to the container. This parameter maps to\n\t\t\tLabels in the docker conainer create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" + "smithy.api#documentation": "

A key/value map of labels to add to the container. This parameter maps to\n\t\t\tLabels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

" } }, "ulimits": { "target": "com.amazonaws.ecs#UlimitList", "traits": { - "smithy.api#documentation": "

A list of ulimits to set in the container. If a ulimit value\n\t\t\tis specified in a task definition, it overrides the default values set by Docker. This\n\t\t\tparameter maps to Ulimits in tthe docker conainer create command and the --ulimit option to docker run. Valid naming values are displayed\n\t\t\tin the Ulimit data type.

\n

Amazon ECS tasks hosted on Fargate use the default\n\t\t\t\t\t\t\tresource limit values set by the operating system with the exception of\n\t\t\t\t\t\t\tthe nofile resource limit parameter which Fargate\n\t\t\t\t\t\t\toverrides. The nofile resource limit sets a restriction on\n\t\t\t\t\t\t\tthe number of open files that a container can use. The default\n\t\t\t\t\t\t\t\tnofile soft limit is 65535 and the default hard limit\n\t\t\t\t\t\t\tis 65535.

\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

This parameter is not supported for Windows containers.

\n
" + "smithy.api#documentation": "

A list of ulimits to set in the container. If a ulimit value\n\t\t\tis specified in a task definition, it overrides the default values set by Docker. This\n\t\t\tparameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed\n\t\t\tin the Ulimit data type.

\n

Amazon ECS tasks hosted on Fargate use the default\n\t\t\t\t\t\t\tresource limit values set by the operating system with the exception of\n\t\t\t\t\t\t\tthe nofile resource limit parameter which Fargate\n\t\t\t\t\t\t\toverrides. The nofile resource limit sets a restriction on\n\t\t\t\t\t\t\tthe number of open files that a container can use. The default\n\t\t\t\t\t\t\t\tnofile soft limit is 65535 and the default hard limit\n\t\t\t\t\t\t\tis 65535.

\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

This parameter is not supported for Windows containers.

\n
" } }, "logConfiguration": { "target": "com.amazonaws.ecs#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the docker conainer create command and the\n\t\t\t\t--log-driver option to docker\n\t\t\t\trun. By default, containers use the same logging driver that the Docker\n\t\t\tdaemon uses. However the container can use a different logging driver than the Docker\n\t\t\tdaemon by specifying a log driver with this parameter in the container definition. To\n\t\t\tuse a different logging driver for a container, the log system must be configured\n\t\t\tproperly on the container instance (or on a different log server for remote logging\n\t\t\toptions).

\n \n

Amazon ECS currently supports a subset of the logging drivers available to the Docker\n\t\t\t\tdaemon (shown in the LogConfiguration data type). Additional log\n\t\t\t\tdrivers may be available in future releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

The Amazon ECS container agent running on a container instance must register the\n\t\t\t\tlogging drivers available on that instance with the\n\t\t\t\t\tECS_AVAILABLE_LOGGING_DRIVERS environment variable before\n\t\t\t\tcontainers placed on that instance can use these log configuration options. For more\n\t\t\t\tinformation, see Amazon ECS Container\n\t\t\t\t\tAgent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the docker container create command and the\n\t\t\t\t--log-driver option to docker\n\t\t\t\trun. By default, containers use the same logging driver that the Docker\n\t\t\tdaemon uses. However the container can use a different logging driver than the Docker\n\t\t\tdaemon by specifying a log driver with this parameter in the container definition. To\n\t\t\tuse a different logging driver for a container, the log system must be configured\n\t\t\tproperly on the container instance (or on a different log server for remote logging\n\t\t\toptions).

\n \n

Amazon ECS currently supports a subset of the logging drivers available to the Docker\n\t\t\t\tdaemon (shown in the LogConfiguration data type). Additional log\n\t\t\t\tdrivers may be available in future releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'\n

\n \n

The Amazon ECS container agent running on a container instance must register the\n\t\t\t\tlogging drivers available on that instance with the\n\t\t\t\t\tECS_AVAILABLE_LOGGING_DRIVERS environment variable before\n\t\t\t\tcontainers placed on that instance can use these log configuration options. For more\n\t\t\t\tinformation, see Amazon ECS Container\n\t\t\t\t\tAgent Configuration in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "healthCheck": { "target": "com.amazonaws.ecs#HealthCheck", "traits": { - "smithy.api#documentation": "

The container health check command and associated configuration parameters for the\n\t\t\tcontainer. This parameter maps to HealthCheck in the docker conainer create command and the\n\t\t\t\tHEALTHCHECK parameter of docker\n\t\t\t\trun.

" + "smithy.api#documentation": "

The container health check command and associated configuration parameters for the\n\t\t\tcontainer. This parameter maps to HealthCheck in the docker container create command and the\n\t\t\t\tHEALTHCHECK parameter of docker\n\t\t\t\trun.

" } }, "systemControls": { "target": "com.amazonaws.ecs#SystemControls", "traits": { - "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\tSysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure\n\t\t\t\tnet.ipv4.tcp_keepalive_time setting to maintain longer lived\n\t\t\tconnections.

" + "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\tSysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure\n\t\t\t\tnet.ipv4.tcp_keepalive_time setting to maintain longer lived\n\t\t\tconnections.

" } }, "resourceRequirements": { @@ -4281,13 +4281,13 @@ "maximumPercent": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tmaximumPercent parameter represents an upper limit on the number of\n\t\t\tyour service's tasks that are allowed in the RUNNING or\n\t\t\t\tPENDING state during a deployment, as a percentage of the\n\t\t\t\tdesiredCount (rounded down to the nearest integer). This parameter\n\t\t\tenables you to define the deployment batch size. For example, if your service is using\n\t\t\tthe REPLICA service scheduler and has a desiredCount of four\n\t\t\ttasks and a maximumPercent value of 200%, the scheduler may start four new\n\t\t\ttasks before stopping the four older tasks (provided that the cluster resources required\n\t\t\tto do this are available). The default maximumPercent value for a service\n\t\t\tusing the REPLICA service scheduler is 200%.

\n

If a service is using either the blue/green (CODE_DEPLOY) or\n\t\t\t\tEXTERNAL deployment types and tasks that use the EC2\n\t\t\tlaunch type, the maximum percent value is set to the\n\t\t\tdefault value and is used to define the upper limit on the number of the tasks in the\n\t\t\tservice that remain in the RUNNING state while the container instances are\n\t\t\tin the DRAINING state. If the tasks in the service use the\n\t\t\tFargate launch type, the maximum percent value is not used, although it is\n\t\t\treturned when describing your service.

" + "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tmaximumPercent parameter represents an upper limit on the number of\n\t\t\tyour service's tasks that are allowed in the RUNNING or\n\t\t\t\tPENDING state during a deployment, as a percentage of the\n\t\t\t\tdesiredCount (rounded down to the nearest integer). This parameter\n\t\t\tenables you to define the deployment batch size. For example, if your service is using\n\t\t\tthe REPLICA service scheduler and has a desiredCount of four\n\t\t\ttasks and a maximumPercent value of 200%, the scheduler may start four new\n\t\t\ttasks before stopping the four older tasks (provided that the cluster resources required\n\t\t\tto do this are available). The default maximumPercent value for a service\n\t\t\tusing the REPLICA service scheduler is 200%.

\n

If a service is using either the blue/green (CODE_DEPLOY) or\n\t\t\t\tEXTERNAL deployment types, and tasks in the service use the EC2\n\t\t\tlaunch type, the maximum percent value is set to the\n\t\t\tdefault value. The maximum percent value is used to define the upper limit on the number of the tasks in the\n\t\t\tservice that remain in the RUNNING state while the container instances are\n\t\t\tin the DRAINING state.

\n \n

You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or\n\t\t\tEXTERNAL deployment types and has tasks that use the EC2 launch type.

\n
\n

If the tasks in the service use the\n\t\t\tFargate launch type, the maximum percent value is not used, although it is\n\t\t\treturned when describing your service.

" } }, "minimumHealthyPercent": { "target": "com.amazonaws.ecs#BoxedInteger", "traits": { - "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tminimumHealthyPercent represents a lower limit on the number of your\n\t\t\tservice's tasks that must remain in the RUNNING state during a deployment,\n\t\t\tas a percentage of the desiredCount (rounded up to the nearest integer).\n\t\t\tThis parameter enables you to deploy without using additional cluster capacity. For\n\t\t\texample, if your service has a desiredCount of four tasks and a\n\t\t\t\tminimumHealthyPercent of 50%, the service scheduler may stop two\n\t\t\texisting tasks to free up cluster capacity before starting two new tasks.

\n

For services that do not use a load balancer, the following\n\t\t\tshould be noted:

\n \n

For services that do use a load balancer, the following should be\n\t\t\tnoted:

\n \n

The default value for a replica service for minimumHealthyPercent is\n\t\t\t100%. The default minimumHealthyPercent value for a service using the\n\t\t\t\tDAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the\n\t\t\tAPIs and 50% for the Amazon Web Services Management Console.

\n

The minimum number of healthy tasks during a deployment is the\n\t\t\t\tdesiredCount multiplied by the minimumHealthyPercent/100,\n\t\t\trounded up to the nearest integer value.

\n

If a service is using either the blue/green (CODE_DEPLOY) or\n\t\t\t\tEXTERNAL deployment types and is running tasks that use the\n\t\t\tEC2 launch type, the minimum healthy\n\t\t\t\tpercent value is set to the default value and is used to define the lower\n\t\t\tlimit on the number of the tasks in the service that remain in the RUNNING\n\t\t\tstate while the container instances are in the DRAINING state. If a service\n\t\t\tis using either the blue/green (CODE_DEPLOY) or EXTERNAL\n\t\t\tdeployment types and is running tasks that use the Fargate launch type,\n\t\t\tthe minimum healthy percent value is not used, although it is returned when describing\n\t\t\tyour service.

" + "smithy.api#documentation": "

If a service is using the rolling update (ECS) deployment type, the\n\t\t\t\tminimumHealthyPercent represents a lower limit on the number of your\n\t\t\tservice's tasks that must remain in the RUNNING state during a deployment,\n\t\t\tas a percentage of the desiredCount (rounded up to the nearest integer).\n\t\t\tThis parameter enables you to deploy without using additional cluster capacity. For\n\t\t\texample, if your service has a desiredCount of four tasks and a\n\t\t\t\tminimumHealthyPercent of 50%, the service scheduler may stop two\n\t\t\texisting tasks to free up cluster capacity before starting two new tasks.

\n

For services that do not use a load balancer, the following\n\t\t\tshould be noted:

\n \n

For services that do use a load balancer, the following should be\n\t\t\tnoted:

\n \n

The default value for a replica service for minimumHealthyPercent is\n\t\t\t100%. The default minimumHealthyPercent value for a service using the\n\t\t\t\tDAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the\n\t\t\tAPIs and 50% for the Amazon Web Services Management Console.

\n

The minimum number of healthy tasks during a deployment is the\n\t\t\t\tdesiredCount multiplied by the minimumHealthyPercent/100,\n\t\t\trounded up to the nearest integer value.

\n

If a service is using either the blue/green (CODE_DEPLOY) or\n\t\t\t\tEXTERNAL deployment types and is running tasks that use the\n\t\t\tEC2 launch type, the minimum healthy\n\t\t\t\tpercent value is set to the default value. The minimum healthy percent value is used to define the lower\n\t\t\tlimit on the number of the tasks in the service that remain in the RUNNING\n\t\t\tstate while the container instances are in the DRAINING state.

\n \n

You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or\n\t\t\tEXTERNAL deployment types and has tasks that use the EC2 launch type.

\n
\n

If a service\n\t\t\tis using either the blue/green (CODE_DEPLOY) or EXTERNAL\n\t\t\tdeployment types and is running tasks that use the Fargate launch type,\n\t\t\tthe minimum healthy percent value is not used, although it is returned when describing\n\t\t\tyour service.

" } }, "alarms": { @@ -5591,7 +5591,7 @@ "driver": { "target": "com.amazonaws.ecs#String", "traits": { - "smithy.api#documentation": "

The Docker volume driver to use. The driver value must match the driver name provided\n\t\t\tby Docker because it is used for task placement. If the driver was installed using the\n\t\t\tDocker plugin CLI, use docker plugin ls to retrieve the driver name from\n\t\t\tyour container instance. If the driver was installed using another method, use Docker\n\t\t\tplugin discovery to retrieve the driver name. This parameter maps to Driver in the docker conainer create command and the\n\t\t\t\txxdriver option to docker\n\t\t\t\tvolume create.

" + "smithy.api#documentation": "

The Docker volume driver to use. The driver value must match the driver name provided\n\t\t\tby Docker because it is used for task placement. If the driver was installed using the\n\t\t\tDocker plugin CLI, use docker plugin ls to retrieve the driver name from\n\t\t\tyour container instance. If the driver was installed using another method, use Docker\n\t\t\tplugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the\n\t\t\t\txxdriver option to docker\n\t\t\t\tvolume create.

" } }, "driverOpts": { @@ -5603,7 +5603,7 @@ "labels": { "target": "com.amazonaws.ecs#StringMap", "traits": { - "smithy.api#documentation": "

Custom metadata to add to your Docker volume. This parameter maps to\n\t\t\t\tLabels in the docker conainer create command and the xxlabel option to docker\n\t\t\t\tvolume create.

" + "smithy.api#documentation": "

Custom metadata to add to your Docker volume. This parameter maps to\n\t\t\t\tLabels in the docker container create command and the xxlabel option to docker\n\t\t\t\tvolume create.

" } } }, @@ -6284,7 +6284,7 @@ "command": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

A string array representing the command that the container runs to determine if it is\n\t\t\thealthy. The string array must start with CMD to run the command arguments\n\t\t\tdirectly, or CMD-SHELL to run the command with the container's default\n\t\t\tshell.

\n

When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list\n\t\t\tof commands in double quotes and brackets.

\n

\n [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]\n

\n

You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

\n

\n CMD-SHELL, curl -f http://localhost/ || exit 1\n

\n

An exit code of 0 indicates success, and non-zero exit code indicates failure. For\n\t\t\tmore information, see HealthCheck in tthe docker conainer create command

", + "smithy.api#documentation": "

A string array representing the command that the container runs to determine if it is\n\t\t\thealthy. The string array must start with CMD to run the command arguments\n\t\t\tdirectly, or CMD-SHELL to run the command with the container's default\n\t\t\tshell.

\n

When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list\n\t\t\tof commands in double quotes and brackets.

\n

\n [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]\n

\n

You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

\n

\n CMD-SHELL, curl -f http://localhost/ || exit 1\n

\n

An exit code of 0 indicates success, and non-zero exit code indicates failure. For\n\t\t\tmore information, see HealthCheck in the docker container create command

", "smithy.api#required": {} } }, @@ -6573,13 +6573,13 @@ "add": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the docker conainer create command and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n \n

Tasks launched on Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n
\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" + "smithy.api#documentation": "

The Linux capabilities for the container that have been added to the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapAdd in the docker container create command and the\n\t\t\t\t--cap-add option to docker\n\t\t\t\trun.

\n \n

Tasks launched on Fargate only support adding the SYS_PTRACE kernel\n\t\t\t\tcapability.

\n
\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" } }, "drop": { "target": "com.amazonaws.ecs#StringList", "traits": { - "smithy.api#documentation": "

The Linux capabilities for the container that have been removed from the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapDrop in the docker conainer create command and the\n\t\t\t\t--cap-drop option to docker\n\t\t\t\trun.

\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" + "smithy.api#documentation": "

The Linux capabilities for the container that have been removed from the default\n\t\t\tconfiguration provided by Docker. This parameter maps to CapDrop in the docker container create command and the\n\t\t\t\t--cap-drop option to docker\n\t\t\t\trun.

\n

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" |\n\t\t\t\t\"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" |\n\t\t\t\t\"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" |\n\t\t\t\t\"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\"\n\t\t\t\t| \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" |\n\t\t\t\t\"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" |\n\t\t\t\t\"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" |\n\t\t\t\"WAKE_ALARM\"\n

" } } }, @@ -6657,7 +6657,7 @@ "devices": { "target": "com.amazonaws.ecs#DevicesList", "traits": { - "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to\n\t\t\tDevices in tthe docker conainer create command and the --device option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the\n\t\t\t\t\tdevices parameter isn't supported.

\n
" + "smithy.api#documentation": "

Any host devices to expose to the container. This parameter maps to\n\t\t\tDevices in the docker container create command and the --device option to docker run.

\n \n

If you're using tasks that use the Fargate launch type, the\n\t\t\t\t\tdevices parameter isn't supported.

\n
" } }, "initProcessEnabled": { @@ -7820,7 +7820,7 @@ } }, "traits": { - "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the docker conainer create command and the\n\t\t\t\t--log-driver option to docker\n\t\t\t\t\trun.

\n

By default, containers use the same logging driver that the Docker daemon uses.\n\t\t\tHowever, the container might use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition.

\n

Understand the following when specifying a log configuration for your\n\t\t\tcontainers.

\n " + "smithy.api#documentation": "

The log configuration for the container. This parameter maps to LogConfig\n\t\t\tin the docker container create command and the\n\t\t\t\t--log-driver option to docker\n\t\t\t\t\trun.

\n

By default, containers use the same logging driver that the Docker daemon uses.\n\t\t\tHowever, the container might use a different logging driver than the Docker daemon by\n\t\t\tspecifying a log driver configuration in the container definition.

\n

Understand the following when specifying a log configuration for your\n\t\t\tcontainers.

\n " } }, "com.amazonaws.ecs#LogConfigurationOptionsMap": { @@ -8591,7 +8591,7 @@ } }, "traits": { - "smithy.api#documentation": "

Port mappings allow containers to access ports on the host container instance to send\n\t\t\tor receive traffic. Port mappings are specified as part of the container\n\t\t\tdefinition.

\n

If you use containers in a task with the awsvpc or host\n\t\t\tnetwork mode, specify the exposed ports using containerPort. The\n\t\t\t\thostPort can be left blank or it must be the same value as the\n\t\t\t\tcontainerPort.

\n

Most fields of this parameter (containerPort, hostPort,\n\t\t\tprotocol) maps to PortBindings in the docker conainer create command and the\n\t\t\t\t--publish option to docker\n\t\t\t\t\trun. If the network mode of a task definition is set to\n\t\t\t\thost, host ports must either be undefined or match the container port\n\t\t\tin the port mapping.

\n \n

You can't expose the same container port for multiple protocols. If you attempt\n\t\t\t\tthis, an error is returned.

\n
\n

After a task reaches the RUNNING status, manual and automatic host and\n\t\t\tcontainer port assignments are visible in the networkBindings section of\n\t\t\tDescribeTasks API responses.

" + "smithy.api#documentation": "

Port mappings allow containers to access ports on the host container instance to send\n\t\t\tor receive traffic. Port mappings are specified as part of the container\n\t\t\tdefinition.

\n

If you use containers in a task with the awsvpc or host\n\t\t\tnetwork mode, specify the exposed ports using containerPort. The\n\t\t\t\thostPort can be left blank or it must be the same value as the\n\t\t\t\tcontainerPort.

\n

Most fields of this parameter (containerPort, hostPort,\n\t\t\tprotocol) maps to PortBindings in the docker container create command and the\n\t\t\t\t--publish option to docker\n\t\t\t\t\trun. If the network mode of a task definition is set to\n\t\t\t\thost, host ports must either be undefined or match the container port\n\t\t\tin the port mapping.

\n \n

You can't expose the same container port for multiple protocols. If you attempt\n\t\t\t\tthis, an error is returned.

\n
\n

After a task reaches the RUNNING status, manual and automatic host and\n\t\t\tcontainer port assignments are visible in the networkBindings section of\n\t\t\tDescribeTasks API responses.

" } }, "com.amazonaws.ecs#PortMappingList": { @@ -8847,7 +8847,7 @@ "name": { "target": "com.amazonaws.ecs#SettingName", "traits": { - "smithy.api#documentation": "

The Amazon ECS account setting name to modify.

\n

The following are the valid values for the account setting name.

\n ", + "smithy.api#documentation": "

The Amazon ECS account setting name to modify.

\n

The following are the valid values for the account setting name.

\n ", "smithy.api#required": {} } }, @@ -11115,7 +11115,7 @@ } }, "traits": { - "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\tSysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure\n\t\t\t\tnet.ipv4.tcp_keepalive_time setting to maintain longer lived\n\t\t\tconnections.

\n

We don't recommend that you specify network-related systemControls\n\t\t\tparameters for multiple containers in a single task that also uses either the\n\t\t\t\tawsvpc or host network mode. Doing this has the following\n\t\t\tdisadvantages:

\n \n

If you're setting an IPC resource namespace to use for the containers in the task, the\n\t\t\tfollowing conditions apply to your system controls. For more information, see IPC mode.

\n \n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" + "smithy.api#documentation": "

A list of namespaced kernel parameters to set in the container. This parameter maps to\n\t\t\tSysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure\n\t\t\t\tnet.ipv4.tcp_keepalive_time setting to maintain longer lived\n\t\t\tconnections.

\n

We don't recommend that you specify network-related systemControls\n\t\t\tparameters for multiple containers in a single task that also uses either the\n\t\t\t\tawsvpc or host network mode. Doing this has the following\n\t\t\tdisadvantages:

\n \n

If you're setting an IPC resource namespace to use for the containers in the task, the\n\t\t\tfollowing conditions apply to your system controls. For more information, see IPC mode.

\n \n \n

This parameter is not supported for Windows containers.

\n
\n \n

This parameter is only supported for tasks that are hosted on\n Fargate if the tasks are using platform version 1.4.0 or later\n (Linux). This isn't supported for Windows containers on\n Fargate.

\n
" } }, "com.amazonaws.ecs#SystemControls": { @@ -11602,7 +11602,7 @@ "compatibilities": { "target": "com.amazonaws.ecs#CompatibilityList", "traits": { - "smithy.api#documentation": "

The task launch types the task definition validated against during task definition\n\t\t\tregistration. For more information, see Amazon ECS launch types\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

Amazon ECS validates the task definition parameters with those supported by the launch type. For\n\t\t\tmore information, see Amazon ECS launch types\n\t\t\tin the Amazon Elastic Container Service Developer Guide.

" } }, "runtimePlatform": { @@ -12351,7 +12351,7 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The soft limit for the ulimit type.

", + "smithy.api#documentation": "

The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

", "smithy.api#required": {} } }, @@ -12359,7 +12359,7 @@ "target": "com.amazonaws.ecs#Integer", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

The hard limit for the ulimit type.

", + "smithy.api#documentation": "

The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

", "smithy.api#required": {} } } diff --git a/aws-models/lambda.json b/aws-models/lambda.json index 3a15790aadae..f015d5479891 100644 --- a/aws-models/lambda.json +++ b/aws-models/lambda.json @@ -84,6 +84,9 @@ { "target": "com.amazonaws.lambda#DeleteProvisionedConcurrencyConfig" }, + { + "target": "com.amazonaws.lambda#DeleteResourcePolicy" + }, { "target": "com.amazonaws.lambda#GetAccountSettings" }, @@ -132,6 +135,12 @@ { "target": "com.amazonaws.lambda#GetProvisionedConcurrencyConfig" }, + { + "target": "com.amazonaws.lambda#GetPublicAccessBlockConfig" + }, + { + "target": "com.amazonaws.lambda#GetResourcePolicy" + }, { "target": "com.amazonaws.lambda#GetRuntimeManagementConfig" }, @@ -201,6 +210,12 @@ { "target": "com.amazonaws.lambda#PutProvisionedConcurrencyConfig" }, + { + "target": "com.amazonaws.lambda#PutPublicAccessBlockConfig" + }, + { + "target": "com.amazonaws.lambda#PutResourcePolicy" + }, { "target": "com.amazonaws.lambda#PutRuntimeManagementConfig" }, @@ -3576,6 +3591,66 @@ "smithy.api#input": {} } }, + "com.amazonaws.lambda#DeleteResourcePolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.lambda#DeleteResourcePolicyRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.amazonaws.lambda#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.lambda#PreconditionFailedException" + }, + { + "target": "com.amazonaws.lambda#ResourceConflictException" + }, + { + "target": "com.amazonaws.lambda#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lambda#ServiceException" + }, + { + "target": "com.amazonaws.lambda#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes a resource-based policy from a function.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/2024-09-16/resource-policy/{ResourceArn}", + "code": 204 + } + } + }, + "com.amazonaws.lambda#DeleteResourcePolicyRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.lambda#PolicyResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, \n but the value you specify must be a complete ARN and wildcard characters are not accepted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "RevisionId": { + "target": "com.amazonaws.lambda#RevisionId", + "traits": { + "smithy.api#documentation": "

Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached \n to your function, use the GetResourcePolicy action.

", + "smithy.api#httpQuery": "RevisionId" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, "com.amazonaws.lambda#Description": { "type": "string", "traits": { @@ -6100,6 +6175,134 @@ "smithy.api#output": {} } }, + "com.amazonaws.lambda#GetPublicAccessBlockConfig": { + "type": "operation", + "input": { + "target": "com.amazonaws.lambda#GetPublicAccessBlockConfigRequest" + }, + "output": { + "target": "com.amazonaws.lambda#GetPublicAccessBlockConfigResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lambda#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.lambda#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lambda#ServiceException" + }, + { + "target": "com.amazonaws.lambda#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieve the public-access settings for a function.

", + "smithy.api#http": { + "method": "GET", + "uri": "/2024-09-16/public-access-block/{ResourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.lambda#GetPublicAccessBlockConfigRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.lambda#PublicAccessBlockResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lambda#GetPublicAccessBlockConfigResponse": { + "type": "structure", + "members": { + "PublicAccessBlockConfig": { + "target": "com.amazonaws.lambda#PublicAccessBlockConfig", + "traits": { + "smithy.api#documentation": "

The public-access settings configured for the function you specified

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.lambda#GetResourcePolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.lambda#GetResourcePolicyRequest" + }, + "output": { + "target": "com.amazonaws.lambda#GetResourcePolicyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lambda#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.lambda#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lambda#ServiceException" + }, + { + "target": "com.amazonaws.lambda#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves the resource-based policy attached to a function.

", + "smithy.api#http": { + "method": "GET", + "uri": "/2024-09-16/resource-policy/{ResourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.lambda#GetResourcePolicyRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.lambda#PolicyResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, \n but the value you specify must be a complete ARN and wildcard characters are not accepted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lambda#GetResourcePolicyResponse": { + "type": "structure", + "members": { + "Policy": { + "target": "com.amazonaws.lambda#ResourcePolicy", + "traits": { + "smithy.api#documentation": "

The resource-based policy attached to the function you specified.

" + } + }, + "RevisionId": { + "target": "com.amazonaws.lambda#RevisionId", + "traits": { + "smithy.api#documentation": "

The revision ID of the policy.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lambda#GetRuntimeManagementConfig": { "type": "operation", "input": { @@ -8886,6 +9089,16 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.lambda#PolicyResourceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_])+)?$" + } + }, "com.amazonaws.lambda#PositiveInteger": { "type": "integer", "traits": { @@ -9027,6 +9240,55 @@ } } }, + "com.amazonaws.lambda#PublicAccessBlockConfig": { + "type": "structure", + "members": { + "BlockPublicPolicy": { + "target": "com.amazonaws.lambda#NullableBoolean", + "traits": { + "smithy.api#documentation": "

To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to false.

" + } + }, + "RestrictPublicResource": { + "target": "com.amazonaws.lambda#NullableBoolean", + "traits": { + "smithy.api#documentation": "

To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To \n allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that defines the public-access settings for a function.

" + } + }, + "com.amazonaws.lambda#PublicAccessBlockResourceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 170 + }, + "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+$" + } + }, + "com.amazonaws.lambda#PublicPolicyException": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.lambda#String", + "traits": { + "smithy.api#documentation": "

The exception type.

" + } + }, + "Message": { + "target": "com.amazonaws.lambda#String" + } + }, + "traits": { + "smithy.api#documentation": "

Lambda prevented your policy from being created because it would grant public access to your function. If you intended to \n create a public policy, use the PutPublicAccessBlockConfig API action to configure your function's public-access settings \n to allow public policies.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.lambda#PublishLayerVersion": { "type": "operation", "input": { @@ -9639,6 +9901,169 @@ "smithy.api#output": {} } }, + "com.amazonaws.lambda#PutPublicAccessBlockConfig": { + "type": "operation", + "input": { + "target": "com.amazonaws.lambda#PutPublicAccessBlockConfigRequest" + }, + "output": { + "target": "com.amazonaws.lambda#PutPublicAccessBlockConfigResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lambda#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.lambda#ResourceConflictException" + }, + { + "target": "com.amazonaws.lambda#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lambda#ServiceException" + }, + { + "target": "com.amazonaws.lambda#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#documentation": "

Configure your function's public-access settings.

\n

To control public access to a Lambda function, you can choose whether to allow the creation of \n resource-based policies that \n allow public access to that function. You can also block public access to a function, even if it has an existing resource-based \n policy that allows it.

", + "smithy.api#http": { + "method": "PUT", + "uri": "/2024-09-16/public-access-block/{ResourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.lambda#PutPublicAccessBlockConfigRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.lambda#PublicAccessBlockResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings \n are applied at the function level, so you can't apply different settings to function versions or aliases.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "PublicAccessBlockConfig": { + "target": "com.amazonaws.lambda#PublicAccessBlockConfig", + "traits": { + "smithy.api#documentation": "

An object defining the public-access settings you want to apply.

\n

To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to false.

\n

To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To \n allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

\n

The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lambda#PutPublicAccessBlockConfigResponse": { + "type": "structure", + "members": { + "PublicAccessBlockConfig": { + "target": "com.amazonaws.lambda#PublicAccessBlockConfig", + "traits": { + "smithy.api#documentation": "

The public-access settings Lambda applied to your function.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.lambda#PutResourcePolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.lambda#PutResourcePolicyRequest" + }, + "output": { + "target": "com.amazonaws.lambda#PutResourcePolicyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lambda#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.lambda#PolicyLengthExceededException" + }, + { + "target": "com.amazonaws.lambda#PreconditionFailedException" + }, + { + "target": "com.amazonaws.lambda#PublicPolicyException" + }, + { + "target": "com.amazonaws.lambda#ResourceConflictException" + }, + { + "target": "com.amazonaws.lambda#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lambda#ServiceException" + }, + { + "target": "com.amazonaws.lambda#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#documentation": "

Adds a resource-based policy \n to a function. You can use resource-based policies to grant access to other \n Amazon Web Services accounts, \n organizations, or \n services. Resource-based policies \n apply to a single function, version, or alias.

\n \n

Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if \n you've previously added resource-based permissions to a function using the AddPermission action, those \n permissions will be overwritten by your new policy.

\n
", + "smithy.api#http": { + "method": "PUT", + "uri": "/2024-09-16/resource-policy/{ResourceArn}", + "code": 200 + } + } + }, + "com.amazonaws.lambda#PutResourcePolicyRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.lambda#PolicyResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, \n but the value you specify must be a complete ARN and wildcard characters are not accepted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Policy": { + "target": "com.amazonaws.lambda#ResourcePolicy", + "traits": { + "smithy.api#documentation": "

The JSON resource-based policy you want to add to your function.

\n

To learn more about creating resource-based policies for controlling access to \n Lambda, see Working with resource-based IAM policies in Lambda in the \n Lambda Developer Guide.

", + "smithy.api#required": {} + } + }, + "RevisionId": { + "target": "com.amazonaws.lambda#RevisionId", + "traits": { + "smithy.api#documentation": "

Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached \n to your function, use the GetResourcePolicy action.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.lambda#PutResourcePolicyResponse": { + "type": "structure", + "members": { + "Policy": { + "target": "com.amazonaws.lambda#ResourcePolicy", + "traits": { + "smithy.api#documentation": "

The policy Lambda added to your function.

" + } + }, + "RevisionId": { + "target": "com.amazonaws.lambda#RevisionId", + "traits": { + "smithy.api#documentation": "

The revision ID of the policy Lambda added to your function.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.lambda#PutRuntimeManagementConfig": { "type": "operation", "input": { @@ -10060,6 +10485,16 @@ "smithy.api#httpError": 502 } }, + "com.amazonaws.lambda#ResourcePolicy": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20480 + }, + "smithy.api#pattern": "^[\\s\\S]+$" + } + }, "com.amazonaws.lambda#ResponseStreamingInvocationType": { "type": "enum", "members": { @@ -10077,6 +10512,16 @@ } } }, + "com.amazonaws.lambda#RevisionId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + }, + "smithy.api#pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + } + }, "com.amazonaws.lambda#RoleArn": { "type": "string", "traits": { diff --git a/aws-models/rds.json b/aws-models/rds.json index c16e013e67b2..347818e57919 100644 --- a/aws-models/rds.json +++ b/aws-models/rds.json @@ -5023,7 +5023,7 @@ "LicenseModel": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "

The license model information for this DB instance.

\n \n

License models for RDS for Db2 require additional configuration. The Bring Your\n Own License (BYOL) model requires a custom parameter group. The Db2 license through\n Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more\n information, see RDS for Db2 licensing\n options in the Amazon RDS User Guide.

\n

The default for RDS for Db2 is bring-your-own-license.

\n
\n

This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

\n

Valid Values:

\n " + "smithy.api#documentation": "

The license model information for this DB instance.

\n \n

License models for RDS for Db2 require additional configuration. The Bring Your\n Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through\n Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more\n information, see Amazon RDS for Db2 licensing\n options in the Amazon RDS User Guide.

\n

The default for RDS for Db2 is bring-your-own-license.

\n
\n

This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

\n

Valid Values:

\n " } }, "Iops": { @@ -27901,7 +27901,7 @@ "LicenseModel": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "

License model information for the restored DB instance.

\n \n

License models for RDS for Db2 require additional configuration. The Bring Your\n Own License (BYOL) model requires a custom parameter group. The Db2 license through\n Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more\n information, see RDS for Db2 licensing\n options in the Amazon RDS User Guide.

\n
\n

This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

\n

Valid Values:

\n \n

Default: Same as the source.

" + "smithy.api#documentation": "

License model information for the restored DB instance.

\n \n

License models for RDS for Db2 require additional configuration. The Bring Your\n Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through\n Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more\n information, see Amazon RDS for Db2 licensing\n options in the Amazon RDS User Guide.

\n
\n

This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

\n

Valid Values:

\n \n

Default: Same as the source.

" } }, "DBName": { @@ -28773,7 +28773,7 @@ "LicenseModel": { "target": "com.amazonaws.rds#String", "traits": { - "smithy.api#documentation": "

The license model information for the restored DB instance.

\n \n

License models for RDS for Db2 require additional configuration. The Bring Your\n Own License (BYOL) model requires a custom parameter group. The Db2 license through\n Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more\n information, see RDS for Db2 licensing\n options in the Amazon RDS User Guide.

\n
\n

This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

\n

Valid Values:

\n \n

Default: Same as the source.

" + "smithy.api#documentation": "

The license model information for the restored DB instance.

\n \n

License models for RDS for Db2 require additional configuration. The Bring Your\n Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through\n Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more\n information, see Amazon RDS for Db2 licensing\n options in the Amazon RDS User Guide.

\n
\n

This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

\n

Valid Values:

\n \n

Default: Same as the source.

" } }, "DBName": { diff --git a/aws-models/ssm.json b/aws-models/ssm.json index 892e047223ae..1e1a78ef1eec 100644 --- a/aws-models/ssm.json +++ b/aws-models/ssm.json @@ -3193,7 +3193,7 @@ "Values": { "target": "com.amazonaws.ssm#AttachmentsSourceValues", "traits": { - "smithy.api#documentation": "

The value of a key-value pair that identifies the location of an attachment to a document.\n The format for Value depends on the type of key you\n specify.

\n " + "smithy.api#documentation": "

The value of a key-value pair that identifies the location of an attachment to a document.\n The format for Value depends on the type of key you\n specify.

\n " } }, "Name": { @@ -3501,6 +3501,12 @@ "smithy.api#documentation": "

The CloudWatch alarm that was invoked by the automation.

" } }, + "TargetLocationsURL": { + "target": "com.amazonaws.ssm#TargetLocationsURL", + "traits": { + "smithy.api#documentation": "

A publicly accessible URL for a file that contains the TargetLocations body.\n Currently, only files in presigned Amazon S3 buckets are supported

" + } + }, "AutomationSubtype": { "target": "com.amazonaws.ssm#AutomationSubtype", "traits": { @@ -3837,7 +3843,7 @@ "AutomationType": { "target": "com.amazonaws.ssm#AutomationType", "traits": { - "smithy.api#documentation": "

Use this filter with DescribeAutomationExecutions. Specify either Local or\n CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and\n Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

Use this filter with DescribeAutomationExecutions. Specify either Local or\n CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and\n Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the\n Amazon Web Services Systems Manager User Guide.

" } }, "AlarmConfiguration": { @@ -3852,6 +3858,12 @@ "smithy.api#documentation": "

The CloudWatch alarm that was invoked by the automation.

" } }, + "TargetLocationsURL": { + "target": "com.amazonaws.ssm#TargetLocationsURL", + "traits": { + "smithy.api#documentation": "

A publicly accessible URL for a file that contains the TargetLocations body.\n Currently, only files in presigned Amazon S3 buckets are supported

" + } + }, "AutomationSubtype": { "target": "com.amazonaws.ssm#AutomationSubtype", "traits": { @@ -4179,7 +4191,7 @@ "ApprovedPatches": { "target": "com.amazonaws.ssm#PatchIdList", "traits": { - "smithy.api#documentation": "

A list of explicitly approved patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see About\n package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A list of explicitly approved patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see Package\n name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" } }, "ApprovedPatchesComplianceLevel": { @@ -4191,7 +4203,7 @@ "RejectedPatches": { "target": "com.amazonaws.ssm#PatchIdList", "traits": { - "smithy.api#documentation": "

A list of explicitly rejected patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see About\n package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A list of explicitly rejected patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see Package\n name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" } }, "RejectedPatchesAction": { @@ -4635,7 +4647,7 @@ "value": { "target": "com.amazonaws.ssm#CommandFilterValue", "traits": { - "smithy.api#documentation": "

The filter value. Valid values for each filter key are as follows:

\n ", + "smithy.api#documentation": "

The filter value. Valid values for each filter key are as follows:

\n ", "smithy.api#required": {} } } @@ -4954,13 +4966,13 @@ "OutputS3BucketName": { "target": "com.amazonaws.ssm#S3BucketName", "traits": { - "smithy.api#documentation": "

The S3 bucket where the responses to the command executions should be stored. This was\n requested when issuing the command. For example, in the following response:

\n

\n doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript\n

\n

\n doc-example-bucket is the name of the S3 bucket;

\n

\n ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

\n

\n i-02573cafcfEXAMPLE is the managed node ID;

\n

\n awsrunShellScript is the name of the plugin.

" + "smithy.api#documentation": "

The S3 bucket where the responses to the command executions should be stored. This was\n requested when issuing the command. For example, in the following response:

\n

\n amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript\n

\n

\n amzn-s3-demo-bucket is the name of the S3 bucket;

\n

\n my-prefix is the name of the S3 prefix;

\n

\n i-02573cafcfEXAMPLE is the managed node ID;

\n

\n awsrunShellScript is the name of the plugin.

" } }, "OutputS3KeyPrefix": { "target": "com.amazonaws.ssm#S3KeyPrefix", "traits": { - "smithy.api#documentation": "

The S3 directory path inside the bucket where the responses to the command executions should\n be stored. This was requested when issuing the command. For example, in the following\n response:

\n

\n doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript\n

\n

\n doc-example-bucket is the name of the S3 bucket;

\n

\n ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

\n

\n i-02573cafcfEXAMPLE is the managed node ID;

\n

\n awsrunShellScript is the name of the plugin.

" + "smithy.api#documentation": "

The S3 directory path inside the bucket where the responses to the command executions should\n be stored. This was requested when issuing the command. For example, in the following\n response:

\n

\n amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript\n

\n

\n amzn-s3-demo-bucket is the name of the S3 bucket;

\n

\n my-prefix is the name of the S3 prefix;

\n

\n i-02573cafcfEXAMPLE is the managed node ID;

\n

\n awsrunShellScript is the name of the plugin.

" } } }, @@ -5641,7 +5653,7 @@ } ], "traits": { - "smithy.api#documentation": "

Generates an activation code and activation ID you can use to register your on-premises\n servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with\n Systems Manager makes it possible to manage them using Systems Manager capabilities. You use the activation code and\n ID when installing SSM Agent on machines in your hybrid environment. For more information about\n requirements for managing on-premises machines using Systems Manager, see Setting up\n Amazon Web Services Systems Manager for hybrid and multicloud environments in the\n Amazon Web Services Systems Manager User Guide.

\n \n

Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are\n configured for Systems Manager are all called managed nodes.

\n
" + "smithy.api#documentation": "

Generates an activation code and activation ID you can use to register your on-premises\n servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with\n Systems Manager makes it possible to manage them using Systems Manager capabilities. You use the activation code and\n ID when installing SSM Agent on machines in your hybrid environment. For more information about\n requirements for managing on-premises machines using Systems Manager, see Using Amazon Web Services Systems Manager in\n hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

\n \n

Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are\n configured for Systems Manager are all called managed nodes.

\n
" } }, "com.amazonaws.ssm#CreateActivationRequest": { @@ -5662,7 +5674,7 @@ "IamRole": { "target": "com.amazonaws.ssm#IamRole", "traits": { - "smithy.api#documentation": "

The name of the Identity and Access Management (IAM) role that you want to assign to\n the managed node. This IAM role must provide AssumeRole permissions for the\n Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an\n IAM service role for a hybrid and multicloud environment in the\n Amazon Web Services Systems Manager User Guide.

\n \n

You can't specify an IAM service-linked role for this parameter. You must\n create a unique role.

\n
", + "smithy.api#documentation": "

The name of the Identity and Access Management (IAM) role that you want to assign to\n the managed node. This IAM role must provide AssumeRole permissions for the\n Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud\n environments in the Amazon Web Services Systems Manager User Guide.

\n \n

You can't specify an IAM service-linked role for this parameter. You must\n create a unique role.

\n
", "smithy.api#required": {} } }, @@ -5675,7 +5687,7 @@ "ExpirationDate": { "target": "com.amazonaws.ssm#ExpirationDate", "traits": { - "smithy.api#documentation": "

The date by which this activation request should expire, in timestamp format, such as\n \"2021-07-07T00:00:00\". You can specify a date up to 30 days in advance. If you don't provide an\n expiration date, the activation code expires in 24 hours.

" + "smithy.api#documentation": "

The date by which this activation request should expire, in timestamp format, such as\n \"2024-07-07T00:00:00\". You can specify a date up to 30 days in advance. If you don't provide an\n expiration date, the activation code expires in 24 hours.

" } }, "Tags": { @@ -6025,7 +6037,7 @@ "Targets": { "target": "com.amazonaws.ssm#Targets", "traits": { - "smithy.api#documentation": "

The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource\n groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all\n managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of\n *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource\n groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all\n managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of\n *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the\n Amazon Web Services Systems Manager User Guide.

" } }, "ScheduleExpression": { @@ -6170,7 +6182,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems Manager performs\n on your managed nodes. For more information about SSM documents, including information about\n supported schemas, features, and syntax, see Amazon Web Services Systems Manager Documents in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems Manager performs\n on your managed nodes. For more information about SSM documents, including information about\n supported schemas, features, and syntax, see Amazon Web Services Systems Manager Documents in the\n Amazon Web Services Systems Manager User Guide.

" } }, "com.amazonaws.ssm#CreateDocumentRequest": { @@ -6662,7 +6674,7 @@ "ApprovedPatches": { "target": "com.amazonaws.ssm#PatchIdList", "traits": { - "smithy.api#documentation": "

A list of explicitly approved patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see About\n package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A list of explicitly approved patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see Package\n name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" } }, "ApprovedPatchesComplianceLevel": { @@ -6681,7 +6693,7 @@ "RejectedPatches": { "target": "com.amazonaws.ssm#PatchIdList", "traits": { - "smithy.api#documentation": "

A list of explicitly rejected patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see About\n package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A list of explicitly rejected patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see Package\n name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" } }, "RejectedPatchesAction": { @@ -6757,7 +6769,7 @@ } ], "traits": { - "smithy.api#documentation": "

A resource data sync helps you view data from multiple sources in a single location.\n Amazon Web Services Systems Manager offers two types of resource data sync: SyncToDestination and\n SyncFromSource.

\n

You can configure Systems Manager Inventory to use the SyncToDestination type to\n synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Configuring resource data\n sync for Inventory in the Amazon Web Services Systems Manager User Guide.

\n

You can configure Systems Manager Explorer to use the SyncFromSource type to synchronize\n operational work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a\n single Amazon S3 bucket. This type can synchronize OpsItems and OpsData from multiple\n Amazon Web Services accounts and Amazon Web Services Regions or EntireOrganization by using Organizations. For more\n information, see Setting up Systems Manager\n Explorer to display data from multiple accounts and Regions in the\n Amazon Web Services Systems Manager User Guide.

\n

A resource data sync is an asynchronous operation that returns immediately. After a\n successful initial sync is completed, the system continuously syncs data. To check the status of\n a sync, use the ListResourceDataSync.

\n \n

By default, data isn't encrypted in Amazon S3. We strongly recommend that you\n enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you\n secure access to the Amazon S3 bucket by creating a restrictive bucket policy.

\n
" + "smithy.api#documentation": "

A resource data sync helps you view data from multiple sources in a single location.\n Amazon Web Services Systems Manager offers two types of resource data sync: SyncToDestination and\n SyncFromSource.

\n

You can configure Systems Manager Inventory to use the SyncToDestination type to\n synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Creatinga a\n resource data sync for Inventory in the Amazon Web Services Systems Manager User Guide.

\n

You can configure Systems Manager Explorer to use the SyncFromSource type to synchronize\n operational work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a\n single Amazon S3 bucket. This type can synchronize OpsItems and OpsData from multiple\n Amazon Web Services accounts and Amazon Web Services Regions or EntireOrganization by using Organizations. For more\n information, see Setting up Systems Manager\n Explorer to display data from multiple accounts and Regions in the\n Amazon Web Services Systems Manager User Guide.

\n

A resource data sync is an asynchronous operation that returns immediately. After a\n successful initial sync is completed, the system continuously syncs data. To check the status of\n a sync, use the ListResourceDataSync.

\n \n

By default, data isn't encrypted in Amazon S3. We strongly recommend that you\n enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you\n secure access to the Amazon S3 bucket by creating a restrictive bucket policy.

\n
" } }, "com.amazonaws.ssm#CreateResourceDataSyncRequest": { @@ -7097,7 +7109,7 @@ "DeletionSummary": { "target": "com.amazonaws.ssm#InventoryDeletionSummary", "traits": { - "smithy.api#documentation": "

A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

" } } }, @@ -9030,7 +9042,7 @@ "Filters": { "target": "com.amazonaws.ssm#PatchOrchestratorFilterList", "traits": { - "smithy.api#documentation": "

Each element in the array is a structure containing a key-value pair.

\n

Supported keys for DescribeInstancePatchesinclude the following:

\n " + "smithy.api#documentation": "

Each element in the array is a structure containing a key-value pair.

\n

Supported keys for DescribeInstancePatchesinclude the following:

\n " } }, "NextToken": { @@ -9448,7 +9460,7 @@ "Filters": { "target": "com.amazonaws.ssm#MaintenanceWindowFilterList", "traits": { - "smithy.api#documentation": "

Each entry in the array is a structure containing:

\n " + "smithy.api#documentation": "

Each entry in the array is a structure containing:

\n " } }, "MaxResults": { @@ -11796,6 +11808,28 @@ "smithy.api#default": 0 } }, + "com.amazonaws.ssm#ExcludeAccount": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 6, + "max": 68 + }, + "smithy.api#pattern": "^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32})|(\\d{12})$" + } + }, + "com.amazonaws.ssm#ExcludeAccounts": { + "type": "list", + "member": { + "target": "com.amazonaws.ssm#ExcludeAccount" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5000 + } + } + }, "com.amazonaws.ssm#ExecutionMode": { "type": "enum", "members": { @@ -13408,7 +13442,7 @@ "ServiceRoleArn": { "target": "com.amazonaws.ssm#ServiceRole", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up maintenance windows in the in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the\n Amazon Web Services Systems Manager User Guide.

" } }, "TaskType": { @@ -13845,7 +13879,7 @@ "Name": { "target": "com.amazonaws.ssm#PSParameterName", "traits": { - "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of the parameter that you want to query. For\n parameters shared with you from another account, you must use the full ARN.

\n

To query by parameter label, use \"Name\": \"name:label\". To query by parameter\n version, use \"Name\": \"name:version\".

\n

For more information about shared parameters, see Working with shared parameters in\n the Amazon Web Services Systems Manager User Guide.

", + "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of the parameter that you want to query. For\n parameters shared with you from another account, you must use the full ARN.

\n

To query by parameter label, use \"Name\": \"name:label\". To query by parameter\n version, use \"Name\": \"name:version\".

\n

For more information about shared parameters, see Working with\n shared parameters in the Amazon Web Services Systems Manager User Guide.

", "smithy.api#required": {} } }, @@ -14815,7 +14849,7 @@ "Name": { "target": "com.amazonaws.ssm#String", "traits": { - "smithy.api#documentation": "

The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is\n activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName\n property using the CreateActivation command. It is applied to the managed node\n by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as\n explained in Install SSM Agent for a\n hybrid and multicloud environment (Linux) and Install SSM Agent for a\n hybrid and multicloud environment (Windows). To retrieve the Name tag of an\n EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

" + "smithy.api#documentation": "

The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is\n activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName\n property using the CreateActivation command. It is applied to the managed node\n by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as\n explained in How to\n install SSM Agent on hybrid Linux nodes and How to\n install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag\n of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see\n DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

" } }, "IPAddress": { @@ -15078,7 +15112,7 @@ "InstallOverrideList": { "target": "com.amazonaws.ssm#InstallOverrideList", "traits": { - "smithy.api#documentation": "

An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of\n patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML\n format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches\n specified by the default patch baseline.

\n

For more information about the InstallOverrideList parameter, see About the\n AWS-RunPatchBaseline SSM document\n in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of\n patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML\n format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches\n specified by the default patch baseline.

\n

For more information about the InstallOverrideList parameter, see SSM Command\n document for patching: AWS-RunPatchBaseline\n in the\n Amazon Web Services Systems Manager User Guide.

" } }, "OwnerInformation": { @@ -16673,7 +16707,7 @@ "DeletionSummary": { "target": "com.amazonaws.ssm#InventoryDeletionSummary", "traits": { - "smithy.api#documentation": "

Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the\n Amazon Web Services Systems Manager User Guide.

" } }, "LastStatusUpdateTime": { @@ -16775,7 +16809,7 @@ "Type": { "target": "com.amazonaws.ssm#InventoryQueryOperatorType", "traits": { - "smithy.api#documentation": "

The type of filter.

\n \n

The Exists filter must be used with aggregators. For more information, see\n Aggregating inventory\n data in the Amazon Web Services Systems Manager User Guide.

\n
" + "smithy.api#documentation": "

The type of filter.

\n \n

The Exists filter must be used with aggregators. For more information, see\n Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

\n
" } } }, @@ -19516,7 +19550,7 @@ "ServiceRoleArn": { "target": "com.amazonaws.ssm#ServiceRole", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up maintenance windows in the in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the\n Amazon Web Services Systems Manager User Guide.

" } }, "TimeoutSeconds": { @@ -19710,7 +19744,7 @@ "ServiceRoleArn": { "target": "com.amazonaws.ssm#ServiceRole", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up maintenance windows in the in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the\n Amazon Web Services Systems Manager User Guide.

" } }, "MaxConcurrency": { @@ -20790,7 +20824,7 @@ "Status": { "target": "com.amazonaws.ssm#OpsItemStatus", "traits": { - "smithy.api#documentation": "

The OpsItem status. Status can be Open, In Progress, or\n Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

" } }, "OpsItemId": { @@ -21922,7 +21956,7 @@ "Status": { "target": "com.amazonaws.ssm#OpsItemStatus", "traits": { - "smithy.api#documentation": "

The OpsItem status. Status can be Open, In Progress, or\n Resolved.

" + "smithy.api#documentation": "

The OpsItem status.

" } }, "OpsItemId": { @@ -23343,7 +23377,7 @@ "State": { "target": "com.amazonaws.ssm#PatchComplianceDataState", "traits": { - "smithy.api#documentation": "

The state of the patch on the managed node, such as INSTALLED or FAILED.

\n

For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

", + "smithy.api#documentation": "

The state of the patch on the managed node, such as INSTALLED or FAILED.

\n

For descriptions of each patch state, see About\n patch compliance in the Amazon Web Services Systems Manager User Guide.

", "smithy.api#required": {} } }, @@ -23997,13 +24031,13 @@ "target": "com.amazonaws.ssm#ApproveAfterDays", "traits": { "smithy.api#default": null, - "smithy.api#documentation": "

The number of days after the release date of each patch matched by the rule that the patch\n is marked as approved in the patch baseline. For example, a value of 7 means that\n patches are approved seven days after they are released.

\n \n

This parameter is marked as not required, but your request must include a value\n for either ApproveAfterDays or ApproveUntilDate.

\n
\n

Not supported for Debian Server or Ubuntu Server.

" + "smithy.api#documentation": "

The number of days after the release date of each patch matched by the rule that the patch\n is marked as approved in the patch baseline. For example, a value of 7 means that\n patches are approved seven days after they are released.

\n

This parameter is marked as Required: No, but your request must include a value\n for either ApproveAfterDays or ApproveUntilDate.

\n

Not supported for Debian Server or Ubuntu Server.

\n \n

Use caution when setting this value for Windows Server patch baselines. Because patch\n updates that are replaced by later updates are removed, setting too broad a value for this\n parameter can result in crucial patches not being installed. For more information, see the\n Windows Server tab in the topic How security\n patches are selected in the Amazon Web Services Systems Manager User Guide.

\n
" } }, "ApproveUntilDate": { "target": "com.amazonaws.ssm#PatchStringDateTime", "traits": { - "smithy.api#documentation": "

The cutoff date for auto approval of released patches. Any patches released on or before\n this date are installed automatically.

\n

Enter dates in the format YYYY-MM-DD. For example,\n 2021-12-31.

\n \n

This parameter is marked as not required, but your request must include a value\n for either ApproveUntilDate or ApproveAfterDays.

\n
\n

Not supported for Debian Server or Ubuntu Server.

" + "smithy.api#documentation": "

The cutoff date for auto approval of released patches. Any patches released on or before\n this date are installed automatically.

\n

Enter dates in the format YYYY-MM-DD. For example,\n 2024-12-31.

\n

This parameter is marked as Required: No, but your request must include a value\n for either ApproveUntilDate or ApproveAfterDays.

\n

Not supported for Debian Server or Ubuntu Server.

\n \n

Use caution when setting this value for Windows Server patch baselines. Because patch\n updates that are replaced by later updates are removed, setting too broad a value for this\n parameter can result in crucial patches not being installed. For more information, see the\n Windows Server tab in the topic How security\n patches are selected in the Amazon Web Services Systems Manager User Guide.

\n
" } }, "EnableNonSecurity": { @@ -25082,7 +25116,7 @@ "ServiceRoleArn": { "target": "com.amazonaws.ssm#ServiceRole", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up maintenance windows in the in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the\n Amazon Web Services Systems Manager User Guide.

" } }, "TaskType": { @@ -27005,7 +27039,7 @@ "value": { "target": "com.amazonaws.ssm#SessionFilterValue", "traits": { - "smithy.api#documentation": "

The filter value. Valid values for each filter key are as follows:

\n ", + "smithy.api#documentation": "

The filter value. Valid values for each filter key are as follows:

\n ", "smithy.api#required": {} } } @@ -27537,7 +27571,7 @@ "Targets": { "target": "com.amazonaws.ssm#Targets", "traits": { - "smithy.api#documentation": "

A key-value mapping to target resources. Required if you specify TargetParameterName.

" + "smithy.api#documentation": "

A key-value mapping to target resources. Required if you specify TargetParameterName.

\n

If both this parameter and the TargetLocation:Targets parameter are supplied,\n TargetLocation:Targets takes precedence.

" } }, "TargetMaps": { @@ -27549,19 +27583,19 @@ "MaxConcurrency": { "target": "com.amazonaws.ssm#MaxConcurrency", "traits": { - "smithy.api#documentation": "

The maximum number of targets allowed to run this task in parallel. You can specify a\n number, such as 10, or a percentage, such as 10%. The default value is 10.

" + "smithy.api#documentation": "

The maximum number of targets allowed to run this task in parallel. You can specify a\n number, such as 10, or a percentage, such as 10%. The default value is 10.

\n

If both this parameter and the TargetLocation:TargetsMaxConcurrency are\n supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

" } }, "MaxErrors": { "target": "com.amazonaws.ssm#MaxErrors", "traits": { - "smithy.api#documentation": "

The number of errors that are allowed before the system stops running the automation on\n additional targets. You can specify either an absolute number of errors, for example 10, or a\n percentage of the target set, for example 10%. If you specify 3, for example, the system stops\n running the automation when the fourth error is received. If you specify 0, then the system stops\n running the automation on additional targets after the first error result is returned. If you run\n an automation on 50 resources and set max-errors to 10%, then the system stops running the\n automation on additional targets when the sixth error is received.

\n

Executions that are already running an automation when max-errors is reached are allowed to\n complete, but some of these executions may fail as well. If you need to ensure that there won't\n be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one\n at a time.

" + "smithy.api#documentation": "

The number of errors that are allowed before the system stops running the automation on\n additional targets. You can specify either an absolute number of errors, for example 10, or a\n percentage of the target set, for example 10%. If you specify 3, for example, the system stops\n running the automation when the fourth error is received. If you specify 0, then the system stops\n running the automation on additional targets after the first error result is returned. If you run\n an automation on 50 resources and set max-errors to 10%, then the system stops running the\n automation on additional targets when the sixth error is received.

\n

Executions that are already running an automation when max-errors is reached are allowed to\n complete, but some of these executions may fail as well. If you need to ensure that there won't\n be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one\n at a time.

\n

If this parameter and the TargetLocation:TargetsMaxErrors parameter are both\n supplied, TargetLocation:TargetsMaxErrors takes precedence.

" } }, "TargetLocations": { "target": "com.amazonaws.ssm#TargetLocations", "traits": { - "smithy.api#documentation": "

A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the\n automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple\n Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the\n automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple\n Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the\n Amazon Web Services Systems Manager User Guide.

" } }, "Tags": { @@ -27575,6 +27609,12 @@ "traits": { "smithy.api#documentation": "

The CloudWatch alarm you want to apply to your automation.

" } + }, + "TargetLocationsURL": { + "target": "com.amazonaws.ssm#TargetLocationsURL", + "traits": { + "smithy.api#documentation": "

Specify a publicly accessible URL for a file that contains the TargetLocations\n body. Currently, only files in presigned Amazon S3 buckets are supported.

" + } } }, "traits": { @@ -28364,6 +28404,37 @@ }, "TargetLocationAlarmConfiguration": { "target": "com.amazonaws.ssm#AlarmConfiguration" + }, + "IncludeChildOrganizationUnits": { + "target": "com.amazonaws.ssm#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

Indicates whether to include child organizational units (OUs) that are children of the\n targeted OUs. The default is false.

" + } + }, + "ExcludeAccounts": { + "target": "com.amazonaws.ssm#ExcludeAccounts", + "traits": { + "smithy.api#documentation": "

Amazon Web Services accounts or organizational units to exclude as expanded targets.

" + } + }, + "Targets": { + "target": "com.amazonaws.ssm#Targets", + "traits": { + "smithy.api#documentation": "

A list of key-value mappings to target resources. If you specify values for this data type,\n you must also specify a value for TargetParameterName.

\n

This Targets parameter takes precedence over the\n StartAutomationExecution:Targets parameter if both are supplied.

" + } + }, + "TargetsMaxConcurrency": { + "target": "com.amazonaws.ssm#MaxConcurrency", + "traits": { + "smithy.api#documentation": "

The maximum number of targets allowed to run this task in parallel. This\n TargetsMaxConcurrency takes precedence over the\n StartAutomationExecution:MaxConcurrency parameter if both are supplied.

" + } + }, + "TargetsMaxErrors": { + "target": "com.amazonaws.ssm#MaxErrors", + "traits": { + "smithy.api#documentation": "

The maximum number of errors that are allowed before the system stops running the automation\n on additional targets. This TargetsMaxErrors parameter takes precedence over the\n StartAutomationExecution:MaxErrors parameter if both are supplied.

" + } } }, "traits": { @@ -28382,6 +28453,12 @@ } } }, + "com.amazonaws.ssm#TargetLocationsURL": { + "type": "string", + "traits": { + "smithy.api#pattern": "^https:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]{1,253}\\.s3(\\.[a-z\\d-]{9,16})?\\.amazonaws\\.com\\/.{1,2000}$" + } + }, "com.amazonaws.ssm#TargetMap": { "type": "map", "key": { @@ -28451,7 +28528,7 @@ "code": "TargetNotConnected", "httpResponseCode": 430 }, - "smithy.api#documentation": "

The specified target managed node for the session isn't fully configured for use with Session Manager.\n For more information, see Getting started with\n Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you\n attempt to start a session on a managed node that is located in a different account or\n Region

", + "smithy.api#documentation": "

The specified target managed node for the session isn't fully configured for use with Session Manager.\n For more information, see Setting up\n Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you\n attempt to start a session on a managed node that is located in a different account or\n Region

", "smithy.api#error": "client" } }, @@ -29686,7 +29763,7 @@ "ServiceRoleArn": { "target": "com.amazonaws.ssm#ServiceRole", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up maintenance windows in the in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the\n Amazon Web Services Systems Manager User Guide.

" } }, "TaskParameters": { @@ -29792,7 +29869,7 @@ "ServiceRoleArn": { "target": "com.amazonaws.ssm#ServiceRole", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up maintenance windows in the in the\n Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM service role for\n Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a\n service role ARN, Systems Manager uses a service-linked role in your account. If no\n appropriate service-linked role for Systems Manager exists in your account, it is created when\n you run RegisterTaskWithMaintenanceWindow.

\n

However, for an improved security posture, we strongly recommend creating a custom\n policy and custom service role for running your maintenance window tasks. The policy\n can be crafted to provide only the permissions needed for your particular\n maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the\n Amazon Web Services Systems Manager User Guide.

" } }, "TaskParameters": { @@ -29894,7 +29971,7 @@ "IamRole": { "target": "com.amazonaws.ssm#IamRole", "traits": { - "smithy.api#documentation": "

The name of the Identity and Access Management (IAM) role that you want to assign to\n the managed node. This IAM role must provide AssumeRole permissions for the\n Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an\n IAM service role for a hybrid and multicloud environment in the\n Amazon Web Services Systems Manager User Guide.

\n \n

You can't specify an IAM service-linked role for this parameter. You must\n create a unique role.

\n
", + "smithy.api#documentation": "

The name of the Identity and Access Management (IAM) role that you want to assign to\n the managed node. This IAM role must provide AssumeRole permissions for the\n Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud\n environments in the Amazon Web Services Systems Manager User Guide.

\n \n

You can't specify an IAM service-linked role for this parameter. You must\n create a unique role.

\n
", "smithy.api#required": {} } } @@ -29987,7 +30064,7 @@ "Status": { "target": "com.amazonaws.ssm#OpsItemStatus", "traits": { - "smithy.api#documentation": "

The OpsItem status. Status can be Open, In Progress, or\n Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

" } }, "OpsItemId": { @@ -30178,7 +30255,7 @@ "ApprovedPatches": { "target": "com.amazonaws.ssm#PatchIdList", "traits": { - "smithy.api#documentation": "

A list of explicitly approved patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see About\n package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A list of explicitly approved patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see Package\n name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" } }, "ApprovedPatchesComplianceLevel": { @@ -30197,7 +30274,7 @@ "RejectedPatches": { "target": "com.amazonaws.ssm#PatchIdList", "traits": { - "smithy.api#documentation": "

A list of explicitly rejected patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see About\n package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" + "smithy.api#documentation": "

A list of explicitly rejected patches for the baseline.

\n

For information about accepted formats for lists of approved patches and rejected patches,\n see Package\n name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

" } }, "RejectedPatchesAction": { diff --git a/sdk/codebuild/src/types/_scope_configuration.rs b/sdk/codebuild/src/types/_scope_configuration.rs index d5ded60f33ae..ff53dcf6aca0 100644 --- a/sdk/codebuild/src/types/_scope_configuration.rs +++ b/sdk/codebuild/src/types/_scope_configuration.rs @@ -4,24 +4,24 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ScopeConfiguration { - ///

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

+ ///

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

pub name: ::std::string::String, - ///

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

+ ///

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

pub domain: ::std::option::Option<::std::string::String>, - ///

The type of scope for a GitHub webhook.

+ ///

The type of scope for a GitHub or GitLab webhook.

pub scope: crate::types::WebhookScopeType, } impl ScopeConfiguration { - ///

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

+ ///

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

pub fn name(&self) -> &str { use std::ops::Deref; self.name.deref() } - ///

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

+ ///

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

pub fn domain(&self) -> ::std::option::Option<&str> { self.domain.as_deref() } - ///

The type of scope for a GitHub webhook.

+ ///

The type of scope for a GitHub or GitLab webhook.

pub fn scope(&self) -> &crate::types::WebhookScopeType { &self.scope } @@ -42,47 +42,47 @@ pub struct ScopeConfigurationBuilder { pub(crate) scope: ::std::option::Option, } impl ScopeConfigurationBuilder { - ///

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

+ ///

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

/// This field is required. pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.name = ::std::option::Option::Some(input.into()); self } - ///

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

+ ///

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.name = input; self } - ///

The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.

+ ///

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

pub fn get_name(&self) -> &::std::option::Option<::std::string::String> { &self.name } - ///

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

+ ///

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.domain = ::std::option::Option::Some(input.into()); self } - ///

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

+ ///

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.domain = input; self } - ///

The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE

+ ///

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> { &self.domain } - ///

The type of scope for a GitHub webhook.

+ ///

The type of scope for a GitHub or GitLab webhook.

/// This field is required. pub fn scope(mut self, input: crate::types::WebhookScopeType) -> Self { self.scope = ::std::option::Option::Some(input); self } - ///

The type of scope for a GitHub webhook.

+ ///

The type of scope for a GitHub or GitLab webhook.

pub fn set_scope(mut self, input: ::std::option::Option) -> Self { self.scope = input; self } - ///

The type of scope for a GitHub webhook.

+ ///

The type of scope for a GitHub or GitLab webhook.

pub fn get_scope(&self) -> &::std::option::Option { &self.scope } diff --git a/sdk/codebuild/src/types/_webhook_scope_type.rs b/sdk/codebuild/src/types/_webhook_scope_type.rs index 3ab84cb9f7d5..985e5d662db0 100644 --- a/sdk/codebuild/src/types/_webhook_scope_type.rs +++ b/sdk/codebuild/src/types/_webhook_scope_type.rs @@ -14,6 +14,7 @@ /// match webhookscopetype { /// WebhookScopeType::GithubGlobal => { /* ... */ }, /// WebhookScopeType::GithubOrganization => { /* ... */ }, +/// WebhookScopeType::GitlabGroup => { /* ... */ }, /// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, /// _ => { /* ... */ }, /// } @@ -45,6 +46,8 @@ pub enum WebhookScopeType { GithubGlobal, #[allow(missing_docs)] // documentation missing in model GithubOrganization, + #[allow(missing_docs)] // documentation missing in model + GitlabGroup, /// `Unknown` contains new variants that have been added since this code was generated. #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), @@ -54,6 +57,7 @@ impl ::std::convert::From<&str> for WebhookScopeType { match s { "GITHUB_GLOBAL" => WebhookScopeType::GithubGlobal, "GITHUB_ORGANIZATION" => WebhookScopeType::GithubOrganization, + "GITLAB_GROUP" => WebhookScopeType::GitlabGroup, other => WebhookScopeType::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), } } @@ -71,12 +75,13 @@ impl WebhookScopeType { match self { WebhookScopeType::GithubGlobal => "GITHUB_GLOBAL", WebhookScopeType::GithubOrganization => "GITHUB_ORGANIZATION", + WebhookScopeType::GitlabGroup => "GITLAB_GROUP", WebhookScopeType::Unknown(value) => value.as_str(), } } /// Returns all the `&str` representations of the enum members. pub const fn values() -> &'static [&'static str] { - &["GITHUB_GLOBAL", "GITHUB_ORGANIZATION"] + &["GITHUB_GLOBAL", "GITHUB_ORGANIZATION", "GITLAB_GROUP"] } } impl ::std::convert::AsRef for WebhookScopeType { @@ -101,6 +106,7 @@ impl ::std::fmt::Display for WebhookScopeType { match self { WebhookScopeType::GithubGlobal => write!(f, "GITHUB_GLOBAL"), WebhookScopeType::GithubOrganization => write!(f, "GITHUB_ORGANIZATION"), + WebhookScopeType::GitlabGroup => write!(f, "GITLAB_GROUP"), WebhookScopeType::Unknown(value) => write!(f, "{}", value), } } diff --git a/sdk/ecr/src/protocol_serde/shape_enhanced_image_scan_finding.rs b/sdk/ecr/src/protocol_serde/shape_enhanced_image_scan_finding.rs index 11e88e0fbb97..877555d35670 100644 --- a/sdk/ecr/src/protocol_serde/shape_enhanced_image_scan_finding.rs +++ b/sdk/ecr/src/protocol_serde/shape_enhanced_image_scan_finding.rs @@ -99,6 +99,20 @@ where ::aws_smithy_types::date_time::Format::EpochSeconds, )?); } + "fixAvailable" => { + builder = builder.set_fix_available( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "exploitAvailable" => { + builder = builder.set_exploit_available( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/ecr/src/protocol_serde/shape_vulnerable_package.rs b/sdk/ecr/src/protocol_serde/shape_vulnerable_package.rs index 4c7ed0edb899..aa4b8e1b5c5c 100644 --- a/sdk/ecr/src/protocol_serde/shape_vulnerable_package.rs +++ b/sdk/ecr/src/protocol_serde/shape_vulnerable_package.rs @@ -70,6 +70,13 @@ where .transpose()?, ); } + "fixedInVersion" => { + builder = builder.set_fixed_in_version( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/ecr/src/types/_encryption_configuration.rs b/sdk/ecr/src/types/_encryption_configuration.rs index 897965cacef0..2d3a1416aea7 100644 --- a/sdk/ecr/src/types/_encryption_configuration.rs +++ b/sdk/ecr/src/types/_encryption_configuration.rs @@ -8,8 +8,9 @@ pub struct EncryptionConfiguration { ///

The encryption type to use.

///

If you use the KMS encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.

- ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

- ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the Amazon Simple Storage Service Console Developer Guide.

+ ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

+ ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm.

+ ///

For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide.

pub encryption_type: crate::types::EncryptionType, ///

If you use the KMS encryption type, specify the KMS key to use for encryption. The alias, key ID, or full ARN of the KMS key can be specified. The key must exist in the same Region as the repository. If no key is specified, the default Amazon Web Services managed KMS key for Amazon ECR will be used.

pub kms_key: ::std::option::Option<::std::string::String>, @@ -17,8 +18,9 @@ pub struct EncryptionConfiguration { impl EncryptionConfiguration { ///

The encryption type to use.

///

If you use the KMS encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.

- ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

- ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the Amazon Simple Storage Service Console Developer Guide.

+ ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

+ ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm.

+ ///

For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide.

pub fn encryption_type(&self) -> &crate::types::EncryptionType { &self.encryption_type } @@ -44,8 +46,9 @@ pub struct EncryptionConfigurationBuilder { impl EncryptionConfigurationBuilder { ///

The encryption type to use.

///

If you use the KMS encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.

- ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

- ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the Amazon Simple Storage Service Console Developer Guide.

+ ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

+ ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm.

+ ///

For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide.

/// This field is required. pub fn encryption_type(mut self, input: crate::types::EncryptionType) -> Self { self.encryption_type = ::std::option::Option::Some(input); @@ -53,16 +56,18 @@ impl EncryptionConfigurationBuilder { } ///

The encryption type to use.

///

If you use the KMS encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.

- ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

- ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the Amazon Simple Storage Service Console Developer Guide.

+ ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

+ ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm.

+ ///

For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide.

pub fn set_encryption_type(mut self, input: ::std::option::Option) -> Self { self.encryption_type = input; self } ///

The encryption type to use.

///

If you use the KMS encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.

- ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

- ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the Amazon Simple Storage Service Console Developer Guide.

+ ///

If you use the KMS_DSSE encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the KMS encryption type, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.

+ ///

If you use the AES256 encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm.

+ ///

For more information, see Amazon ECR encryption at rest in the Amazon Elastic Container Registry User Guide.

pub fn get_encryption_type(&self) -> &::std::option::Option { &self.encryption_type } diff --git a/sdk/ecr/src/types/_enhanced_image_scan_finding.rs b/sdk/ecr/src/types/_enhanced_image_scan_finding.rs index f98249bd9a7e..4f93a4d42984 100644 --- a/sdk/ecr/src/types/_enhanced_image_scan_finding.rs +++ b/sdk/ecr/src/types/_enhanced_image_scan_finding.rs @@ -34,6 +34,10 @@ pub struct EnhancedImageScanFinding { pub r#type: ::std::option::Option<::std::string::String>, ///

The date and time the finding was last updated at.

pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>, + ///

Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

+ pub fix_available: ::std::option::Option<::std::string::String>, + ///

If a finding discovered in your environment has an exploit available.

+ pub exploit_available: ::std::option::Option<::std::string::String>, } impl EnhancedImageScanFinding { ///

The Amazon Web Services account ID associated with the image.

@@ -98,6 +102,14 @@ impl EnhancedImageScanFinding { pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> { self.updated_at.as_ref() } + ///

Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

+ pub fn fix_available(&self) -> ::std::option::Option<&str> { + self.fix_available.as_deref() + } + ///

If a finding discovered in your environment has an exploit available.

+ pub fn exploit_available(&self) -> ::std::option::Option<&str> { + self.exploit_available.as_deref() + } } impl EnhancedImageScanFinding { /// Creates a new builder-style object to manufacture [`EnhancedImageScanFinding`](crate::types::EnhancedImageScanFinding). @@ -125,6 +137,8 @@ pub struct EnhancedImageScanFindingBuilder { pub(crate) title: ::std::option::Option<::std::string::String>, pub(crate) r#type: ::std::option::Option<::std::string::String>, pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>, + pub(crate) fix_available: ::std::option::Option<::std::string::String>, + pub(crate) exploit_available: ::std::option::Option<::std::string::String>, } impl EnhancedImageScanFindingBuilder { ///

The Amazon Web Services account ID associated with the image.

@@ -343,6 +357,34 @@ impl EnhancedImageScanFindingBuilder { pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.updated_at } + ///

Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

+ pub fn fix_available(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.fix_available = ::std::option::Option::Some(input.into()); + self + } + ///

Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

+ pub fn set_fix_available(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.fix_available = input; + self + } + ///

Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.

+ pub fn get_fix_available(&self) -> &::std::option::Option<::std::string::String> { + &self.fix_available + } + ///

If a finding discovered in your environment has an exploit available.

+ pub fn exploit_available(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.exploit_available = ::std::option::Option::Some(input.into()); + self + } + ///

If a finding discovered in your environment has an exploit available.

+ pub fn set_exploit_available(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.exploit_available = input; + self + } + ///

If a finding discovered in your environment has an exploit available.

+ pub fn get_exploit_available(&self) -> &::std::option::Option<::std::string::String> { + &self.exploit_available + } /// Consumes the builder and constructs a [`EnhancedImageScanFinding`](crate::types::EnhancedImageScanFinding). pub fn build(self) -> crate::types::EnhancedImageScanFinding { crate::types::EnhancedImageScanFinding { @@ -361,6 +403,8 @@ impl EnhancedImageScanFindingBuilder { title: self.title, r#type: self.r#type, updated_at: self.updated_at, + fix_available: self.fix_available, + exploit_available: self.exploit_available, } } } diff --git a/sdk/ecr/src/types/_vulnerable_package.rs b/sdk/ecr/src/types/_vulnerable_package.rs index e143beaa9727..b1bcf0bdc392 100644 --- a/sdk/ecr/src/types/_vulnerable_package.rs +++ b/sdk/ecr/src/types/_vulnerable_package.rs @@ -20,6 +20,8 @@ pub struct VulnerablePackage { pub source_layer_hash: ::std::option::Option<::std::string::String>, ///

The version of the vulnerable package.

pub version: ::std::option::Option<::std::string::String>, + ///

The version of the package that contains the vulnerability fix.

+ pub fixed_in_version: ::std::option::Option<::std::string::String>, } impl VulnerablePackage { ///

The architecture of the vulnerable package.

@@ -54,6 +56,10 @@ impl VulnerablePackage { pub fn version(&self) -> ::std::option::Option<&str> { self.version.as_deref() } + ///

The version of the package that contains the vulnerability fix.

+ pub fn fixed_in_version(&self) -> ::std::option::Option<&str> { + self.fixed_in_version.as_deref() + } } impl VulnerablePackage { /// Creates a new builder-style object to manufacture [`VulnerablePackage`](crate::types::VulnerablePackage). @@ -74,6 +80,7 @@ pub struct VulnerablePackageBuilder { pub(crate) release: ::std::option::Option<::std::string::String>, pub(crate) source_layer_hash: ::std::option::Option<::std::string::String>, pub(crate) version: ::std::option::Option<::std::string::String>, + pub(crate) fixed_in_version: ::std::option::Option<::std::string::String>, } impl VulnerablePackageBuilder { ///

The architecture of the vulnerable package.

@@ -188,6 +195,20 @@ impl VulnerablePackageBuilder { pub fn get_version(&self) -> &::std::option::Option<::std::string::String> { &self.version } + ///

The version of the package that contains the vulnerability fix.

+ pub fn fixed_in_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.fixed_in_version = ::std::option::Option::Some(input.into()); + self + } + ///

The version of the package that contains the vulnerability fix.

+ pub fn set_fixed_in_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.fixed_in_version = input; + self + } + ///

The version of the package that contains the vulnerability fix.

+ pub fn get_fixed_in_version(&self) -> &::std::option::Option<::std::string::String> { + &self.fixed_in_version + } /// Consumes the builder and constructs a [`VulnerablePackage`](crate::types::VulnerablePackage). pub fn build(self) -> crate::types::VulnerablePackage { crate::types::VulnerablePackage { @@ -199,6 +220,7 @@ impl VulnerablePackageBuilder { release: self.release, source_layer_hash: self.source_layer_hash, version: self.version, + fixed_in_version: self.fixed_in_version, } } } diff --git a/sdk/ecs/src/client/put_account_setting.rs b/sdk/ecs/src/client/put_account_setting.rs index a3a61ca4ab16..986b82eced27 100644 --- a/sdk/ecs/src/client/put_account_setting.rs +++ b/sdk/ecs/src/client/put_account_setting.rs @@ -3,7 +3,7 @@ impl super::Client { /// Constructs a fluent builder for the [`PutAccountSetting`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`name(SettingName)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::name) / [`set_name(Option)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::set_name):
required: **true**

The Amazon ECS account setting name to modify.

The following are the valid values for the account setting name.

  • serviceLongArnFormat - When modified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging.

  • taskLongArnFormat - When modified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging.

  • containerInstanceLongArnFormat - When modified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging.

  • awsvpcTrunking - When modified, the elastic network interface (ENI) limit for any new container instances that support the feature is changed. If awsvpcTrunking is turned on, any new container instances that support the feature are launched have the increased ENI limits available to them. For more information, see Elastic Network Interface Trunking in the Amazon Elastic Container Service Developer Guide.

  • containerInsights - When modified, the default setting indicating whether Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If containerInsights is turned on, any new clusters that are created will have Container Insights turned on unless you disable it during cluster creation. For more information, see CloudWatch Container Insights in the Amazon Elastic Container Service Developer Guide.

  • dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • guardDutyActivate - The guardDutyActivate parameter is read-only in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring.


+ /// - [`name(SettingName)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::name) / [`set_name(Option)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::set_name):
required: **true**

The Amazon ECS account setting name to modify.

The following are the valid values for the account setting name.

  • serviceLongArnFormat - When modified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging.

  • taskLongArnFormat - When modified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging.

  • containerInstanceLongArnFormat - When modified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging.

  • awsvpcTrunking - When modified, the elastic network interface (ENI) limit for any new container instances that support the feature is changed. If awsvpcTrunking is turned on, any new container instances that support the feature are launched have the increased ENI limits available to them. For more information, see Elastic Network Interface Trunking in the Amazon Elastic Container Service Developer Guide.

  • containerInsights - When modified, the default setting indicating whether Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If containerInsights is turned on, any new clusters that are created will have Container Insights turned on unless you disable it during cluster creation. For more information, see CloudWatch Container Insights in the Amazon Elastic Container Service Developer Guide.

  • dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • guardDutyActivate - The guardDutyActivate parameter is read-only in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled by your security administrator in your Amazon ECS account. Amazon GuardDuty controls this account setting on your behalf. For more information, see Protecting Amazon ECS workloads with Amazon ECS Runtime Monitoring.


/// - [`value(impl Into)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::value) / [`set_value(Option)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::set_value):
required: **true**

The account setting value for the specified principal ARN. Accepted values are enabled, disabled, on, and off.

When you specify fargateTaskRetirementWaitPeriod for the name, the following are the valid values:

  • 0 - Amazon Web Services sends the notification, and immediately retires the affected tasks.

  • 7 - Amazon Web Services sends the notification, and waits 7 calendar days to retire the tasks.

  • 14 - Amazon Web Services sends the notification, and waits 14 calendar days to retire the tasks.


/// - [`principal_arn(impl Into)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::principal_arn) / [`set_principal_arn(Option)`](crate::operation::put_account_setting::builders::PutAccountSettingFluentBuilder::set_principal_arn):
required: **false**

The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it modifies the account setting for all users, roles, and the root user of the account unless a user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.

You must use the root user when you set the Fargate wait time (fargateTaskRetirementWaitPeriod).

Federated users assume the account setting of the root user and can't have explicit account settings set for them.


/// - On success, responds with [`PutAccountSettingOutput`](crate::operation::put_account_setting::PutAccountSettingOutput) with field(s): diff --git a/sdk/ecs/src/operation/put_account_setting/_put_account_setting_input.rs b/sdk/ecs/src/operation/put_account_setting/_put_account_setting_input.rs index 1c9c5b477c10..c2971ed2c5c3 100644 --- a/sdk/ecs/src/operation/put_account_setting/_put_account_setting_input.rs +++ b/sdk/ecs/src/operation/put_account_setting/_put_account_setting_input.rs @@ -19,8 +19,6 @@ pub struct PutAccountSettingInput { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • @@ -62,8 +60,6 @@ impl PutAccountSettingInput { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • @@ -126,8 +122,6 @@ impl PutAccountSettingInputBuilder { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • @@ -155,8 +149,6 @@ impl PutAccountSettingInputBuilder { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • @@ -183,8 +175,6 @@ impl PutAccountSettingInputBuilder { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • diff --git a/sdk/ecs/src/operation/put_account_setting/builders.rs b/sdk/ecs/src/operation/put_account_setting/builders.rs index 2dce3ea28daa..4d84de7316a8 100644 --- a/sdk/ecs/src/operation/put_account_setting/builders.rs +++ b/sdk/ecs/src/operation/put_account_setting/builders.rs @@ -125,8 +125,6 @@ impl PutAccountSettingFluentBuilder { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • @@ -153,8 +151,6 @@ impl PutAccountSettingFluentBuilder { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • @@ -181,8 +177,6 @@ impl PutAccountSettingFluentBuilder { ///
  • ///

    dualStackIPv6 - When turned on, when using a VPC in dual stack mode, your tasks using the awsvpc network mode can have an IPv6 address assigned. For more information on using IPv6 with tasks launched on Amazon EC2 instances, see Using a VPC in dual-stack mode. For more information on using IPv6 with tasks launched on Fargate, see Using a VPC in dual-stack mode.

  • ///
  • - ///

    fargateFIPSMode - If you specify fargateFIPSMode, Fargate FIPS 140 compliance is affected.

  • - ///
  • ///

    fargateTaskRetirementWaitPeriod - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and new tasks launched to replace them. Use fargateTaskRetirementWaitPeriod to configure the wait time to retire a Fargate task. For information about the Fargate tasks maintenance, see Amazon Web Services Fargate task maintenance in the Amazon ECS Developer Guide.

  • ///
  • ///

    tagResourceAuthorization - Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.

  • diff --git a/sdk/ecs/src/types/_container_definition.rs b/sdk/ecs/src/types/_container_definition.rs index f515fd36932d..1206f95125c6 100644 --- a/sdk/ecs/src/types/_container_definition.rs +++ b/sdk/ecs/src/types/_container_definition.rs @@ -4,9 +4,9 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ContainerDefinition { - ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in tthe docker conainer create command and the --name option to docker run.

    + ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the --name option to docker run.

    pub name: ::std::option::Option<::std::string::String>, - ///

    The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker conainer create command and the IMAGE parameter of docker run.

    + ///

    The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the IMAGE parameter of docker run.

    ///
      ///
    • ///

      When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.

    • @@ -32,7 +32,7 @@ pub struct ContainerDefinition { pub image: ::std::option::Option<::std::string::String>, ///

      The private repository authentication credentials to use.

      pub repository_credentials: ::std::option::Option, - ///

      The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker conainer create commandand the --cpu-shares option to docker run.

      + ///

      The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker container create commandand the --cpu-shares option to docker run.

      ///

      This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

      ///

      You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

      ///
      @@ -48,19 +48,19 @@ pub struct ContainerDefinition { ///
    ///

    On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. Windows containers only have access to the specified amount of CPU that's described in the task definition. A null or zero CPU value is passed to Docker as 0, which Windows interprets as 1% of one CPU.

    pub cpu: i32, - ///

    The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in thethe docker conainer create command and the --memory option to docker run.

    + ///

    The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in the docker container create command and the --memory option to docker run.

    ///

    If using the Fargate launch type, this parameter is optional.

    ///

    If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory value. If you specify both a container-level memory and memoryReservation value, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

    ///

    The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

    ///

    The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So, don't specify less than 4 MiB of memory for your containers.

    pub memory: ::std::option::Option, - ///

    The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the the docker conainer create command and the --memory-reservation option to docker run.

    + ///

    The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

    ///

    If a task-level memory value is not specified, you must specify a non-zero integer for one or both of memory or memoryReservation in a container definition. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

    ///

    For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

    ///

    The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

    ///

    The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So, don't specify less than 4 MiB of memory for your containers.

    pub memory_reservation: ::std::option::Option, - ///

    The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker conainer create command and the --link option to docker run.

    + ///

    The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the --link option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    ///

    Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

    @@ -69,7 +69,7 @@ pub struct ContainerDefinition { ///

    The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.

    ///

    For task definitions that use the awsvpc network mode, only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

    ///

    Port mappings on Windows use the NetNAT gateway address rather than localhost. There's no loopback for port mappings on Windows, so you can't access a container's mapped port from the host itself.

    - ///

    This parameter maps to PortBindings in the the docker conainer create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

    + ///

    This parameter maps to PortBindings in the the docker container create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

    ///

    After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the networkBindings section DescribeTasks responses.

    ///
    pub port_mappings: ::std::option::Option<::std::vec::Vec>, @@ -81,11 +81,11 @@ pub struct ContainerDefinition { /// ///

    Early versions of the Amazon ECS container agent don't properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

    ///
    - ///

    The entry point that's passed to the container. This parameter maps to Entrypoint in tthe docker conainer create command and the --entrypoint option to docker run.

    + ///

    The entry point that's passed to the container. This parameter maps to Entrypoint in the docker container create command and the --entrypoint option to docker run.

    pub entry_point: ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ///

    The command that's passed to the container. This parameter maps to Cmd in the docker conainer create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

    + ///

    The command that's passed to the container. This parameter maps to Cmd in the docker container create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

    pub command: ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ///

    The environment variables to pass to a container. This parameter maps to Env in the docker conainer create command and the --env option to docker run.

    + ///

    The environment variables to pass to a container. This parameter maps to Env in the docker container create command and the --env option to docker run.

    ///

    We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.

    ///
    pub environment: ::std::option::Option<::std::vec::Vec>, @@ -94,10 +94,10 @@ pub struct ContainerDefinition { ///

    If there are environment variables specified using the environment parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they're processed from the top down. We recommend that you use unique variable names. For more information, see Specifying Environment Variables in the Amazon Elastic Container Service Developer Guide.

    pub environment_files: ::std::option::Option<::std::vec::Vec>, ///

    The mount points for data volumes in your container.

    - ///

    This parameter maps to Volumes in the the docker conainer create command and the --volume option to docker run.

    + ///

    This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

    ///

    Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives.

    pub mount_points: ::std::option::Option<::std::vec::Vec>, - ///

    Data volumes to mount from another container. This parameter maps to VolumesFrom in tthe docker conainer create command and the --volumes-from option to docker run.

    + ///

    Data volumes to mount from another container. This parameter maps to VolumesFrom in the docker container create command and the --volumes-from option to docker run.

    pub volumes_from: ::std::option::Option<::std::vec::Vec>, ///

    Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information see KernelCapabilities.

    ///

    This parameter is not supported for Windows containers.

    @@ -136,15 +136,15 @@ pub struct ContainerDefinition { ///
  • ///

    Windows platform version 1.0.0 or later.

  • /// - ///

    The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

    + ///

    For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

    ///

    For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ecs-init package. If your container instances are launched from version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    - ///

    The valid values are 2-120 seconds.

    + ///

    The valid values for Fargate are 2-120 seconds.

    pub stop_timeout: ::std::option::Option, - ///

    The hostname to use for your container. This parameter maps to Hostname in thethe docker conainer create command and the --hostname option to docker run.

    + ///

    The hostname to use for your container. This parameter maps to Hostname in the docker container create command and the --hostname option to docker run.

    ///

    The hostname parameter is not supported if you're using the awsvpc network mode.

    ///
    pub hostname: ::std::option::Option<::std::string::String>, - ///

    The user to use inside the container. This parameter maps to User in the docker conainer create command and the --user option to docker run.

    + ///

    The user to use inside the container. This parameter maps to User in the docker container create command and the --user option to docker run.

    ///

    When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security.

    ///
    ///

    You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer.

    @@ -165,63 +165,63 @@ pub struct ContainerDefinition { ///

    This parameter is not supported for Windows containers.

    ///
    pub user: ::std::option::Option<::std::string::String>, - ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker conainer create command and the --workdir option to docker run.

    + ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker container create command and the --workdir option to docker run.

    pub working_directory: ::std::option::Option<::std::string::String>, - ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker conainer create command.

    + ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker container create command.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub disable_networking: ::std::option::Option, - ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the the docker conainer create command and the --privileged option to docker run

    + ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the docker container create command and the --privileged option to docker run

    ///

    This parameter is not supported for Windows containers or tasks run on Fargate.

    ///
    pub privileged: ::std::option::Option, - ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker conainer create command and the --read-only option to docker run.

    + ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker container create command and the --read-only option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub readonly_root_filesystem: ::std::option::Option, - ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the the docker conainer create command and the --dns option to docker run.

    + ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the docker container create command and the --dns option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub dns_servers: ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker conainer create command and the --dns-search option to docker run.

    + ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker container create command and the --dns-search option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub dns_search_domains: ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker conainer create command and the --add-host option to docker run.

    + ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker container create command and the --add-host option to docker run.

    ///

    This parameter isn't supported for Windows containers or tasks that use the awsvpc network mode.

    ///
    pub extra_hosts: ::std::option::Option<::std::vec::Vec>, ///

    A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks using the Fargate launch type.

    ///

    For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems.

    ///

    For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see Using gMSAs for Windows Containers and Using gMSAs for Linux Containers in the Amazon Elastic Container Service Developer Guide.

    - ///

    This parameter maps to SecurityOpt in the docker conainer create command and the --security-opt option to docker run.

    + ///

    This parameter maps to SecurityOpt in the docker container create command and the --security-opt option to docker run.

    ///

    The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    ///
    ///

    Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"

    pub docker_security_options: ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker conainer create command and the --interactive option to docker run.

    + ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker container create command and the --interactive option to docker run.

    pub interactive: ::std::option::Option, - ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in tthe docker conainer create command and the --tty option to docker run.

    + ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in the docker container create command and the --tty option to docker run.

    pub pseudo_terminal: ::std::option::Option, - ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker conainer create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    + ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    pub docker_labels: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, - ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in tthe docker conainer create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    + ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    ///

    Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535.

    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    ///

    This parameter is not supported for Windows containers.

    ///
    pub ulimits: ::std::option::Option<::std::vec::Vec>, ///

    The log configuration specification for the container.

    - ///

    This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    + ///

    This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    ///

    Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent.

    ///
    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    ///

    The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    ///
    pub log_configuration: ::std::option::Option, - ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker conainer create command and the HEALTHCHECK parameter of docker run.

    + ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker container create command and the HEALTHCHECK parameter of docker run.

    pub health_check: ::std::option::Option, - ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    + ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    pub system_controls: ::std::option::Option<::std::vec::Vec>, ///

    The type and amount of a resource to assign to a container. The only supported resource is a GPU.

    pub resource_requirements: ::std::option::Option<::std::vec::Vec>, @@ -251,11 +251,11 @@ pub struct ContainerDefinition { pub credential_specs: ::std::option::Option<::std::vec::Vec<::std::string::String>>, } impl ContainerDefinition { - ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in tthe docker conainer create command and the --name option to docker run.

    + ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the --name option to docker run.

    pub fn name(&self) -> ::std::option::Option<&str> { self.name.as_deref() } - ///

    The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker conainer create command and the IMAGE parameter of docker run.

    + ///

    The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the IMAGE parameter of docker run.

    ///
      ///
    • ///

      When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.

    • @@ -285,7 +285,7 @@ impl ContainerDefinition { pub fn repository_credentials(&self) -> ::std::option::Option<&crate::types::RepositoryCredentials> { self.repository_credentials.as_ref() } - ///

      The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker conainer create commandand the --cpu-shares option to docker run.

      + ///

      The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker container create commandand the --cpu-shares option to docker run.

      ///

      This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

      ///

      You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

      ///
      @@ -303,7 +303,7 @@ impl ContainerDefinition { pub fn cpu(&self) -> i32 { self.cpu } - ///

      The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in thethe docker conainer create command and the --memory option to docker run.

      + ///

      The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in the docker container create command and the --memory option to docker run.

      ///

      If using the Fargate launch type, this parameter is optional.

      ///

      If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory value. If you specify both a container-level memory and memoryReservation value, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

      ///

      The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

      @@ -311,7 +311,7 @@ impl ContainerDefinition { pub fn memory(&self) -> ::std::option::Option { self.memory } - ///

      The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the the docker conainer create command and the --memory-reservation option to docker run.

      + ///

      The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

      ///

      If a task-level memory value is not specified, you must specify a non-zero integer for one or both of memory or memoryReservation in a container definition. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

      ///

      For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

      ///

      The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

      @@ -319,7 +319,7 @@ impl ContainerDefinition { pub fn memory_reservation(&self) -> ::std::option::Option { self.memory_reservation } - ///

      The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker conainer create command and the --link option to docker run.

      + ///

      The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the --link option to docker run.

      ///

      This parameter is not supported for Windows containers.

      ///
      ///

      Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

      @@ -332,7 +332,7 @@ impl ContainerDefinition { ///

      The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.

      ///

      For task definitions that use the awsvpc network mode, only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

      ///

      Port mappings on Windows use the NetNAT gateway address rather than localhost. There's no loopback for port mappings on Windows, so you can't access a container's mapped port from the host itself.

      - ///

      This parameter maps to PortBindings in the the docker conainer create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

      + ///

      This parameter maps to PortBindings in the the docker container create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

      ///

      After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the networkBindings section DescribeTasks responses.

      ///
      /// @@ -352,19 +352,19 @@ impl ContainerDefinition { /// ///

      Early versions of the Amazon ECS container agent don't properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

      ///
      - ///

      The entry point that's passed to the container. This parameter maps to Entrypoint in tthe docker conainer create command and the --entrypoint option to docker run.

      + ///

      The entry point that's passed to the container. This parameter maps to Entrypoint in the docker container create command and the --entrypoint option to docker run.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.entry_point.is_none()`. pub fn entry_point(&self) -> &[::std::string::String] { self.entry_point.as_deref().unwrap_or_default() } - ///

      The command that's passed to the container. This parameter maps to Cmd in the docker conainer create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

      + ///

      The command that's passed to the container. This parameter maps to Cmd in the docker container create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.command.is_none()`. pub fn command(&self) -> &[::std::string::String] { self.command.as_deref().unwrap_or_default() } - ///

      The environment variables to pass to a container. This parameter maps to Env in the docker conainer create command and the --env option to docker run.

      + ///

      The environment variables to pass to a container. This parameter maps to Env in the docker container create command and the --env option to docker run.

      ///

      We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.

      ///
      /// @@ -381,14 +381,14 @@ impl ContainerDefinition { self.environment_files.as_deref().unwrap_or_default() } ///

      The mount points for data volumes in your container.

      - ///

      This parameter maps to Volumes in the the docker conainer create command and the --volume option to docker run.

      + ///

      This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

      ///

      Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.mount_points.is_none()`. pub fn mount_points(&self) -> &[crate::types::MountPoint] { self.mount_points.as_deref().unwrap_or_default() } - ///

      Data volumes to mount from another container. This parameter maps to VolumesFrom in tthe docker conainer create command and the --volumes-from option to docker run.

      + ///

      Data volumes to mount from another container. This parameter maps to VolumesFrom in the docker container create command and the --volumes-from option to docker run.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.volumes_from.is_none()`. pub fn volumes_from(&self) -> &[crate::types::VolumeFrom] { @@ -443,19 +443,19 @@ impl ContainerDefinition { ///
    • ///

      Windows platform version 1.0.0 or later.

    • ///
    - ///

    The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

    + ///

    For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

    ///

    For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ecs-init package. If your container instances are launched from version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    - ///

    The valid values are 2-120 seconds.

    + ///

    The valid values for Fargate are 2-120 seconds.

    pub fn stop_timeout(&self) -> ::std::option::Option { self.stop_timeout } - ///

    The hostname to use for your container. This parameter maps to Hostname in thethe docker conainer create command and the --hostname option to docker run.

    + ///

    The hostname to use for your container. This parameter maps to Hostname in the docker container create command and the --hostname option to docker run.

    ///

    The hostname parameter is not supported if you're using the awsvpc network mode.

    ///
    pub fn hostname(&self) -> ::std::option::Option<&str> { self.hostname.as_deref() } - ///

    The user to use inside the container. This parameter maps to User in the docker conainer create command and the --user option to docker run.

    + ///

    The user to use inside the container. This parameter maps to User in the docker container create command and the --user option to docker run.

    ///

    When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security.

    ///
    ///

    You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer.

    @@ -478,29 +478,29 @@ impl ContainerDefinition { pub fn user(&self) -> ::std::option::Option<&str> { self.user.as_deref() } - ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker conainer create command and the --workdir option to docker run.

    + ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker container create command and the --workdir option to docker run.

    pub fn working_directory(&self) -> ::std::option::Option<&str> { self.working_directory.as_deref() } - ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker conainer create command.

    + ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker container create command.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn disable_networking(&self) -> ::std::option::Option { self.disable_networking } - ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the the docker conainer create command and the --privileged option to docker run

    + ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the docker container create command and the --privileged option to docker run

    ///

    This parameter is not supported for Windows containers or tasks run on Fargate.

    ///
    pub fn privileged(&self) -> ::std::option::Option { self.privileged } - ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker conainer create command and the --read-only option to docker run.

    + ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker container create command and the --read-only option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn readonly_root_filesystem(&self) -> ::std::option::Option { self.readonly_root_filesystem } - ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the the docker conainer create command and the --dns option to docker run.

    + ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the docker container create command and the --dns option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    /// @@ -508,7 +508,7 @@ impl ContainerDefinition { pub fn dns_servers(&self) -> &[::std::string::String] { self.dns_servers.as_deref().unwrap_or_default() } - ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker conainer create command and the --dns-search option to docker run.

    + ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker container create command and the --dns-search option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    /// @@ -516,7 +516,7 @@ impl ContainerDefinition { pub fn dns_search_domains(&self) -> &[::std::string::String] { self.dns_search_domains.as_deref().unwrap_or_default() } - ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker conainer create command and the --add-host option to docker run.

    + ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker container create command and the --add-host option to docker run.

    ///

    This parameter isn't supported for Windows containers or tasks that use the awsvpc network mode.

    ///
    /// @@ -527,7 +527,7 @@ impl ContainerDefinition { ///

    A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks using the Fargate launch type.

    ///

    For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems.

    ///

    For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see Using gMSAs for Windows Containers and Using gMSAs for Linux Containers in the Amazon Elastic Container Service Developer Guide.

    - ///

    This parameter maps to SecurityOpt in the docker conainer create command and the --security-opt option to docker run.

    + ///

    This parameter maps to SecurityOpt in the docker container create command and the --security-opt option to docker run.

    ///

    The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    ///
    ///

    Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"

    @@ -536,19 +536,19 @@ impl ContainerDefinition { pub fn docker_security_options(&self) -> &[::std::string::String] { self.docker_security_options.as_deref().unwrap_or_default() } - ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker conainer create command and the --interactive option to docker run.

    + ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker container create command and the --interactive option to docker run.

    pub fn interactive(&self) -> ::std::option::Option { self.interactive } - ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in tthe docker conainer create command and the --tty option to docker run.

    + ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in the docker container create command and the --tty option to docker run.

    pub fn pseudo_terminal(&self) -> ::std::option::Option { self.pseudo_terminal } - ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker conainer create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    + ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    pub fn docker_labels(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.docker_labels.as_ref() } - ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in tthe docker conainer create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    + ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    ///

    Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535.

    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    ///

    This parameter is not supported for Windows containers.

    @@ -559,7 +559,7 @@ impl ContainerDefinition { self.ulimits.as_deref().unwrap_or_default() } ///

    The log configuration specification for the container.

    - ///

    This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    + ///

    This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    ///

    Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent.

    ///
    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    @@ -568,11 +568,11 @@ impl ContainerDefinition { pub fn log_configuration(&self) -> ::std::option::Option<&crate::types::LogConfiguration> { self.log_configuration.as_ref() } - ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker conainer create command and the HEALTHCHECK parameter of docker run.

    + ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker container create command and the HEALTHCHECK parameter of docker run.

    pub fn health_check(&self) -> ::std::option::Option<&crate::types::HealthCheck> { self.health_check.as_ref() } - ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    + ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.system_controls.is_none()`. pub fn system_controls(&self) -> &[crate::types::SystemControl] { @@ -669,21 +669,21 @@ pub struct ContainerDefinitionBuilder { pub(crate) credential_specs: ::std::option::Option<::std::vec::Vec<::std::string::String>>, } impl ContainerDefinitionBuilder { - ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in tthe docker conainer create command and the --name option to docker run.

    + ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the --name option to docker run.

    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.name = ::std::option::Option::Some(input.into()); self } - ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in tthe docker conainer create command and the --name option to docker run.

    + ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the --name option to docker run.

    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.name = input; self } - ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in tthe docker conainer create command and the --name option to docker run.

    + ///

    The name of a container. If you're linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to name in the docker container create command and the --name option to docker run.

    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> { &self.name } - ///

    The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker conainer create command and the IMAGE parameter of docker run.

    + ///

    The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the IMAGE parameter of docker run.

    ///
      ///
    • ///

      When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.

    • @@ -710,7 +710,7 @@ impl ContainerDefinitionBuilder { self.image = ::std::option::Option::Some(input.into()); self } - ///

      The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker conainer create command and the IMAGE parameter of docker run.

      + ///

      The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the IMAGE parameter of docker run.

      ///
        ///
      • ///

        When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.

      • @@ -737,7 +737,7 @@ impl ContainerDefinitionBuilder { self.image = input; self } - ///

        The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker conainer create command and the IMAGE parameter of docker run.

        + ///

        The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the docker container create command and the IMAGE parameter of docker run.

        ///
          ///
        • ///

          When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.

        • @@ -777,7 +777,7 @@ impl ContainerDefinitionBuilder { pub fn get_repository_credentials(&self) -> &::std::option::Option { &self.repository_credentials } - ///

          The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker conainer create commandand the --cpu-shares option to docker run.

          + ///

          The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker container create commandand the --cpu-shares option to docker run.

          ///

          This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

          ///

          You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

          ///
          @@ -796,7 +796,7 @@ impl ContainerDefinitionBuilder { self.cpu = ::std::option::Option::Some(input); self } - ///

          The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker conainer create commandand the --cpu-shares option to docker run.

          + ///

          The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker container create commandand the --cpu-shares option to docker run.

          ///

          This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

          ///

          You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

          ///
          @@ -815,7 +815,7 @@ impl ContainerDefinitionBuilder { self.cpu = input; self } - ///

          The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker conainer create commandand the --cpu-shares option to docker run.

          + ///

          The number of cpu units reserved for the container. This parameter maps to CpuShares in the docker container create commandand the --cpu-shares option to docker run.

          ///

          This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

          ///

          You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

          ///
          @@ -833,7 +833,7 @@ impl ContainerDefinitionBuilder { pub fn get_cpu(&self) -> &::std::option::Option { &self.cpu } - ///

          The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in thethe docker conainer create command and the --memory option to docker run.

          + ///

          The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in the docker container create command and the --memory option to docker run.

          ///

          If using the Fargate launch type, this parameter is optional.

          ///

          If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory value. If you specify both a container-level memory and memoryReservation value, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

          ///

          The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

          @@ -842,7 +842,7 @@ impl ContainerDefinitionBuilder { self.memory = ::std::option::Option::Some(input); self } - ///

          The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in thethe docker conainer create command and the --memory option to docker run.

          + ///

          The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in the docker container create command and the --memory option to docker run.

          ///

          If using the Fargate launch type, this parameter is optional.

          ///

          If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory value. If you specify both a container-level memory and memoryReservation value, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

          ///

          The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

          @@ -851,7 +851,7 @@ impl ContainerDefinitionBuilder { self.memory = input; self } - ///

          The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in thethe docker conainer create command and the --memory option to docker run.

          + ///

          The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified. This parameter maps to Memory in the docker container create command and the --memory option to docker run.

          ///

          If using the Fargate launch type, this parameter is optional.

          ///

          If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory value. If you specify both a container-level memory and memoryReservation value, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

          ///

          The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

          @@ -859,7 +859,7 @@ impl ContainerDefinitionBuilder { pub fn get_memory(&self) -> &::std::option::Option { &self.memory } - ///

          The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the the docker conainer create command and the --memory-reservation option to docker run.

          + ///

          The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

          ///

          If a task-level memory value is not specified, you must specify a non-zero integer for one or both of memory or memoryReservation in a container definition. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

          ///

          For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

          ///

          The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

          @@ -868,7 +868,7 @@ impl ContainerDefinitionBuilder { self.memory_reservation = ::std::option::Option::Some(input); self } - ///

          The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the the docker conainer create command and the --memory-reservation option to docker run.

          + ///

          The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

          ///

          If a task-level memory value is not specified, you must specify a non-zero integer for one or both of memory or memoryReservation in a container definition. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

          ///

          For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

          ///

          The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

          @@ -877,7 +877,7 @@ impl ContainerDefinitionBuilder { self.memory_reservation = input; self } - ///

          The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the the docker conainer create command and the --memory-reservation option to docker run.

          + ///

          The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to MemoryReservation in the docker container create command and the --memory-reservation option to docker run.

          ///

          If a task-level memory value is not specified, you must specify a non-zero integer for one or both of memory or memoryReservation in a container definition. If you specify both, memory must be greater than memoryReservation. If you specify memoryReservation, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of memory is used.

          ///

          For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a memoryReservation of 128 MiB, and a memory hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.

          ///

          The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers.

          @@ -889,7 +889,7 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_links`](Self::set_links). /// - ///

          The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker conainer create command and the --link option to docker run.

          + ///

          The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the --link option to docker run.

          ///

          This parameter is not supported for Windows containers.

          ///
          ///

          Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

          @@ -900,7 +900,7 @@ impl ContainerDefinitionBuilder { self.links = ::std::option::Option::Some(v); self } - ///

          The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker conainer create command and the --link option to docker run.

          + ///

          The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the --link option to docker run.

          ///

          This parameter is not supported for Windows containers.

          ///
          ///

          Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

          @@ -909,7 +909,7 @@ impl ContainerDefinitionBuilder { self.links = input; self } - ///

          The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker conainer create command and the --link option to docker run.

          + ///

          The links parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to Links in the docker container create command and the --link option to docker run.

          ///

          This parameter is not supported for Windows containers.

          ///
          ///

          Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

          @@ -924,7 +924,7 @@ impl ContainerDefinitionBuilder { ///

          The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.

          ///

          For task definitions that use the awsvpc network mode, only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

          ///

          Port mappings on Windows use the NetNAT gateway address rather than localhost. There's no loopback for port mappings on Windows, so you can't access a container's mapped port from the host itself.

          - ///

          This parameter maps to PortBindings in the the docker conainer create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

          + ///

          This parameter maps to PortBindings in the the docker container create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

          ///

          After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the networkBindings section DescribeTasks responses.

          ///
          pub fn port_mappings(mut self, input: crate::types::PortMapping) -> Self { @@ -936,7 +936,7 @@ impl ContainerDefinitionBuilder { ///

          The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.

          ///

          For task definitions that use the awsvpc network mode, only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

          ///

          Port mappings on Windows use the NetNAT gateway address rather than localhost. There's no loopback for port mappings on Windows, so you can't access a container's mapped port from the host itself.

          - ///

          This parameter maps to PortBindings in the the docker conainer create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

          + ///

          This parameter maps to PortBindings in the the docker container create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

          ///

          After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the networkBindings section DescribeTasks responses.

          ///
          pub fn set_port_mappings(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { @@ -946,7 +946,7 @@ impl ContainerDefinitionBuilder { ///

          The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.

          ///

          For task definitions that use the awsvpc network mode, only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

          ///

          Port mappings on Windows use the NetNAT gateway address rather than localhost. There's no loopback for port mappings on Windows, so you can't access a container's mapped port from the host itself.

          - ///

          This parameter maps to PortBindings in the the docker conainer create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

          + ///

          This parameter maps to PortBindings in the the docker container create command and the --publish option to docker run. If the network mode of a task definition is set to none, then you can't specify port mappings. If the network mode of a task definition is set to host, then host ports must either be undefined or they must match the container port in the port mapping.

          ///

          After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the networkBindings section DescribeTasks responses.

          ///
          pub fn get_port_mappings(&self) -> &::std::option::Option<::std::vec::Vec> { @@ -990,7 +990,7 @@ impl ContainerDefinitionBuilder { /// ///

          Early versions of the Amazon ECS container agent don't properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

          ///
          - ///

          The entry point that's passed to the container. This parameter maps to Entrypoint in tthe docker conainer create command and the --entrypoint option to docker run.

          + ///

          The entry point that's passed to the container. This parameter maps to Entrypoint in the docker container create command and the --entrypoint option to docker run.

          pub fn entry_point(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.entry_point.unwrap_or_default(); v.push(input.into()); @@ -1000,7 +1000,7 @@ impl ContainerDefinitionBuilder { /// ///

          Early versions of the Amazon ECS container agent don't properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

          ///
          - ///

          The entry point that's passed to the container. This parameter maps to Entrypoint in tthe docker conainer create command and the --entrypoint option to docker run.

          + ///

          The entry point that's passed to the container. This parameter maps to Entrypoint in the docker container create command and the --entrypoint option to docker run.

          pub fn set_entry_point(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.entry_point = input; self @@ -1008,7 +1008,7 @@ impl ContainerDefinitionBuilder { /// ///

          Early versions of the Amazon ECS container agent don't properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

          ///
          - ///

          The entry point that's passed to the container. This parameter maps to Entrypoint in tthe docker conainer create command and the --entrypoint option to docker run.

          + ///

          The entry point that's passed to the container. This parameter maps to Entrypoint in the docker container create command and the --entrypoint option to docker run.

          pub fn get_entry_point(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.entry_point } @@ -1016,19 +1016,19 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_command`](Self::set_command). /// - ///

          The command that's passed to the container. This parameter maps to Cmd in the docker conainer create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

          + ///

          The command that's passed to the container. This parameter maps to Cmd in the docker container create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

          pub fn command(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.command.unwrap_or_default(); v.push(input.into()); self.command = ::std::option::Option::Some(v); self } - ///

          The command that's passed to the container. This parameter maps to Cmd in the docker conainer create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

          + ///

          The command that's passed to the container. This parameter maps to Cmd in the docker container create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

          pub fn set_command(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.command = input; self } - ///

          The command that's passed to the container. This parameter maps to Cmd in the docker conainer create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

          + ///

          The command that's passed to the container. This parameter maps to Cmd in the docker container create command and the COMMAND parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.

          pub fn get_command(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.command } @@ -1036,7 +1036,7 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_environment`](Self::set_environment). /// - ///

          The environment variables to pass to a container. This parameter maps to Env in the docker conainer create command and the --env option to docker run.

          + ///

          The environment variables to pass to a container. This parameter maps to Env in the docker container create command and the --env option to docker run.

          ///

          We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.

          ///
          pub fn environment(mut self, input: crate::types::KeyValuePair) -> Self { @@ -1045,14 +1045,14 @@ impl ContainerDefinitionBuilder { self.environment = ::std::option::Option::Some(v); self } - ///

          The environment variables to pass to a container. This parameter maps to Env in the docker conainer create command and the --env option to docker run.

          + ///

          The environment variables to pass to a container. This parameter maps to Env in the docker container create command and the --env option to docker run.

          ///

          We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.

          ///
          pub fn set_environment(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.environment = input; self } - ///

          The environment variables to pass to a container. This parameter maps to Env in the docker conainer create command and the --env option to docker run.

          + ///

          The environment variables to pass to a container. This parameter maps to Env in the docker container create command and the --env option to docker run.

          ///

          We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.

          ///
          pub fn get_environment(&self) -> &::std::option::Option<::std::vec::Vec> { @@ -1089,7 +1089,7 @@ impl ContainerDefinitionBuilder { /// To override the contents of this collection use [`set_mount_points`](Self::set_mount_points). /// ///

          The mount points for data volumes in your container.

          - ///

          This parameter maps to Volumes in the the docker conainer create command and the --volume option to docker run.

          + ///

          This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

          ///

          Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives.

          pub fn mount_points(mut self, input: crate::types::MountPoint) -> Self { let mut v = self.mount_points.unwrap_or_default(); @@ -1098,14 +1098,14 @@ impl ContainerDefinitionBuilder { self } ///

          The mount points for data volumes in your container.

          - ///

          This parameter maps to Volumes in the the docker conainer create command and the --volume option to docker run.

          + ///

          This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

          ///

          Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives.

          pub fn set_mount_points(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.mount_points = input; self } ///

          The mount points for data volumes in your container.

          - ///

          This parameter maps to Volumes in the the docker conainer create command and the --volume option to docker run.

          + ///

          This parameter maps to Volumes in the docker container create command and the --volume option to docker run.

          ///

          Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives.

          pub fn get_mount_points(&self) -> &::std::option::Option<::std::vec::Vec> { &self.mount_points @@ -1114,19 +1114,19 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_volumes_from`](Self::set_volumes_from). /// - ///

          Data volumes to mount from another container. This parameter maps to VolumesFrom in tthe docker conainer create command and the --volumes-from option to docker run.

          + ///

          Data volumes to mount from another container. This parameter maps to VolumesFrom in the docker container create command and the --volumes-from option to docker run.

          pub fn volumes_from(mut self, input: crate::types::VolumeFrom) -> Self { let mut v = self.volumes_from.unwrap_or_default(); v.push(input); self.volumes_from = ::std::option::Option::Some(v); self } - ///

          Data volumes to mount from another container. This parameter maps to VolumesFrom in tthe docker conainer create command and the --volumes-from option to docker run.

          + ///

          Data volumes to mount from another container. This parameter maps to VolumesFrom in the docker container create command and the --volumes-from option to docker run.

          pub fn set_volumes_from(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.volumes_from = input; self } - ///

          Data volumes to mount from another container. This parameter maps to VolumesFrom in tthe docker conainer create command and the --volumes-from option to docker run.

          + ///

          Data volumes to mount from another container. This parameter maps to VolumesFrom in the docker container create command and the --volumes-from option to docker run.

          pub fn get_volumes_from(&self) -> &::std::option::Option<::std::vec::Vec> { &self.volumes_from } @@ -1269,9 +1269,9 @@ impl ContainerDefinitionBuilder { ///
        • ///

          Windows platform version 1.0.0 or later.

        • ///
        - ///

        The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

        + ///

        For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

        ///

        For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ecs-init package. If your container instances are launched from version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

        - ///

        The valid values are 2-120 seconds.

        + ///

        The valid values for Fargate are 2-120 seconds.

        pub fn stop_timeout(mut self, input: i32) -> Self { self.stop_timeout = ::std::option::Option::Some(input); self @@ -1284,9 +1284,9 @@ impl ContainerDefinitionBuilder { ///
      • ///

        Windows platform version 1.0.0 or later.

      • ///
      - ///

      The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

      + ///

      For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

      ///

      For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ecs-init package. If your container instances are launched from version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

      - ///

      The valid values are 2-120 seconds.

      + ///

      The valid values for Fargate are 2-120 seconds.

      pub fn set_stop_timeout(mut self, input: ::std::option::Option) -> Self { self.stop_timeout = input; self @@ -1299,33 +1299,33 @@ impl ContainerDefinitionBuilder { ///
    • ///

      Windows platform version 1.0.0 or later.

    • ///
    - ///

    The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

    + ///

    For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.

    ///

    For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter or the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ecs-init package. If your container instances are launched from version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.

    - ///

    The valid values are 2-120 seconds.

    + ///

    The valid values for Fargate are 2-120 seconds.

    pub fn get_stop_timeout(&self) -> &::std::option::Option { &self.stop_timeout } - ///

    The hostname to use for your container. This parameter maps to Hostname in thethe docker conainer create command and the --hostname option to docker run.

    + ///

    The hostname to use for your container. This parameter maps to Hostname in the docker container create command and the --hostname option to docker run.

    ///

    The hostname parameter is not supported if you're using the awsvpc network mode.

    ///
    pub fn hostname(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.hostname = ::std::option::Option::Some(input.into()); self } - ///

    The hostname to use for your container. This parameter maps to Hostname in thethe docker conainer create command and the --hostname option to docker run.

    + ///

    The hostname to use for your container. This parameter maps to Hostname in the docker container create command and the --hostname option to docker run.

    ///

    The hostname parameter is not supported if you're using the awsvpc network mode.

    ///
    pub fn set_hostname(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.hostname = input; self } - ///

    The hostname to use for your container. This parameter maps to Hostname in thethe docker conainer create command and the --hostname option to docker run.

    + ///

    The hostname to use for your container. This parameter maps to Hostname in the docker container create command and the --hostname option to docker run.

    ///

    The hostname parameter is not supported if you're using the awsvpc network mode.

    ///
    pub fn get_hostname(&self) -> &::std::option::Option<::std::string::String> { &self.hostname } - ///

    The user to use inside the container. This parameter maps to User in the docker conainer create command and the --user option to docker run.

    + ///

    The user to use inside the container. This parameter maps to User in the docker container create command and the --user option to docker run.

    ///

    When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security.

    ///
    ///

    You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer.

    @@ -1349,7 +1349,7 @@ impl ContainerDefinitionBuilder { self.user = ::std::option::Option::Some(input.into()); self } - ///

    The user to use inside the container. This parameter maps to User in the docker conainer create command and the --user option to docker run.

    + ///

    The user to use inside the container. This parameter maps to User in the docker container create command and the --user option to docker run.

    ///

    When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security.

    ///
    ///

    You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer.

    @@ -1373,7 +1373,7 @@ impl ContainerDefinitionBuilder { self.user = input; self } - ///

    The user to use inside the container. This parameter maps to User in the docker conainer create command and the --user option to docker run.

    + ///

    The user to use inside the container. This parameter maps to User in the docker container create command and the --user option to docker run.

    ///

    When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security.

    ///
    ///

    You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer.

    @@ -1396,75 +1396,75 @@ impl ContainerDefinitionBuilder { pub fn get_user(&self) -> &::std::option::Option<::std::string::String> { &self.user } - ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker conainer create command and the --workdir option to docker run.

    + ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker container create command and the --workdir option to docker run.

    pub fn working_directory(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.working_directory = ::std::option::Option::Some(input.into()); self } - ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker conainer create command and the --workdir option to docker run.

    + ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker container create command and the --workdir option to docker run.

    pub fn set_working_directory(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.working_directory = input; self } - ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker conainer create command and the --workdir option to docker run.

    + ///

    The working directory to run commands inside the container in. This parameter maps to WorkingDir in the docker container create command and the --workdir option to docker run.

    pub fn get_working_directory(&self) -> &::std::option::Option<::std::string::String> { &self.working_directory } - ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker conainer create command.

    + ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker container create command.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn disable_networking(mut self, input: bool) -> Self { self.disable_networking = ::std::option::Option::Some(input); self } - ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker conainer create command.

    + ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker container create command.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn set_disable_networking(mut self, input: ::std::option::Option) -> Self { self.disable_networking = input; self } - ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker conainer create command.

    + ///

    When this parameter is true, networking is off within the container. This parameter maps to NetworkDisabled in the docker container create command.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn get_disable_networking(&self) -> &::std::option::Option { &self.disable_networking } - ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the the docker conainer create command and the --privileged option to docker run

    + ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the docker container create command and the --privileged option to docker run

    ///

    This parameter is not supported for Windows containers or tasks run on Fargate.

    ///
    pub fn privileged(mut self, input: bool) -> Self { self.privileged = ::std::option::Option::Some(input); self } - ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the the docker conainer create command and the --privileged option to docker run

    + ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the docker container create command and the --privileged option to docker run

    ///

    This parameter is not supported for Windows containers or tasks run on Fargate.

    ///
    pub fn set_privileged(mut self, input: ::std::option::Option) -> Self { self.privileged = input; self } - ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the the docker conainer create command and the --privileged option to docker run

    + ///

    When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the docker container create command and the --privileged option to docker run

    ///

    This parameter is not supported for Windows containers or tasks run on Fargate.

    ///
    pub fn get_privileged(&self) -> &::std::option::Option { &self.privileged } - ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker conainer create command and the --read-only option to docker run.

    + ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker container create command and the --read-only option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn readonly_root_filesystem(mut self, input: bool) -> Self { self.readonly_root_filesystem = ::std::option::Option::Some(input); self } - ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker conainer create command and the --read-only option to docker run.

    + ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker container create command and the --read-only option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn set_readonly_root_filesystem(mut self, input: ::std::option::Option) -> Self { self.readonly_root_filesystem = input; self } - ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker conainer create command and the --read-only option to docker run.

    + ///

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the docker container create command and the --read-only option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn get_readonly_root_filesystem(&self) -> &::std::option::Option { @@ -1474,7 +1474,7 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_dns_servers`](Self::set_dns_servers). /// - ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the the docker conainer create command and the --dns option to docker run.

    + ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the docker container create command and the --dns option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn dns_servers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -1483,14 +1483,14 @@ impl ContainerDefinitionBuilder { self.dns_servers = ::std::option::Option::Some(v); self } - ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the the docker conainer create command and the --dns option to docker run.

    + ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the docker container create command and the --dns option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn set_dns_servers(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.dns_servers = input; self } - ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the the docker conainer create command and the --dns option to docker run.

    + ///

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the docker container create command and the --dns option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn get_dns_servers(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { @@ -1500,7 +1500,7 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_dns_search_domains`](Self::set_dns_search_domains). /// - ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker conainer create command and the --dns-search option to docker run.

    + ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker container create command and the --dns-search option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn dns_search_domains(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -1509,14 +1509,14 @@ impl ContainerDefinitionBuilder { self.dns_search_domains = ::std::option::Option::Some(v); self } - ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker conainer create command and the --dns-search option to docker run.

    + ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker container create command and the --dns-search option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn set_dns_search_domains(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.dns_search_domains = input; self } - ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker conainer create command and the --dns-search option to docker run.

    + ///

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the docker container create command and the --dns-search option to docker run.

    ///

    This parameter is not supported for Windows containers.

    ///
    pub fn get_dns_search_domains(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { @@ -1526,7 +1526,7 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_extra_hosts`](Self::set_extra_hosts). /// - ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker conainer create command and the --add-host option to docker run.

    + ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker container create command and the --add-host option to docker run.

    ///

    This parameter isn't supported for Windows containers or tasks that use the awsvpc network mode.

    ///
    pub fn extra_hosts(mut self, input: crate::types::HostEntry) -> Self { @@ -1535,14 +1535,14 @@ impl ContainerDefinitionBuilder { self.extra_hosts = ::std::option::Option::Some(v); self } - ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker conainer create command and the --add-host option to docker run.

    + ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker container create command and the --add-host option to docker run.

    ///

    This parameter isn't supported for Windows containers or tasks that use the awsvpc network mode.

    ///
    pub fn set_extra_hosts(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.extra_hosts = input; self } - ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker conainer create command and the --add-host option to docker run.

    + ///

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the docker container create command and the --add-host option to docker run.

    ///

    This parameter isn't supported for Windows containers or tasks that use the awsvpc network mode.

    ///
    pub fn get_extra_hosts(&self) -> &::std::option::Option<::std::vec::Vec> { @@ -1555,7 +1555,7 @@ impl ContainerDefinitionBuilder { ///

    A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks using the Fargate launch type.

    ///

    For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems.

    ///

    For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see Using gMSAs for Windows Containers and Using gMSAs for Linux Containers in the Amazon Elastic Container Service Developer Guide.

    - ///

    This parameter maps to SecurityOpt in the docker conainer create command and the --security-opt option to docker run.

    + ///

    This parameter maps to SecurityOpt in the docker container create command and the --security-opt option to docker run.

    ///

    The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    ///
    ///

    Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"

    @@ -1568,7 +1568,7 @@ impl ContainerDefinitionBuilder { ///

    A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks using the Fargate launch type.

    ///

    For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems.

    ///

    For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see Using gMSAs for Windows Containers and Using gMSAs for Linux Containers in the Amazon Elastic Container Service Developer Guide.

    - ///

    This parameter maps to SecurityOpt in the docker conainer create command and the --security-opt option to docker run.

    + ///

    This parameter maps to SecurityOpt in the docker container create command and the --security-opt option to docker run.

    ///

    The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    ///
    ///

    Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"

    @@ -1579,38 +1579,38 @@ impl ContainerDefinitionBuilder { ///

    A list of strings to provide custom configuration for multiple security systems. This field isn't valid for containers in tasks using the Fargate launch type.

    ///

    For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems.

    ///

    For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see Using gMSAs for Windows Containers and Using gMSAs for Linux Containers in the Amazon Elastic Container Service Developer Guide.

    - ///

    This parameter maps to SecurityOpt in the docker conainer create command and the --security-opt option to docker run.

    + ///

    This parameter maps to SecurityOpt in the docker container create command and the --security-opt option to docker run.

    ///

    The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

    ///
    ///

    Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"

    pub fn get_docker_security_options(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.docker_security_options } - ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker conainer create command and the --interactive option to docker run.

    + ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker container create command and the --interactive option to docker run.

    pub fn interactive(mut self, input: bool) -> Self { self.interactive = ::std::option::Option::Some(input); self } - ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker conainer create command and the --interactive option to docker run.

    + ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker container create command and the --interactive option to docker run.

    pub fn set_interactive(mut self, input: ::std::option::Option) -> Self { self.interactive = input; self } - ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker conainer create command and the --interactive option to docker run.

    + ///

    When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the docker container create command and the --interactive option to docker run.

    pub fn get_interactive(&self) -> &::std::option::Option { &self.interactive } - ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in tthe docker conainer create command and the --tty option to docker run.

    + ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in the docker container create command and the --tty option to docker run.

    pub fn pseudo_terminal(mut self, input: bool) -> Self { self.pseudo_terminal = ::std::option::Option::Some(input); self } - ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in tthe docker conainer create command and the --tty option to docker run.

    + ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in the docker container create command and the --tty option to docker run.

    pub fn set_pseudo_terminal(mut self, input: ::std::option::Option) -> Self { self.pseudo_terminal = input; self } - ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in tthe docker conainer create command and the --tty option to docker run.

    + ///

    When this parameter is true, a TTY is allocated. This parameter maps to Tty in the docker container create command and the --tty option to docker run.

    pub fn get_pseudo_terminal(&self) -> &::std::option::Option { &self.pseudo_terminal } @@ -1618,14 +1618,14 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_docker_labels`](Self::set_docker_labels). /// - ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker conainer create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    + ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    pub fn docker_labels(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self { let mut hash_map = self.docker_labels.unwrap_or_default(); hash_map.insert(k.into(), v.into()); self.docker_labels = ::std::option::Option::Some(hash_map); self } - ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker conainer create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    + ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    pub fn set_docker_labels( mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, @@ -1633,7 +1633,7 @@ impl ContainerDefinitionBuilder { self.docker_labels = input; self } - ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker conainer create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    + ///

    A key/value map of labels to add to the container. This parameter maps to Labels in the docker container create command and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    pub fn get_docker_labels(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { &self.docker_labels } @@ -1641,7 +1641,7 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_ulimits`](Self::set_ulimits). /// - ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in tthe docker conainer create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    + ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    ///

    Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535.

    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    ///

    This parameter is not supported for Windows containers.

    @@ -1652,7 +1652,7 @@ impl ContainerDefinitionBuilder { self.ulimits = ::std::option::Option::Some(v); self } - ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in tthe docker conainer create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    + ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    ///

    Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535.

    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    ///

    This parameter is not supported for Windows containers.

    @@ -1661,7 +1661,7 @@ impl ContainerDefinitionBuilder { self.ulimits = input; self } - ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in tthe docker conainer create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    + ///

    A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the docker container create command and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type.

    ///

    Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 65535 and the default hard limit is 65535.

    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    ///

    This parameter is not supported for Windows containers.

    @@ -1670,7 +1670,7 @@ impl ContainerDefinitionBuilder { &self.ulimits } ///

    The log configuration specification for the container.

    - ///

    This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    + ///

    This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    ///

    Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent.

    ///
    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    @@ -1681,7 +1681,7 @@ impl ContainerDefinitionBuilder { self } ///

    The log configuration specification for the container.

    - ///

    This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    + ///

    This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    ///

    Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent.

    ///
    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    @@ -1692,7 +1692,7 @@ impl ContainerDefinitionBuilder { self } ///

    The log configuration specification for the container.

    - ///

    This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    + ///

    This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options).

    ///

    Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent.

    ///
    ///

    This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

    @@ -1701,17 +1701,17 @@ impl ContainerDefinitionBuilder { pub fn get_log_configuration(&self) -> &::std::option::Option { &self.log_configuration } - ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker conainer create command and the HEALTHCHECK parameter of docker run.

    + ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker container create command and the HEALTHCHECK parameter of docker run.

    pub fn health_check(mut self, input: crate::types::HealthCheck) -> Self { self.health_check = ::std::option::Option::Some(input); self } - ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker conainer create command and the HEALTHCHECK parameter of docker run.

    + ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker container create command and the HEALTHCHECK parameter of docker run.

    pub fn set_health_check(mut self, input: ::std::option::Option) -> Self { self.health_check = input; self } - ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker conainer create command and the HEALTHCHECK parameter of docker run.

    + ///

    The container health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the docker container create command and the HEALTHCHECK parameter of docker run.

    pub fn get_health_check(&self) -> &::std::option::Option { &self.health_check } @@ -1719,19 +1719,19 @@ impl ContainerDefinitionBuilder { /// /// To override the contents of this collection use [`set_system_controls`](Self::set_system_controls). /// - ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    + ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    pub fn system_controls(mut self, input: crate::types::SystemControl) -> Self { let mut v = self.system_controls.unwrap_or_default(); v.push(input); self.system_controls = ::std::option::Option::Some(v); self } - ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    + ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    pub fn set_system_controls(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.system_controls = input; self } - ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    + ///

    A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

    pub fn get_system_controls(&self) -> &::std::option::Option<::std::vec::Vec> { &self.system_controls } diff --git a/sdk/ecs/src/types/_deployment_configuration.rs b/sdk/ecs/src/types/_deployment_configuration.rs index 86955b871bd7..fe5bd1cc1d7f 100644 --- a/sdk/ecs/src/types/_deployment_configuration.rs +++ b/sdk/ecs/src/types/_deployment_configuration.rs @@ -10,7 +10,10 @@ pub struct DeploymentConfiguration { ///

    The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If you use the deployment circuit breaker, a service deployment will transition to a failed state and stop launching new tasks. If you use the rollback option, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide

    pub deployment_circuit_breaker: ::std::option::Option, ///

    If a service is using the rolling update (ECS) deployment type, the maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the REPLICA service scheduler and has a desiredCount of four tasks and a maximumPercent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default maximumPercent value for a service using the REPLICA service scheduler is 200%.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the maximum percent value is set to the default value and is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks in the service use the EC2 launch type, the maximum percent value is set to the default value. The maximum percent value is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    pub maximum_percent: ::std::option::Option, ///

    If a service is using the rolling update (ECS) deployment type, the minimumHealthyPercent represents a lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount (rounded up to the nearest integer). This parameter enables you to deploy without using additional cluster capacity. For example, if your service has a desiredCount of four tasks and a minimumHealthyPercent of 50%, the service scheduler may stop two existing tasks to free up cluster capacity before starting two new tasks.

    ///

    For services that do not use a load balancer, the following should be noted:

    @@ -31,7 +34,10 @@ pub struct DeploymentConfiguration { /// ///

    The default value for a replica service for minimumHealthyPercent is 100%. The default minimumHealthyPercent value for a service using the DAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the APIs and 50% for the Amazon Web Services Management Console.

    ///

    The minimum number of healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value and is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value. The minimum healthy percent value is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    pub minimum_healthy_percent: ::std::option::Option, ///

    Information about the CloudWatch alarms.

    pub alarms: ::std::option::Option, @@ -45,7 +51,10 @@ impl DeploymentConfiguration { self.deployment_circuit_breaker.as_ref() } ///

    If a service is using the rolling update (ECS) deployment type, the maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the REPLICA service scheduler and has a desiredCount of four tasks and a maximumPercent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default maximumPercent value for a service using the REPLICA service scheduler is 200%.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the maximum percent value is set to the default value and is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks in the service use the EC2 launch type, the maximum percent value is set to the default value. The maximum percent value is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    pub fn maximum_percent(&self) -> ::std::option::Option { self.maximum_percent } @@ -68,7 +77,10 @@ impl DeploymentConfiguration { /// ///

    The default value for a replica service for minimumHealthyPercent is 100%. The default minimumHealthyPercent value for a service using the DAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the APIs and 50% for the Amazon Web Services Management Console.

    ///

    The minimum number of healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value and is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value. The minimum healthy percent value is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    pub fn minimum_healthy_percent(&self) -> ::std::option::Option { self.minimum_healthy_percent } @@ -118,19 +130,28 @@ impl DeploymentConfigurationBuilder { &self.deployment_circuit_breaker } ///

    If a service is using the rolling update (ECS) deployment type, the maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the REPLICA service scheduler and has a desiredCount of four tasks and a maximumPercent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default maximumPercent value for a service using the REPLICA service scheduler is 200%.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the maximum percent value is set to the default value and is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks in the service use the EC2 launch type, the maximum percent value is set to the default value. The maximum percent value is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    pub fn maximum_percent(mut self, input: i32) -> Self { self.maximum_percent = ::std::option::Option::Some(input); self } ///

    If a service is using the rolling update (ECS) deployment type, the maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the REPLICA service scheduler and has a desiredCount of four tasks and a maximumPercent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default maximumPercent value for a service using the REPLICA service scheduler is 200%.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the maximum percent value is set to the default value and is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks in the service use the EC2 launch type, the maximum percent value is set to the default value. The maximum percent value is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    pub fn set_maximum_percent(mut self, input: ::std::option::Option) -> Self { self.maximum_percent = input; self } ///

    If a service is using the rolling update (ECS) deployment type, the maximumPercent parameter represents an upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the REPLICA service scheduler and has a desiredCount of four tasks and a maximumPercent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default maximumPercent value for a service using the REPLICA service scheduler is 200%.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and tasks that use the EC2 launch type, the maximum percent value is set to the default value and is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types, and tasks in the service use the EC2 launch type, the maximum percent value is set to the default value. The maximum percent value is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom maximumPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

    pub fn get_maximum_percent(&self) -> &::std::option::Option { &self.maximum_percent } @@ -153,7 +174,10 @@ impl DeploymentConfigurationBuilder { /// ///

    The default value for a replica service for minimumHealthyPercent is 100%. The default minimumHealthyPercent value for a service using the DAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the APIs and 50% for the Amazon Web Services Management Console.

    ///

    The minimum number of healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value and is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value. The minimum healthy percent value is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    pub fn minimum_healthy_percent(mut self, input: i32) -> Self { self.minimum_healthy_percent = ::std::option::Option::Some(input); self @@ -177,7 +201,10 @@ impl DeploymentConfigurationBuilder { /// ///

    The default value for a replica service for minimumHealthyPercent is 100%. The default minimumHealthyPercent value for a service using the DAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the APIs and 50% for the Amazon Web Services Management Console.

    ///

    The minimum number of healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value and is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value. The minimum healthy percent value is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    pub fn set_minimum_healthy_percent(mut self, input: ::std::option::Option) -> Self { self.minimum_healthy_percent = input; self @@ -201,7 +228,10 @@ impl DeploymentConfigurationBuilder { /// ///

    The default value for a replica service for minimumHealthyPercent is 100%. The default minimumHealthyPercent value for a service using the DAEMON service schedule is 0% for the CLI, the Amazon Web Services SDKs, and the APIs and 50% for the Amazon Web Services Management Console.

    ///

    The minimum number of healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

    - ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value and is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value. The minimum healthy percent value is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state.

    + ///

    You can't specify a custom minimumHealthyPercent value for a service that uses either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and has tasks that use the EC2 launch type.

    + ///
    + ///

    If a service is using either the blue/green (CODE_DEPLOY) or EXTERNAL deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

    pub fn get_minimum_healthy_percent(&self) -> &::std::option::Option { &self.minimum_healthy_percent } diff --git a/sdk/ecs/src/types/_docker_volume_configuration.rs b/sdk/ecs/src/types/_docker_volume_configuration.rs index 919e50b37008..1b1e6747a8e6 100644 --- a/sdk/ecs/src/types/_docker_volume_configuration.rs +++ b/sdk/ecs/src/types/_docker_volume_configuration.rs @@ -10,11 +10,11 @@ pub struct DockerVolumeConfiguration { ///

    This field is only used if the scope is shared.

    ///
    pub autoprovision: ::std::option::Option, - ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker conainer create command and the xxdriver option to docker volume create.

    + ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the xxdriver option to docker volume create.

    pub driver: ::std::option::Option<::std::string::String>, ///

    A map of Docker driver-specific options passed through. This parameter maps to DriverOpts in the docker create-volume command and the xxopt option to docker volume create.

    pub driver_opts: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, - ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker conainer create command and the xxlabel option to docker volume create.

    + ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker container create command and the xxlabel option to docker volume create.

    pub labels: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, } impl DockerVolumeConfiguration { @@ -28,7 +28,7 @@ impl DockerVolumeConfiguration { pub fn autoprovision(&self) -> ::std::option::Option { self.autoprovision } - ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker conainer create command and the xxdriver option to docker volume create.

    + ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the xxdriver option to docker volume create.

    pub fn driver(&self) -> ::std::option::Option<&str> { self.driver.as_deref() } @@ -36,7 +36,7 @@ impl DockerVolumeConfiguration { pub fn driver_opts(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.driver_opts.as_ref() } - ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker conainer create command and the xxlabel option to docker volume create.

    + ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker container create command and the xxlabel option to docker volume create.

    pub fn labels(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.labels.as_ref() } @@ -93,17 +93,17 @@ impl DockerVolumeConfigurationBuilder { pub fn get_autoprovision(&self) -> &::std::option::Option { &self.autoprovision } - ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker conainer create command and the xxdriver option to docker volume create.

    + ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the xxdriver option to docker volume create.

    pub fn driver(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.driver = ::std::option::Option::Some(input.into()); self } - ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker conainer create command and the xxdriver option to docker volume create.

    + ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the xxdriver option to docker volume create.

    pub fn set_driver(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.driver = input; self } - ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker conainer create command and the xxdriver option to docker volume create.

    + ///

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to Driver in the docker container create command and the xxdriver option to docker volume create.

    pub fn get_driver(&self) -> &::std::option::Option<::std::string::String> { &self.driver } @@ -134,19 +134,19 @@ impl DockerVolumeConfigurationBuilder { /// /// To override the contents of this collection use [`set_labels`](Self::set_labels). /// - ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker conainer create command and the xxlabel option to docker volume create.

    + ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker container create command and the xxlabel option to docker volume create.

    pub fn labels(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self { let mut hash_map = self.labels.unwrap_or_default(); hash_map.insert(k.into(), v.into()); self.labels = ::std::option::Option::Some(hash_map); self } - ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker conainer create command and the xxlabel option to docker volume create.

    + ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker container create command and the xxlabel option to docker volume create.

    pub fn set_labels(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self { self.labels = input; self } - ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker conainer create command and the xxlabel option to docker volume create.

    + ///

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the docker container create command and the xxlabel option to docker volume create.

    pub fn get_labels(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { &self.labels } diff --git a/sdk/ecs/src/types/_health_check.rs b/sdk/ecs/src/types/_health_check.rs index 2efd7d91f9e6..2256ce6ad9dd 100644 --- a/sdk/ecs/src/types/_health_check.rs +++ b/sdk/ecs/src/types/_health_check.rs @@ -70,7 +70,7 @@ pub struct HealthCheck { ///

    \[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" \]

    ///

    You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

    ///

    CMD-SHELL, curl -f http://localhost/ || exit 1

    - ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in tthe docker conainer create command

    + ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command

    pub command: ::std::vec::Vec<::std::string::String>, ///

    The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.

    pub interval: ::std::option::Option, @@ -89,7 +89,7 @@ impl HealthCheck { ///

    \[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" \]

    ///

    You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

    ///

    CMD-SHELL, curl -f http://localhost/ || exit 1

    - ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in tthe docker conainer create command

    + ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command

    pub fn command(&self) -> &[::std::string::String] { use std::ops::Deref; self.command.deref() @@ -140,7 +140,7 @@ impl HealthCheckBuilder { ///

    \[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" \]

    ///

    You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

    ///

    CMD-SHELL, curl -f http://localhost/ || exit 1

    - ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in tthe docker conainer create command

    + ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command

    pub fn command(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.command.unwrap_or_default(); v.push(input.into()); @@ -152,7 +152,7 @@ impl HealthCheckBuilder { ///

    \[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" \]

    ///

    You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

    ///

    CMD-SHELL, curl -f http://localhost/ || exit 1

    - ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in tthe docker conainer create command

    + ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command

    pub fn set_command(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.command = input; self @@ -162,7 +162,7 @@ impl HealthCheckBuilder { ///

    \[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" \]

    ///

    You don't include the double quotes and brackets when you use the Amazon Web Services Management Console.

    ///

    CMD-SHELL, curl -f http://localhost/ || exit 1

    - ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in tthe docker conainer create command

    + ///

    An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command

    pub fn get_command(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.command } diff --git a/sdk/ecs/src/types/_kernel_capabilities.rs b/sdk/ecs/src/types/_kernel_capabilities.rs index 52b036917035..6b83d1683374 100644 --- a/sdk/ecs/src/types/_kernel_capabilities.rs +++ b/sdk/ecs/src/types/_kernel_capabilities.rs @@ -4,17 +4,17 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct KernelCapabilities { - ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker conainer create command and the --cap-add option to docker run.

    + ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker container create command and the --cap-add option to docker run.

    ///

    Tasks launched on Fargate only support adding the SYS_PTRACE kernel capability.

    ///
    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    pub add: ::std::option::Option<::std::vec::Vec<::std::string::String>>, - ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker conainer create command and the --cap-drop option to docker run.

    + ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker container create command and the --cap-drop option to docker run.

    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    pub drop: ::std::option::Option<::std::vec::Vec<::std::string::String>>, } impl KernelCapabilities { - ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker conainer create command and the --cap-add option to docker run.

    + ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker container create command and the --cap-add option to docker run.

    ///

    Tasks launched on Fargate only support adding the SYS_PTRACE kernel capability.

    ///
    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    @@ -23,7 +23,7 @@ impl KernelCapabilities { pub fn add(&self) -> &[::std::string::String] { self.add.as_deref().unwrap_or_default() } - ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker conainer create command and the --cap-drop option to docker run.

    + ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker container create command and the --cap-drop option to docker run.

    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.drop.is_none()`. @@ -50,7 +50,7 @@ impl KernelCapabilitiesBuilder { /// /// To override the contents of this collection use [`set_add`](Self::set_add). /// - ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker conainer create command and the --cap-add option to docker run.

    + ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker container create command and the --cap-add option to docker run.

    ///

    Tasks launched on Fargate only support adding the SYS_PTRACE kernel capability.

    ///
    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    @@ -60,7 +60,7 @@ impl KernelCapabilitiesBuilder { self.add = ::std::option::Option::Some(v); self } - ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker conainer create command and the --cap-add option to docker run.

    + ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker container create command and the --cap-add option to docker run.

    ///

    Tasks launched on Fargate only support adding the SYS_PTRACE kernel capability.

    ///
    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    @@ -68,7 +68,7 @@ impl KernelCapabilitiesBuilder { self.add = input; self } - ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker conainer create command and the --cap-add option to docker run.

    + ///

    The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the docker container create command and the --cap-add option to docker run.

    ///

    Tasks launched on Fargate only support adding the SYS_PTRACE kernel capability.

    ///
    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    @@ -79,7 +79,7 @@ impl KernelCapabilitiesBuilder { /// /// To override the contents of this collection use [`set_drop`](Self::set_drop). /// - ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker conainer create command and the --cap-drop option to docker run.

    + ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker container create command and the --cap-drop option to docker run.

    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    pub fn drop(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.drop.unwrap_or_default(); @@ -87,13 +87,13 @@ impl KernelCapabilitiesBuilder { self.drop = ::std::option::Option::Some(v); self } - ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker conainer create command and the --cap-drop option to docker run.

    + ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker container create command and the --cap-drop option to docker run.

    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    pub fn set_drop(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.drop = input; self } - ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker conainer create command and the --cap-drop option to docker run.

    + ///

    The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the docker container create command and the --cap-drop option to docker run.

    ///

    Valid values: "ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"

    pub fn get_drop(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.drop diff --git a/sdk/ecs/src/types/_linux_parameters.rs b/sdk/ecs/src/types/_linux_parameters.rs index f7436f3e9257..0a4f3800b0d2 100644 --- a/sdk/ecs/src/types/_linux_parameters.rs +++ b/sdk/ecs/src/types/_linux_parameters.rs @@ -8,7 +8,7 @@ pub struct LinuxParameters { ///

    For tasks that use the Fargate launch type, capabilities is supported for all platform versions but the add parameter is only supported if using platform version 1.4.0 or later.

    ///
    pub capabilities: ::std::option::Option, - ///

    Any host devices to expose to the container. This parameter maps to Devices in tthe docker conainer create command and the --device option to docker run.

    + ///

    Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run.

    ///

    If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.

    ///
    pub devices: ::std::option::Option<::std::vec::Vec>, @@ -41,7 +41,7 @@ impl LinuxParameters { pub fn capabilities(&self) -> ::std::option::Option<&crate::types::KernelCapabilities> { self.capabilities.as_ref() } - ///

    Any host devices to expose to the container. This parameter maps to Devices in tthe docker conainer create command and the --device option to docker run.

    + ///

    Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run.

    ///

    If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.

    ///
    /// @@ -127,7 +127,7 @@ impl LinuxParametersBuilder { /// /// To override the contents of this collection use [`set_devices`](Self::set_devices). /// - ///

    Any host devices to expose to the container. This parameter maps to Devices in tthe docker conainer create command and the --device option to docker run.

    + ///

    Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run.

    ///

    If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.

    ///
    pub fn devices(mut self, input: crate::types::Device) -> Self { @@ -136,14 +136,14 @@ impl LinuxParametersBuilder { self.devices = ::std::option::Option::Some(v); self } - ///

    Any host devices to expose to the container. This parameter maps to Devices in tthe docker conainer create command and the --device option to docker run.

    + ///

    Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run.

    ///

    If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.

    ///
    pub fn set_devices(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.devices = input; self } - ///

    Any host devices to expose to the container. This parameter maps to Devices in tthe docker conainer create command and the --device option to docker run.

    + ///

    Any host devices to expose to the container. This parameter maps to Devices in the docker container create command and the --device option to docker run.

    ///

    If you're using tasks that use the Fargate launch type, the devices parameter isn't supported.

    ///
    pub fn get_devices(&self) -> &::std::option::Option<::std::vec::Vec> { diff --git a/sdk/ecs/src/types/_log_configuration.rs b/sdk/ecs/src/types/_log_configuration.rs index a0aea1f0868d..887739d7f33e 100644 --- a/sdk/ecs/src/types/_log_configuration.rs +++ b/sdk/ecs/src/types/_log_configuration.rs @@ -1,6 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

    The log configuration for the container. This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run.

    +///

    The log configuration for the container. This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run.

    ///

    By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.

    ///

    Understand the following when specifying a log configuration for your containers.

    ///
      diff --git a/sdk/ecs/src/types/_port_mapping.rs b/sdk/ecs/src/types/_port_mapping.rs index cf39e88fdd31..e0ca44727c03 100644 --- a/sdk/ecs/src/types/_port_mapping.rs +++ b/sdk/ecs/src/types/_port_mapping.rs @@ -2,7 +2,7 @@ ///

      Port mappings allow containers to access ports on the host container instance to send or receive traffic. Port mappings are specified as part of the container definition.

      ///

      If you use containers in a task with the awsvpc or host network mode, specify the exposed ports using containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

      -///

      Most fields of this parameter (containerPort, hostPort, protocol) maps to PortBindings in the docker conainer create command and the --publish option to docker run. If the network mode of a task definition is set to host, host ports must either be undefined or match the container port in the port mapping.

      +///

      Most fields of this parameter (containerPort, hostPort, protocol) maps to PortBindings in the docker container create command and the --publish option to docker run. If the network mode of a task definition is set to host, host ports must either be undefined or match the container port in the port mapping.

      ///

      You can't expose the same container port for multiple protocols. If you attempt this, an error is returned.

      ///
      ///

      After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the networkBindings section of DescribeTasks API responses.

      diff --git a/sdk/ecs/src/types/_service_connect_configuration.rs b/sdk/ecs/src/types/_service_connect_configuration.rs index 60fb892cde8f..deff274086e3 100644 --- a/sdk/ecs/src/types/_service_connect_configuration.rs +++ b/sdk/ecs/src/types/_service_connect_configuration.rs @@ -13,7 +13,7 @@ pub struct ServiceConnectConfiguration { ///

      This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.

      ///

      An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.

      pub services: ::std::option::Option<::std::vec::Vec>, - ///

      The log configuration for the container. This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run.

      + ///

      The log configuration for the container. This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run.

      ///

      By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.

      ///

      Understand the following when specifying a log configuration for your containers.

      ///
        @@ -47,7 +47,7 @@ impl ServiceConnectConfiguration { pub fn services(&self) -> &[crate::types::ServiceConnectService] { self.services.as_deref().unwrap_or_default() } - ///

        The log configuration for the container. This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run.

        + ///

        The log configuration for the container. This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run.

        ///

        By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.

        ///

        Understand the following when specifying a log configuration for your containers.

        ///
          @@ -138,7 +138,7 @@ impl ServiceConnectConfigurationBuilder { pub fn get_services(&self) -> &::std::option::Option<::std::vec::Vec> { &self.services } - ///

          The log configuration for the container. This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run.

          + ///

          The log configuration for the container. This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run.

          ///

          By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.

          ///

          Understand the following when specifying a log configuration for your containers.

          ///
            @@ -157,7 +157,7 @@ impl ServiceConnectConfigurationBuilder { self.log_configuration = ::std::option::Option::Some(input); self } - ///

            The log configuration for the container. This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run.

            + ///

            The log configuration for the container. This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run.

            ///

            By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.

            ///

            Understand the following when specifying a log configuration for your containers.

            ///
              @@ -176,7 +176,7 @@ impl ServiceConnectConfigurationBuilder { self.log_configuration = input; self } - ///

              The log configuration for the container. This parameter maps to LogConfig in the docker conainer create command and the --log-driver option to docker run.

              + ///

              The log configuration for the container. This parameter maps to LogConfig in the docker container create command and the --log-driver option to docker run.

              ///

              By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.

              ///

              Understand the following when specifying a log configuration for your containers.

              ///
                diff --git a/sdk/ecs/src/types/_system_control.rs b/sdk/ecs/src/types/_system_control.rs index 65e9935902ff..ab6f648ea6f1 100644 --- a/sdk/ecs/src/types/_system_control.rs +++ b/sdk/ecs/src/types/_system_control.rs @@ -1,6 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

                A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in tthe docker conainer create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

                +///

                A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the docker container create command and the --sysctl option to docker run. For example, you can configure net.ipv4.tcp_keepalive_time setting to maintain longer lived connections.

                ///

                We don't recommend that you specify network-related systemControls parameters for multiple containers in a single task that also uses either the awsvpc or host network mode. Doing this has the following disadvantages:

                ///
                  ///
                • diff --git a/sdk/ecs/src/types/_task_definition.rs b/sdk/ecs/src/types/_task_definition.rs index fd72c5c4ec26..7bcc989140c2 100644 --- a/sdk/ecs/src/types/_task_definition.rs +++ b/sdk/ecs/src/types/_task_definition.rs @@ -39,7 +39,7 @@ pub struct TaskDefinition { ///

                  This parameter isn't supported for tasks run on Fargate.

                  /// pub placement_constraints: ::std::option::Option<::std::vec::Vec>, - ///

                  The task launch types the task definition validated against during task definition registration. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  + ///

                  Amazon ECS validates the task definition parameters with those supported by the launch type. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  pub compatibilities: ::std::option::Option<::std::vec::Vec>, ///

                  The operating system that your task definitions are running on. A platform family is specified only for tasks using the Fargate launch type.

                  ///

                  When you specify a task in a service, this value must match the runtimePlatform value of the service.

                  @@ -192,7 +192,7 @@ impl TaskDefinition { pub fn placement_constraints(&self) -> &[crate::types::TaskDefinitionPlacementConstraint] { self.placement_constraints.as_deref().unwrap_or_default() } - ///

                  The task launch types the task definition validated against during task definition registration. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  + ///

                  Amazon ECS validates the task definition parameters with those supported by the launch type. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.compatibilities.is_none()`. pub fn compatibilities(&self) -> &[crate::types::Compatibility] { @@ -572,19 +572,19 @@ impl TaskDefinitionBuilder { /// /// To override the contents of this collection use [`set_compatibilities`](Self::set_compatibilities). /// - ///

                  The task launch types the task definition validated against during task definition registration. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  + ///

                  Amazon ECS validates the task definition parameters with those supported by the launch type. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  pub fn compatibilities(mut self, input: crate::types::Compatibility) -> Self { let mut v = self.compatibilities.unwrap_or_default(); v.push(input); self.compatibilities = ::std::option::Option::Some(v); self } - ///

                  The task launch types the task definition validated against during task definition registration. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  + ///

                  Amazon ECS validates the task definition parameters with those supported by the launch type. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  pub fn set_compatibilities(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.compatibilities = input; self } - ///

                  The task launch types the task definition validated against during task definition registration. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  + ///

                  Amazon ECS validates the task definition parameters with those supported by the launch type. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.

                  pub fn get_compatibilities(&self) -> &::std::option::Option<::std::vec::Vec> { &self.compatibilities } diff --git a/sdk/ecs/src/types/_ulimit.rs b/sdk/ecs/src/types/_ulimit.rs index 79727df1f969..94b8f31805c1 100644 --- a/sdk/ecs/src/types/_ulimit.rs +++ b/sdk/ecs/src/types/_ulimit.rs @@ -8,9 +8,9 @@ pub struct Ulimit { ///

                  The type of the ulimit.

                  pub name: crate::types::UlimitName, - ///

                  The soft limit for the ulimit type.

                  + ///

                  The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub soft_limit: i32, - ///

                  The hard limit for the ulimit type.

                  + ///

                  The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub hard_limit: i32, } impl Ulimit { @@ -18,11 +18,11 @@ impl Ulimit { pub fn name(&self) -> &crate::types::UlimitName { &self.name } - ///

                  The soft limit for the ulimit type.

                  + ///

                  The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub fn soft_limit(&self) -> i32 { self.soft_limit } - ///

                  The hard limit for the ulimit type.

                  + ///

                  The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub fn hard_limit(&self) -> i32 { self.hard_limit } @@ -58,33 +58,33 @@ impl UlimitBuilder { pub fn get_name(&self) -> &::std::option::Option { &self.name } - ///

                  The soft limit for the ulimit type.

                  + ///

                  The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  /// This field is required. pub fn soft_limit(mut self, input: i32) -> Self { self.soft_limit = ::std::option::Option::Some(input); self } - ///

                  The soft limit for the ulimit type.

                  + ///

                  The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub fn set_soft_limit(mut self, input: ::std::option::Option) -> Self { self.soft_limit = input; self } - ///

                  The soft limit for the ulimit type.

                  + ///

                  The soft limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub fn get_soft_limit(&self) -> &::std::option::Option { &self.soft_limit } - ///

                  The hard limit for the ulimit type.

                  + ///

                  The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  /// This field is required. pub fn hard_limit(mut self, input: i32) -> Self { self.hard_limit = ::std::option::Option::Some(input); self } - ///

                  The hard limit for the ulimit type.

                  + ///

                  The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub fn set_hard_limit(mut self, input: ::std::option::Option) -> Self { self.hard_limit = input; self } - ///

                  The hard limit for the ulimit type.

                  + ///

                  The hard limit for the ulimit type. The value can be specified in bytes, seconds, or as a count, depending on the type of the ulimit.

                  pub fn get_hard_limit(&self) -> &::std::option::Option { &self.hard_limit } diff --git a/sdk/lambda/src/client.rs b/sdk/lambda/src/client.rs index dfbf1241e88d..51098c98dabc 100644 --- a/sdk/lambda/src/client.rs +++ b/sdk/lambda/src/client.rs @@ -251,6 +251,8 @@ mod delete_layer_version; mod delete_provisioned_concurrency_config; +mod delete_resource_policy; + mod get_account_settings; mod get_alias; @@ -283,6 +285,10 @@ mod get_policy; mod get_provisioned_concurrency_config; +mod get_public_access_block_config; + +mod get_resource_policy; + mod get_runtime_management_config; mod invoke; @@ -329,6 +335,10 @@ mod put_function_recursion_config; mod put_provisioned_concurrency_config; +mod put_public_access_block_config; + +mod put_resource_policy; + mod put_runtime_management_config; mod remove_layer_version_permission; diff --git a/sdk/lambda/src/client/delete_resource_policy.rs b/sdk/lambda/src/client/delete_resource_policy.rs new file mode 100644 index 000000000000..a968179fedb1 --- /dev/null +++ b/sdk/lambda/src/client/delete_resource_policy.rs @@ -0,0 +1,13 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`DeleteResourcePolicy`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::set_resource_arn):
                  required: **true**

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.


                  + /// - [`revision_id(impl Into)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::revision_id) / [`set_revision_id(Option)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::set_revision_id):
                  required: **false**

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.


                  + /// - On success, responds with [`DeleteResourcePolicyOutput`](crate::operation::delete_resource_policy::DeleteResourcePolicyOutput) + /// - On failure, responds with [`SdkError`](crate::operation::delete_resource_policy::DeleteResourcePolicyError) + pub fn delete_resource_policy(&self) -> crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder { + crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/lambda/src/client/get_public_access_block_config.rs b/sdk/lambda/src/client/get_public_access_block_config.rs new file mode 100644 index 000000000000..493401194020 --- /dev/null +++ b/sdk/lambda/src/client/get_public_access_block_config.rs @@ -0,0 +1,15 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`GetPublicAccessBlockConfig`](crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigFluentBuilder::set_resource_arn):
                  required: **true**

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.


                  + /// - On success, responds with [`GetPublicAccessBlockConfigOutput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput) with field(s): + /// - [`public_access_block_config(Option)`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput::public_access_block_config):

                  The public-access settings configured for the function you specified

                  + /// - On failure, responds with [`SdkError`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError) + pub fn get_public_access_block_config( + &self, + ) -> crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigFluentBuilder { + crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/lambda/src/client/get_resource_policy.rs b/sdk/lambda/src/client/get_resource_policy.rs new file mode 100644 index 000000000000..650e1025697a --- /dev/null +++ b/sdk/lambda/src/client/get_resource_policy.rs @@ -0,0 +1,14 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`GetResourcePolicy`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::set_resource_arn):
                  required: **true**

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.


                  + /// - On success, responds with [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput) with field(s): + /// - [`policy(Option)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy):

                  The resource-based policy attached to the function you specified.

                  + /// - [`revision_id(Option)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::revision_id):

                  The revision ID of the policy.

                  + /// - On failure, responds with [`SdkError`](crate::operation::get_resource_policy::GetResourcePolicyError) + pub fn get_resource_policy(&self) -> crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder { + crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/lambda/src/client/put_public_access_block_config.rs b/sdk/lambda/src/client/put_public_access_block_config.rs new file mode 100644 index 000000000000..172558f2aec6 --- /dev/null +++ b/sdk/lambda/src/client/put_public_access_block_config.rs @@ -0,0 +1,16 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`PutPublicAccessBlockConfig`](crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder::set_resource_arn):
                  required: **true**

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.


                  + /// - [`public_access_block_config(PublicAccessBlockConfig)`](crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder::public_access_block_config) / [`set_public_access_block_config(Option)`](crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder::set_public_access_block_config):
                  required: **true**

                  An object defining the public-access settings you want to apply.

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.


                  + /// - On success, responds with [`PutPublicAccessBlockConfigOutput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput) with field(s): + /// - [`public_access_block_config(Option)`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput::public_access_block_config):

                  The public-access settings Lambda applied to your function.

                  + /// - On failure, responds with [`SdkError`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError) + pub fn put_public_access_block_config( + &self, + ) -> crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder { + crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/lambda/src/client/put_resource_policy.rs b/sdk/lambda/src/client/put_resource_policy.rs new file mode 100644 index 000000000000..c92b23b1b2c1 --- /dev/null +++ b/sdk/lambda/src/client/put_resource_policy.rs @@ -0,0 +1,16 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`PutResourcePolicy`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::set_resource_arn):
                  required: **true**

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.


                  + /// - [`policy(impl Into)`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::policy) / [`set_policy(Option)`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::set_policy):
                  required: **true**

                  The JSON resource-based policy you want to add to your function.

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.


                  + /// - [`revision_id(impl Into)`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::revision_id) / [`set_revision_id(Option)`](crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::set_revision_id):
                  required: **false**

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.


                  + /// - On success, responds with [`PutResourcePolicyOutput`](crate::operation::put_resource_policy::PutResourcePolicyOutput) with field(s): + /// - [`policy(Option)`](crate::operation::put_resource_policy::PutResourcePolicyOutput::policy):

                  The policy Lambda added to your function.

                  + /// - [`revision_id(Option)`](crate::operation::put_resource_policy::PutResourcePolicyOutput::revision_id):

                  The revision ID of the policy Lambda added to your function.

                  + /// - On failure, responds with [`SdkError`](crate::operation::put_resource_policy::PutResourcePolicyError) + pub fn put_resource_policy(&self) -> crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder { + crate::operation::put_resource_policy::builders::PutResourcePolicyFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/lambda/src/error_meta.rs b/sdk/lambda/src/error_meta.rs index 74491d090cb7..432159c943b9 100644 --- a/sdk/lambda/src/error_meta.rs +++ b/sdk/lambda/src/error_meta.rs @@ -59,6 +59,8 @@ pub enum Error { PreconditionFailedException(crate::types::error::PreconditionFailedException), ///

                  The specified configuration does not exist.

                  ProvisionedConcurrencyConfigNotFoundException(crate::types::error::ProvisionedConcurrencyConfigNotFoundException), + ///

                  Lambda prevented your policy from being created because it would grant public access to your function. If you intended to create a public policy, use the PutPublicAccessBlockConfig API action to configure your function's public-access settings to allow public policies.

                  + PublicPolicyException(crate::types::error::PublicPolicyException), ///

                  Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.

                  RecursiveInvocationException(crate::types::error::RecursiveInvocationException), ///

                  The request payload exceeded the Invoke request body JSON input quota. For more information, see Lambda quotas.

                  @@ -122,6 +124,7 @@ impl ::std::fmt::Display for Error { Error::PolicyLengthExceededException(inner) => inner.fmt(f), Error::PreconditionFailedException(inner) => inner.fmt(f), Error::ProvisionedConcurrencyConfigNotFoundException(inner) => inner.fmt(f), + Error::PublicPolicyException(inner) => inner.fmt(f), Error::RecursiveInvocationException(inner) => inner.fmt(f), Error::RequestTooLargeException(inner) => inner.fmt(f), Error::ResourceConflictException(inner) => inner.fmt(f), @@ -181,6 +184,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error { Self::PolicyLengthExceededException(inner) => inner.meta(), Self::PreconditionFailedException(inner) => inner.meta(), Self::ProvisionedConcurrencyConfigNotFoundException(inner) => inner.meta(), + Self::PublicPolicyException(inner) => inner.meta(), Self::RecursiveInvocationException(inner) => inner.meta(), Self::RequestTooLargeException(inner) => inner.meta(), Self::ResourceConflictException(inner) => inner.meta(), @@ -806,6 +810,43 @@ impl From From<::aws_smithy_runtime_api::client::result::SdkError> for Error +where + R: Send + Sync + std::fmt::Debug + 'static, +{ + fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self { + match err { + ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()), + _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled { + meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(), + source: err.into(), + }), + } + } +} +impl From for Error { + fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self { + match err { + crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::operation::delete_resource_policy::DeleteResourcePolicyError::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) + } + crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) + } + crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::operation::delete_resource_policy::DeleteResourcePolicyError::ServiceException(inner) => Error::ServiceException(inner), + crate::operation::delete_resource_policy::DeleteResourcePolicyError::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) + } + crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error where R: Send + Sync + std::fmt::Debug + 'static, @@ -1315,6 +1356,71 @@ impl From From<::aws_smithy_runtime_api::client::result::SdkError> + for Error +where + R: Send + Sync + std::fmt::Debug + 'static, +{ + fn from( + err: ::aws_smithy_runtime_api::client::result::SdkError, + ) -> Self { + match err { + ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()), + _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled { + meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(), + source: err.into(), + }), + } + } +} +impl From for Error { + fn from(err: crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError) -> Self { + match err { + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::ServiceException(inner) => { + Error::ServiceException(inner) + } + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) + } + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} +impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error +where + R: Send + Sync + std::fmt::Debug + 'static, +{ + fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self { + match err { + ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()), + _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled { + meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(), + source: err.into(), + }), + } + } +} +impl From for Error { + fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self { + match err { + crate::operation::get_resource_policy::GetResourcePolicyError::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::operation::get_resource_policy::GetResourcePolicyError::ServiceException(inner) => Error::ServiceException(inner), + crate::operation::get_resource_policy::GetResourcePolicyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error where @@ -2205,6 +2311,84 @@ impl From From<::aws_smithy_runtime_api::client::result::SdkError> + for Error +where + R: Send + Sync + std::fmt::Debug + 'static, +{ + fn from( + err: ::aws_smithy_runtime_api::client::result::SdkError, + ) -> Self { + match err { + ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()), + _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled { + meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(), + source: err.into(), + }), + } + } +} +impl From for Error { + fn from(err: crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError) -> Self { + match err { + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) + } + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::ServiceException(inner) => { + Error::ServiceException(inner) + } + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::TooManyRequestsException(inner) => { + Error::TooManyRequestsException(inner) + } + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} +impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error +where + R: Send + Sync + std::fmt::Debug + 'static, +{ + fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self { + match err { + ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()), + _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled { + meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(), + source: err.into(), + }), + } + } +} +impl From for Error { + fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self { + match err { + crate::operation::put_resource_policy::PutResourcePolicyError::InvalidParameterValueException(inner) => { + Error::InvalidParameterValueException(inner) + } + crate::operation::put_resource_policy::PutResourcePolicyError::PolicyLengthExceededException(inner) => { + Error::PolicyLengthExceededException(inner) + } + crate::operation::put_resource_policy::PutResourcePolicyError::PreconditionFailedException(inner) => { + Error::PreconditionFailedException(inner) + } + crate::operation::put_resource_policy::PutResourcePolicyError::PublicPolicyException(inner) => Error::PublicPolicyException(inner), + crate::operation::put_resource_policy::PutResourcePolicyError::ResourceConflictException(inner) => { + Error::ResourceConflictException(inner) + } + crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::operation::put_resource_policy::PutResourcePolicyError::ServiceException(inner) => Error::ServiceException(inner), + crate::operation::put_resource_policy::PutResourcePolicyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner), + crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error where @@ -2714,6 +2898,7 @@ impl ::std::error::Error for Error { Error::PolicyLengthExceededException(inner) => inner.source(), Error::PreconditionFailedException(inner) => inner.source(), Error::ProvisionedConcurrencyConfigNotFoundException(inner) => inner.source(), + Error::PublicPolicyException(inner) => inner.source(), Error::RecursiveInvocationException(inner) => inner.source(), Error::RequestTooLargeException(inner) => inner.source(), Error::ResourceConflictException(inner) => inner.source(), @@ -2759,6 +2944,7 @@ impl ::aws_types::request_id::RequestId for Error { Self::PolicyLengthExceededException(e) => e.request_id(), Self::PreconditionFailedException(e) => e.request_id(), Self::ProvisionedConcurrencyConfigNotFoundException(e) => e.request_id(), + Self::PublicPolicyException(e) => e.request_id(), Self::RecursiveInvocationException(e) => e.request_id(), Self::RequestTooLargeException(e) => e.request_id(), Self::ResourceConflictException(e) => e.request_id(), diff --git a/sdk/lambda/src/operation.rs b/sdk/lambda/src/operation.rs index 2b1f23d0fe95..71a01dd02cc0 100644 --- a/sdk/lambda/src/operation.rs +++ b/sdk/lambda/src/operation.rs @@ -52,6 +52,9 @@ pub mod delete_layer_version; /// Types for the `DeleteProvisionedConcurrencyConfig` operation. pub mod delete_provisioned_concurrency_config; +/// Types for the `DeleteResourcePolicy` operation. +pub mod delete_resource_policy; + /// Types for the `GetAccountSettings` operation. pub mod get_account_settings; @@ -100,6 +103,12 @@ pub mod get_policy; /// Types for the `GetProvisionedConcurrencyConfig` operation. pub mod get_provisioned_concurrency_config; +/// Types for the `GetPublicAccessBlockConfig` operation. +pub mod get_public_access_block_config; + +/// Types for the `GetResourcePolicy` operation. +pub mod get_resource_policy; + /// Types for the `GetRuntimeManagementConfig` operation. pub mod get_runtime_management_config; @@ -169,6 +178,12 @@ pub mod put_function_recursion_config; /// Types for the `PutProvisionedConcurrencyConfig` operation. pub mod put_provisioned_concurrency_config; +/// Types for the `PutPublicAccessBlockConfig` operation. +pub mod put_public_access_block_config; + +/// Types for the `PutResourcePolicy` operation. +pub mod put_resource_policy; + /// Types for the `PutRuntimeManagementConfig` operation. pub mod put_runtime_management_config; diff --git a/sdk/lambda/src/operation/delete_resource_policy.rs b/sdk/lambda/src/operation/delete_resource_policy.rs new file mode 100644 index 000000000000..a2b1b5e5310b --- /dev/null +++ b/sdk/lambda/src/operation/delete_resource_policy.rs @@ -0,0 +1,429 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `DeleteResourcePolicy`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct DeleteResourcePolicy; +impl DeleteResourcePolicy { + /// Creates a new `DeleteResourcePolicy` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::delete_resource_policy::DeleteResourcePolicyInput, + ) -> ::std::result::Result< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >| { + err.map_service_error(|err| { + err.downcast::() + .expect("correct error type") + }) + }; + let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None) + .await + .map_err(map_err)?; + let output = context.finalize().map_err(map_err)?; + ::std::result::Result::Ok( + output + .downcast::() + .expect("correct output type"), + ) + } + + pub(crate) async fn orchestrate_with_stop_point( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::delete_resource_policy::DeleteResourcePolicyInput, + stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint, + ) -> ::std::result::Result< + ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, + ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input); + ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("lambda", "DeleteResourcePolicy", input, runtime_plugins, stop_point).await + } + + pub(crate) fn operation_runtime_plugins( + client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + client_config: &crate::config::Config, + config_override: ::std::option::Option, + ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins { + let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new()); + runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![ + ::aws_runtime::auth::sigv4::SCHEME_ID, + ])); + if let ::std::option::Option::Some(config_override) = config_override { + for plugin in config_override.runtime_plugins.iter().cloned() { + runtime_plugins = runtime_plugins.with_operation_plugin(plugin); + } + runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new( + config_override, + client_config.config.clone(), + &client_config.runtime_components, + )); + } + runtime_plugins + } +} +impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for DeleteResourcePolicy { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("DeleteResourcePolicy"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + DeleteResourcePolicyRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + DeleteResourcePolicyResponseDeserializer, + )); + + cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new( + ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(), + )); + + cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new( + "DeleteResourcePolicy", + "lambda", + )); + let mut signing_options = ::aws_runtime::auth::SigningOptions::default(); + signing_options.double_uri_encode = true; + signing_options.content_sha256_header = false; + signing_options.normalize_uri_path = true; + signing_options.payload_override = None; + + cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig { + signing_options, + ..::std::default::Default::default() + }); + + ::std::option::Option::Some(cfg.freeze()) + } + + fn runtime_components( + &self, + _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder, + ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> { + #[allow(unused_mut)] + let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("DeleteResourcePolicy") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(DeleteResourcePolicyEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct DeleteResourcePolicyResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteResourcePolicyResponseDeserializer { + fn deserialize_nonstreaming( + &self, + response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError { + let (success, status) = (response.status().is_success(), response.status().as_u16()); + let headers = response.headers(); + let body = response.body().bytes().expect("body loaded"); + #[allow(unused_mut)] + let mut force_error = false; + ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response)); + let parse_result = if !success && status != 204 || force_error { + crate::protocol_serde::shape_delete_resource_policy::de_delete_resource_policy_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_delete_resource_policy::de_delete_resource_policy_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct DeleteResourcePolicyRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteResourcePolicyRequestSerializer { + #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)] + fn serialize_input( + &self, + input: ::aws_smithy_runtime_api::client::interceptors::context::Input, + _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> { + let input = input + .downcast::() + .expect("correct type"); + let _header_serialization_settings = _cfg + .load::() + .cloned() + .unwrap_or_default(); + let mut request_builder = { + fn uri_base( + _input: &crate::operation::delete_resource_policy::DeleteResourcePolicyInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + let input_1 = &_input.resource_arn; + let input_1 = input_1 + .as_ref() + .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("resource_arn", "cannot be empty or unset"))?; + let resource_arn = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default); + if resource_arn.is_empty() { + return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field( + "resource_arn", + "cannot be empty or unset", + )); + } + ::std::write!(output, "/2024-09-16/resource-policy/{ResourceArn}", ResourceArn = resource_arn).expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + fn uri_query( + _input: &crate::operation::delete_resource_policy::DeleteResourcePolicyInput, + mut output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + let mut query = ::aws_smithy_http::query::Writer::new(output); + if let ::std::option::Option::Some(inner_2) = &_input.revision_id { + { + query.push_kv("RevisionId", &::aws_smithy_http::query::fmt_string(inner_2)); + } + } + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::delete_resource_policy::DeleteResourcePolicyInput, + builder: ::http::request::Builder, + ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> { + let mut uri = ::std::string::String::new(); + uri_base(input, &mut uri)?; + uri_query(input, &mut uri)?; + ::std::result::Result::Ok(builder.method("DELETE").uri(uri)) + } + let mut builder = update_http_builder(&input, ::http::request::Builder::new())?; + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(""); + + ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap()) + } +} +#[derive(Debug)] +struct DeleteResourcePolicyEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteResourcePolicyEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "DeleteResourcePolicyEndpointParamsInterceptor" + } + + fn read_before_execution( + &self, + context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef< + '_, + ::aws_smithy_runtime_api::client::interceptors::context::Input, + ::aws_smithy_runtime_api::client::interceptors::context::Output, + ::aws_smithy_runtime_api::client::interceptors::context::Error, + >, + cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> { + let _input = context + .input() + .downcast_ref::() + .ok_or("failed to downcast to DeleteResourcePolicyInput")?; + + let params = crate::config::endpoint::Params::builder() + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0)) + .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0)) + .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone())) + .build() + .map_err(|err| { + ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err) + })?; + cfg.interceptor_state() + .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params)); + ::std::result::Result::Ok(()) + } +} + +// The get_* functions below are generated from JMESPath expressions in the +// operationContextParams trait. They target the operation's input shape. + +/// Error type for the `DeleteResourcePolicyError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum DeleteResourcePolicyError { + ///

                  One of the parameters in the request is not valid.

                  + InvalidParameterValueException(crate::types::error::InvalidParameterValueException), + ///

                  The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.

                  + ///
                    + ///
                  • + ///

                    For AddPermission and RemovePermission API operations: Call GetPolicy to retrieve the latest RevisionId for your resource.

                  • + ///
                  • + ///

                    For all other API operations: Call GetFunction or GetAlias to retrieve the latest RevisionId for your resource.

                  • + ///
                  + PreconditionFailedException(crate::types::error::PreconditionFailedException), + ///

                  The resource already exists, or another operation is in progress.

                  + ResourceConflictException(crate::types::error::ResourceConflictException), + ///

                  The resource specified in the request does not exist.

                  + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

                  The Lambda service encountered an internal error.

                  + ServiceException(crate::types::error::ServiceException), + ///

                  The request throughput limit was exceeded. For more information, see Lambda quotas.

                  + TooManyRequestsException(crate::types::error::TooManyRequestsException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ +    `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DeleteResourcePolicyError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl DeleteResourcePolicyError { + /// Creates the `DeleteResourcePolicyError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::Box>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.into(), + meta: ::std::default::Default::default(), + }) + } + + /// Creates the `DeleteResourcePolicyError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata). + pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.clone().into(), + meta: err, + }) + } + /// + /// Returns error metadata, which includes the error code, message, + /// request ID, and potentially additional information. + /// + pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::PreconditionFailedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `DeleteResourcePolicyError::InvalidParameterValueException`. + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!(self, Self::InvalidParameterValueException(_)) + } + /// Returns `true` if the error kind is `DeleteResourcePolicyError::PreconditionFailedException`. + pub fn is_precondition_failed_exception(&self) -> bool { + matches!(self, Self::PreconditionFailedException(_)) + } + /// Returns `true` if the error kind is `DeleteResourcePolicyError::ResourceConflictException`. + pub fn is_resource_conflict_exception(&self) -> bool { + matches!(self, Self::ResourceConflictException(_)) + } + /// Returns `true` if the error kind is `DeleteResourcePolicyError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `DeleteResourcePolicyError::ServiceException`. + pub fn is_service_exception(&self) -> bool { + matches!(self, Self::ServiceException(_)) + } + /// Returns `true` if the error kind is `DeleteResourcePolicyError::TooManyRequestsException`. + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(self, Self::TooManyRequestsException(_)) + } +} +impl ::std::error::Error for DeleteResourcePolicyError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner), + Self::PreconditionFailedException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceConflictException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ServiceException(_inner) => ::std::option::Option::Some(_inner), + Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for DeleteResourcePolicyError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::InvalidParameterValueException(_inner) => _inner.fmt(f), + Self::PreconditionFailedException(_inner) => _inner.fmt(f), + Self::ResourceConflictException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ServiceException(_inner) => _inner.fmt(f), + Self::TooManyRequestsException(_inner) => _inner.fmt(f), + Self::Unhandled(_inner) => { + if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { + write!(f, "unhandled error ({code})") + } else { + f.write_str("unhandled error") + } + } + } + } +} +impl ::aws_smithy_types::retry::ProvideErrorKind for DeleteResourcePolicyError { + fn code(&self) -> ::std::option::Option<&str> { + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) + } + fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> { + ::std::option::Option::None + } +} +impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteResourcePolicyError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::PreconditionFailedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DeleteResourcePolicyError { + fn create_unhandled_error( + source: ::std::boxed::Box, + meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source, + meta: meta.unwrap_or_default(), + }) + } +} +impl ::aws_types::request_id::RequestId for crate::operation::delete_resource_policy::DeleteResourcePolicyError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::delete_resource_policy::_delete_resource_policy_output::DeleteResourcePolicyOutput; + +pub use crate::operation::delete_resource_policy::_delete_resource_policy_input::DeleteResourcePolicyInput; + +mod _delete_resource_policy_input; + +mod _delete_resource_policy_output; + +/// Builders +pub mod builders; diff --git a/sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_input.rs b/sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_input.rs new file mode 100644 index 000000000000..b1385fbf2c54 --- /dev/null +++ b/sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_input.rs @@ -0,0 +1,75 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct DeleteResourcePolicyInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub resource_arn: ::std::option::Option<::std::string::String>, + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub revision_id: ::std::option::Option<::std::string::String>, +} +impl DeleteResourcePolicyInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn resource_arn(&self) -> ::std::option::Option<&str> { + self.resource_arn.as_deref() + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn revision_id(&self) -> ::std::option::Option<&str> { + self.revision_id.as_deref() + } +} +impl DeleteResourcePolicyInput { + /// Creates a new builder-style object to manufacture [`DeleteResourcePolicyInput`](crate::operation::delete_resource_policy::DeleteResourcePolicyInput). + pub fn builder() -> crate::operation::delete_resource_policy::builders::DeleteResourcePolicyInputBuilder { + crate::operation::delete_resource_policy::builders::DeleteResourcePolicyInputBuilder::default() + } +} + +/// A builder for [`DeleteResourcePolicyInput`](crate::operation::delete_resource_policy::DeleteResourcePolicyInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct DeleteResourcePolicyInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, + pub(crate) revision_id: ::std::option::Option<::std::string::String>, +} +impl DeleteResourcePolicyInputBuilder { + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + /// This field is required. + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.resource_arn = ::std::option::Option::Some(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.resource_arn = input; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.revision_id = ::std::option::Option::Some(input.into()); + self + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.revision_id = input; + self + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> { + &self.revision_id + } + /// Consumes the builder and constructs a [`DeleteResourcePolicyInput`](crate::operation::delete_resource_policy::DeleteResourcePolicyInput). + pub fn build( + self, + ) -> ::std::result::Result + { + ::std::result::Result::Ok(crate::operation::delete_resource_policy::DeleteResourcePolicyInput { + resource_arn: self.resource_arn, + revision_id: self.revision_id, + }) + } +} diff --git a/sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_output.rs b/sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_output.rs new file mode 100644 index 000000000000..cde7e16bce36 --- /dev/null +++ b/sdk/lambda/src/operation/delete_resource_policy/_delete_resource_policy_output.rs @@ -0,0 +1,42 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct DeleteResourcePolicyOutput { + _request_id: Option, +} +impl ::aws_types::request_id::RequestId for DeleteResourcePolicyOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl DeleteResourcePolicyOutput { + /// Creates a new builder-style object to manufacture [`DeleteResourcePolicyOutput`](crate::operation::delete_resource_policy::DeleteResourcePolicyOutput). + pub fn builder() -> crate::operation::delete_resource_policy::builders::DeleteResourcePolicyOutputBuilder { + crate::operation::delete_resource_policy::builders::DeleteResourcePolicyOutputBuilder::default() + } +} + +/// A builder for [`DeleteResourcePolicyOutput`](crate::operation::delete_resource_policy::DeleteResourcePolicyOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct DeleteResourcePolicyOutputBuilder { + _request_id: Option, +} +impl DeleteResourcePolicyOutputBuilder { + pub(crate) fn _request_id(mut self, request_id: impl Into) -> Self { + self._request_id = Some(request_id.into()); + self + } + + pub(crate) fn _set_request_id(&mut self, request_id: Option) -> &mut Self { + self._request_id = request_id; + self + } + /// Consumes the builder and constructs a [`DeleteResourcePolicyOutput`](crate::operation::delete_resource_policy::DeleteResourcePolicyOutput). + pub fn build(self) -> crate::operation::delete_resource_policy::DeleteResourcePolicyOutput { + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput { + _request_id: self._request_id, + } + } +} diff --git a/sdk/lambda/src/operation/delete_resource_policy/builders.rs b/sdk/lambda/src/operation/delete_resource_policy/builders.rs new file mode 100644 index 000000000000..329ece27030f --- /dev/null +++ b/sdk/lambda/src/operation/delete_resource_policy/builders.rs @@ -0,0 +1,139 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::delete_resource_policy::_delete_resource_policy_output::DeleteResourcePolicyOutputBuilder; + +pub use crate::operation::delete_resource_policy::_delete_resource_policy_input::DeleteResourcePolicyInputBuilder; + +impl crate::operation::delete_resource_policy::builders::DeleteResourcePolicyInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.delete_resource_policy(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `DeleteResourcePolicy`. +/// +///

                  Deletes a resource-based policy from a function.

                  +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct DeleteResourcePolicyFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::delete_resource_policy::builders::DeleteResourcePolicyInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + > for DeleteResourcePolicyFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl DeleteResourcePolicyFluentBuilder { + /// Creates a new `DeleteResourcePolicyFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the DeleteResourcePolicy as a reference. + pub fn as_input(&self) -> &crate::operation::delete_resource_policy::builders::DeleteResourcePolicyInputBuilder { + &self.inner + } + /// Sends the request and returns the response. + /// + /// If an error occurs, an `SdkError` will be returned with additional details that + /// can be matched against. + /// + /// By default, any retryable failures will be retried twice. Retry behavior + /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be + /// set when configuring the client. + pub async fn send( + self, + ) -> ::std::result::Result< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = self + .inner + .build() + .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?; + let runtime_plugins = crate::operation::delete_resource_policy::DeleteResourcePolicy::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::delete_resource_policy::DeleteResourcePolicy::orchestrate(&runtime_plugins, input).await + } + + /// Consumes this builder, creating a customizable operation that can be modified before being sent. + pub fn customize( + self, + ) -> crate::client::customize::CustomizableOperation< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + crate::operation::delete_resource_policy::DeleteResourcePolicyError, + Self, + > { + crate::client::customize::CustomizableOperation::new(self) + } + pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into) -> Self { + self.set_config_override(::std::option::Option::Some(config_override.into())); + self + } + + pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option) -> &mut Self { + self.config_override = config_override; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.resource_arn(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.revision_id(input.into()); + self + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_revision_id(input); + self + } + ///

                  Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_revision_id() + } +} diff --git a/sdk/lambda/src/operation/get_public_access_block_config.rs b/sdk/lambda/src/operation/get_public_access_block_config.rs new file mode 100644 index 000000000000..a7ea865fd531 --- /dev/null +++ b/sdk/lambda/src/operation/get_public_access_block_config.rs @@ -0,0 +1,392 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `GetPublicAccessBlockConfig`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetPublicAccessBlockConfig; +impl GetPublicAccessBlockConfig { + /// Creates a new `GetPublicAccessBlockConfig` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput, + ) -> ::std::result::Result< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >| { + err.map_service_error(|err| { + err.downcast::() + .expect("correct error type") + }) + }; + let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None) + .await + .map_err(map_err)?; + let output = context.finalize().map_err(map_err)?; + ::std::result::Result::Ok( + output + .downcast::() + .expect("correct output type"), + ) + } + + pub(crate) async fn orchestrate_with_stop_point( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput, + stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint, + ) -> ::std::result::Result< + ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, + ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input); + ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("lambda", "GetPublicAccessBlockConfig", input, runtime_plugins, stop_point) + .await + } + + pub(crate) fn operation_runtime_plugins( + client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + client_config: &crate::config::Config, + config_override: ::std::option::Option, + ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins { + let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new()); + runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![ + ::aws_runtime::auth::sigv4::SCHEME_ID, + ])); + if let ::std::option::Option::Some(config_override) = config_override { + for plugin in config_override.runtime_plugins.iter().cloned() { + runtime_plugins = runtime_plugins.with_operation_plugin(plugin); + } + runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new( + config_override, + client_config.config.clone(), + &client_config.runtime_components, + )); + } + runtime_plugins + } +} +impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetPublicAccessBlockConfig { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetPublicAccessBlockConfig"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + GetPublicAccessBlockConfigRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + GetPublicAccessBlockConfigResponseDeserializer, + )); + + cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new( + ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(), + )); + + cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new( + "GetPublicAccessBlockConfig", + "lambda", + )); + let mut signing_options = ::aws_runtime::auth::SigningOptions::default(); + signing_options.double_uri_encode = true; + signing_options.content_sha256_header = false; + signing_options.normalize_uri_path = true; + signing_options.payload_override = None; + + cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig { + signing_options, + ..::std::default::Default::default() + }); + + ::std::option::Option::Some(cfg.freeze()) + } + + fn runtime_components( + &self, + _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder, + ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> { + #[allow(unused_mut)] + let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetPublicAccessBlockConfig") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(GetPublicAccessBlockConfigEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct GetPublicAccessBlockConfigResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetPublicAccessBlockConfigResponseDeserializer { + fn deserialize_nonstreaming( + &self, + response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError { + let (success, status) = (response.status().is_success(), response.status().as_u16()); + let headers = response.headers(); + let body = response.body().bytes().expect("body loaded"); + #[allow(unused_mut)] + let mut force_error = false; + ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response)); + let parse_result = if !success && status != 200 || force_error { + crate::protocol_serde::shape_get_public_access_block_config::de_get_public_access_block_config_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_get_public_access_block_config::de_get_public_access_block_config_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct GetPublicAccessBlockConfigRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetPublicAccessBlockConfigRequestSerializer { + #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)] + fn serialize_input( + &self, + input: ::aws_smithy_runtime_api::client::interceptors::context::Input, + _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> { + let input = input + .downcast::() + .expect("correct type"); + let _header_serialization_settings = _cfg + .load::() + .cloned() + .unwrap_or_default(); + let mut request_builder = { + fn uri_base( + _input: &crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + let input_1 = &_input.resource_arn; + let input_1 = input_1 + .as_ref() + .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("resource_arn", "cannot be empty or unset"))?; + let resource_arn = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default); + if resource_arn.is_empty() { + return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field( + "resource_arn", + "cannot be empty or unset", + )); + } + ::std::write!(output, "/2024-09-16/public-access-block/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput, + builder: ::http::request::Builder, + ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> { + let mut uri = ::std::string::String::new(); + uri_base(input, &mut uri)?; + ::std::result::Result::Ok(builder.method("GET").uri(uri)) + } + let mut builder = update_http_builder(&input, ::http::request::Builder::new())?; + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(""); + + ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap()) + } +} +#[derive(Debug)] +struct GetPublicAccessBlockConfigEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetPublicAccessBlockConfigEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "GetPublicAccessBlockConfigEndpointParamsInterceptor" + } + + fn read_before_execution( + &self, + context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef< + '_, + ::aws_smithy_runtime_api::client::interceptors::context::Input, + ::aws_smithy_runtime_api::client::interceptors::context::Output, + ::aws_smithy_runtime_api::client::interceptors::context::Error, + >, + cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> { + let _input = context + .input() + .downcast_ref::() + .ok_or("failed to downcast to GetPublicAccessBlockConfigInput")?; + + let params = crate::config::endpoint::Params::builder() + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0)) + .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0)) + .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone())) + .build() + .map_err(|err| { + ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err) + })?; + cfg.interceptor_state() + .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params)); + ::std::result::Result::Ok(()) + } +} + +// The get_* functions below are generated from JMESPath expressions in the +// operationContextParams trait. They target the operation's input shape. + +/// Error type for the `GetPublicAccessBlockConfigError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum GetPublicAccessBlockConfigError { + ///

                  One of the parameters in the request is not valid.

                  + InvalidParameterValueException(crate::types::error::InvalidParameterValueException), + ///

                  The resource specified in the request does not exist.

                  + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

                  The Lambda service encountered an internal error.

                  + ServiceException(crate::types::error::ServiceException), + ///

                  The request throughput limit was exceeded. For more information, see Lambda quotas.

                  + TooManyRequestsException(crate::types::error::TooManyRequestsException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ +    `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetPublicAccessBlockConfigError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl GetPublicAccessBlockConfigError { + /// Creates the `GetPublicAccessBlockConfigError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::Box>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.into(), + meta: ::std::default::Default::default(), + }) + } + + /// Creates the `GetPublicAccessBlockConfigError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata). + pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.clone().into(), + meta: err, + }) + } + /// + /// Returns error metadata, which includes the error code, message, + /// request ID, and potentially additional information. + /// + pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `GetPublicAccessBlockConfigError::InvalidParameterValueException`. + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!(self, Self::InvalidParameterValueException(_)) + } + /// Returns `true` if the error kind is `GetPublicAccessBlockConfigError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `GetPublicAccessBlockConfigError::ServiceException`. + pub fn is_service_exception(&self) -> bool { + matches!(self, Self::ServiceException(_)) + } + /// Returns `true` if the error kind is `GetPublicAccessBlockConfigError::TooManyRequestsException`. + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(self, Self::TooManyRequestsException(_)) + } +} +impl ::std::error::Error for GetPublicAccessBlockConfigError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ServiceException(_inner) => ::std::option::Option::Some(_inner), + Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for GetPublicAccessBlockConfigError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::InvalidParameterValueException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ServiceException(_inner) => _inner.fmt(f), + Self::TooManyRequestsException(_inner) => _inner.fmt(f), + Self::Unhandled(_inner) => { + if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { + write!(f, "unhandled error ({code})") + } else { + f.write_str("unhandled error") + } + } + } + } +} +impl ::aws_smithy_types::retry::ProvideErrorKind for GetPublicAccessBlockConfigError { + fn code(&self) -> ::std::option::Option<&str> { + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) + } + fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> { + ::std::option::Option::None + } +} +impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetPublicAccessBlockConfigError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetPublicAccessBlockConfigError { + fn create_unhandled_error( + source: ::std::boxed::Box, + meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source, + meta: meta.unwrap_or_default(), + }) + } +} +impl ::aws_types::request_id::RequestId for crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::get_public_access_block_config::_get_public_access_block_config_output::GetPublicAccessBlockConfigOutput; + +pub use crate::operation::get_public_access_block_config::_get_public_access_block_config_input::GetPublicAccessBlockConfigInput; + +mod _get_public_access_block_config_input; + +mod _get_public_access_block_config_output; + +/// Builders +pub mod builders; diff --git a/sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_input.rs b/sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_input.rs new file mode 100644 index 000000000000..13518729694d --- /dev/null +++ b/sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_input.rs @@ -0,0 +1,55 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct GetPublicAccessBlockConfigInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub resource_arn: ::std::option::Option<::std::string::String>, +} +impl GetPublicAccessBlockConfigInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub fn resource_arn(&self) -> ::std::option::Option<&str> { + self.resource_arn.as_deref() + } +} +impl GetPublicAccessBlockConfigInput { + /// Creates a new builder-style object to manufacture [`GetPublicAccessBlockConfigInput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput). + pub fn builder() -> crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigInputBuilder { + crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigInputBuilder::default() + } +} + +/// A builder for [`GetPublicAccessBlockConfigInput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetPublicAccessBlockConfigInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, +} +impl GetPublicAccessBlockConfigInputBuilder { + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + /// This field is required. + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.resource_arn = ::std::option::Option::Some(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.resource_arn = input; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + /// Consumes the builder and constructs a [`GetPublicAccessBlockConfigInput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput). + pub fn build( + self, + ) -> ::std::result::Result< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput, + ::aws_smithy_types::error::operation::BuildError, + > { + ::std::result::Result::Ok(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigInput { + resource_arn: self.resource_arn, + }) + } +} diff --git a/sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_output.rs b/sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_output.rs new file mode 100644 index 000000000000..b28b83d485d0 --- /dev/null +++ b/sdk/lambda/src/operation/get_public_access_block_config/_get_public_access_block_config_output.rs @@ -0,0 +1,66 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct GetPublicAccessBlockConfigOutput { + ///

                  The public-access settings configured for the function you specified

                  + pub public_access_block_config: ::std::option::Option, + _request_id: Option, +} +impl GetPublicAccessBlockConfigOutput { + ///

                  The public-access settings configured for the function you specified

                  + pub fn public_access_block_config(&self) -> ::std::option::Option<&crate::types::PublicAccessBlockConfig> { + self.public_access_block_config.as_ref() + } +} +impl ::aws_types::request_id::RequestId for GetPublicAccessBlockConfigOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl GetPublicAccessBlockConfigOutput { + /// Creates a new builder-style object to manufacture [`GetPublicAccessBlockConfigOutput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput). + pub fn builder() -> crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigOutputBuilder { + crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigOutputBuilder::default() + } +} + +/// A builder for [`GetPublicAccessBlockConfigOutput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetPublicAccessBlockConfigOutputBuilder { + pub(crate) public_access_block_config: ::std::option::Option, + _request_id: Option, +} +impl GetPublicAccessBlockConfigOutputBuilder { + ///

                  The public-access settings configured for the function you specified

                  + pub fn public_access_block_config(mut self, input: crate::types::PublicAccessBlockConfig) -> Self { + self.public_access_block_config = ::std::option::Option::Some(input); + self + } + ///

                  The public-access settings configured for the function you specified

                  + pub fn set_public_access_block_config(mut self, input: ::std::option::Option) -> Self { + self.public_access_block_config = input; + self + } + ///

                  The public-access settings configured for the function you specified

                  + pub fn get_public_access_block_config(&self) -> &::std::option::Option { + &self.public_access_block_config + } + pub(crate) fn _request_id(mut self, request_id: impl Into) -> Self { + self._request_id = Some(request_id.into()); + self + } + + pub(crate) fn _set_request_id(&mut self, request_id: Option) -> &mut Self { + self._request_id = request_id; + self + } + /// Consumes the builder and constructs a [`GetPublicAccessBlockConfigOutput`](crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput). + pub fn build(self) -> crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput { + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput { + public_access_block_config: self.public_access_block_config, + _request_id: self._request_id, + } + } +} diff --git a/sdk/lambda/src/operation/get_public_access_block_config/builders.rs b/sdk/lambda/src/operation/get_public_access_block_config/builders.rs new file mode 100644 index 000000000000..772e2cc6d72b --- /dev/null +++ b/sdk/lambda/src/operation/get_public_access_block_config/builders.rs @@ -0,0 +1,125 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::get_public_access_block_config::_get_public_access_block_config_output::GetPublicAccessBlockConfigOutputBuilder; + +pub use crate::operation::get_public_access_block_config::_get_public_access_block_config_input::GetPublicAccessBlockConfigInputBuilder; + +impl crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.get_public_access_block_config(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `GetPublicAccessBlockConfig`. +/// +///

                  Retrieve the public-access settings for a function.

                  +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct GetPublicAccessBlockConfigFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + > for GetPublicAccessBlockConfigFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl GetPublicAccessBlockConfigFluentBuilder { + /// Creates a new `GetPublicAccessBlockConfigFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the GetPublicAccessBlockConfig as a reference. + pub fn as_input(&self) -> &crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigInputBuilder { + &self.inner + } + /// Sends the request and returns the response. + /// + /// If an error occurs, an `SdkError` will be returned with additional details that + /// can be matched against. + /// + /// By default, any retryable failures will be retried twice. Retry behavior + /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be + /// set when configuring the client. + pub async fn send( + self, + ) -> ::std::result::Result< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = self + .inner + .build() + .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?; + let runtime_plugins = crate::operation::get_public_access_block_config::GetPublicAccessBlockConfig::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfig::orchestrate(&runtime_plugins, input).await + } + + /// Consumes this builder, creating a customizable operation that can be modified before being sent. + pub fn customize( + self, + ) -> crate::client::customize::CustomizableOperation< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, + Self, + > { + crate::client::customize::CustomizableOperation::new(self) + } + pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into) -> Self { + self.set_config_override(::std::option::Option::Some(config_override.into())); + self + } + + pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option) -> &mut Self { + self.config_override = config_override; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.resource_arn(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } +} diff --git a/sdk/lambda/src/operation/get_resource_policy.rs b/sdk/lambda/src/operation/get_resource_policy.rs new file mode 100644 index 000000000000..7f90406aa828 --- /dev/null +++ b/sdk/lambda/src/operation/get_resource_policy.rs @@ -0,0 +1,390 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `GetResourcePolicy`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetResourcePolicy; +impl GetResourcePolicy { + /// Creates a new `GetResourcePolicy` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::get_resource_policy::GetResourcePolicyInput, + ) -> ::std::result::Result< + crate::operation::get_resource_policy::GetResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_resource_policy::GetResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >| { + err.map_service_error(|err| { + err.downcast::() + .expect("correct error type") + }) + }; + let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None) + .await + .map_err(map_err)?; + let output = context.finalize().map_err(map_err)?; + ::std::result::Result::Ok( + output + .downcast::() + .expect("correct output type"), + ) + } + + pub(crate) async fn orchestrate_with_stop_point( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::get_resource_policy::GetResourcePolicyInput, + stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint, + ) -> ::std::result::Result< + ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, + ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input); + ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("lambda", "GetResourcePolicy", input, runtime_plugins, stop_point).await + } + + pub(crate) fn operation_runtime_plugins( + client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + client_config: &crate::config::Config, + config_override: ::std::option::Option, + ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins { + let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new()); + runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![ + ::aws_runtime::auth::sigv4::SCHEME_ID, + ])); + if let ::std::option::Option::Some(config_override) = config_override { + for plugin in config_override.runtime_plugins.iter().cloned() { + runtime_plugins = runtime_plugins.with_operation_plugin(plugin); + } + runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new( + config_override, + client_config.config.clone(), + &client_config.runtime_components, + )); + } + runtime_plugins + } +} +impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetResourcePolicy { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetResourcePolicy"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + GetResourcePolicyRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + GetResourcePolicyResponseDeserializer, + )); + + cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new( + ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(), + )); + + cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new( + "GetResourcePolicy", + "lambda", + )); + let mut signing_options = ::aws_runtime::auth::SigningOptions::default(); + signing_options.double_uri_encode = true; + signing_options.content_sha256_header = false; + signing_options.normalize_uri_path = true; + signing_options.payload_override = None; + + cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig { + signing_options, + ..::std::default::Default::default() + }); + + ::std::option::Option::Some(cfg.freeze()) + } + + fn runtime_components( + &self, + _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder, + ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> { + #[allow(unused_mut)] + let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetResourcePolicy") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(GetResourcePolicyEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::get_resource_policy::GetResourcePolicyError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::get_resource_policy::GetResourcePolicyError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::get_resource_policy::GetResourcePolicyError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct GetResourcePolicyResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetResourcePolicyResponseDeserializer { + fn deserialize_nonstreaming( + &self, + response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError { + let (success, status) = (response.status().is_success(), response.status().as_u16()); + let headers = response.headers(); + let body = response.body().bytes().expect("body loaded"); + #[allow(unused_mut)] + let mut force_error = false; + ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response)); + let parse_result = if !success && status != 200 || force_error { + crate::protocol_serde::shape_get_resource_policy::de_get_resource_policy_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_get_resource_policy::de_get_resource_policy_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct GetResourcePolicyRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetResourcePolicyRequestSerializer { + #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)] + fn serialize_input( + &self, + input: ::aws_smithy_runtime_api::client::interceptors::context::Input, + _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> { + let input = input + .downcast::() + .expect("correct type"); + let _header_serialization_settings = _cfg + .load::() + .cloned() + .unwrap_or_default(); + let mut request_builder = { + fn uri_base( + _input: &crate::operation::get_resource_policy::GetResourcePolicyInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + let input_1 = &_input.resource_arn; + let input_1 = input_1 + .as_ref() + .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("resource_arn", "cannot be empty or unset"))?; + let resource_arn = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default); + if resource_arn.is_empty() { + return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field( + "resource_arn", + "cannot be empty or unset", + )); + } + ::std::write!(output, "/2024-09-16/resource-policy/{ResourceArn}", ResourceArn = resource_arn).expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::get_resource_policy::GetResourcePolicyInput, + builder: ::http::request::Builder, + ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> { + let mut uri = ::std::string::String::new(); + uri_base(input, &mut uri)?; + ::std::result::Result::Ok(builder.method("GET").uri(uri)) + } + let mut builder = update_http_builder(&input, ::http::request::Builder::new())?; + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(""); + + ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap()) + } +} +#[derive(Debug)] +struct GetResourcePolicyEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetResourcePolicyEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "GetResourcePolicyEndpointParamsInterceptor" + } + + fn read_before_execution( + &self, + context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef< + '_, + ::aws_smithy_runtime_api::client::interceptors::context::Input, + ::aws_smithy_runtime_api::client::interceptors::context::Output, + ::aws_smithy_runtime_api::client::interceptors::context::Error, + >, + cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> { + let _input = context + .input() + .downcast_ref::() + .ok_or("failed to downcast to GetResourcePolicyInput")?; + + let params = crate::config::endpoint::Params::builder() + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0)) + .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0)) + .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone())) + .build() + .map_err(|err| { + ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err) + })?; + cfg.interceptor_state() + .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params)); + ::std::result::Result::Ok(()) + } +} + +// The get_* functions below are generated from JMESPath expressions in the +// operationContextParams trait. They target the operation's input shape. + +/// Error type for the `GetResourcePolicyError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum GetResourcePolicyError { + ///

                  One of the parameters in the request is not valid.

                  + InvalidParameterValueException(crate::types::error::InvalidParameterValueException), + ///

                  The resource specified in the request does not exist.

                  + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

                  The Lambda service encountered an internal error.

                  + ServiceException(crate::types::error::ServiceException), + ///

                  The request throughput limit was exceeded. For more information, see Lambda quotas.

                  + TooManyRequestsException(crate::types::error::TooManyRequestsException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ +    `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetResourcePolicyError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl GetResourcePolicyError { + /// Creates the `GetResourcePolicyError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::Box>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.into(), + meta: ::std::default::Default::default(), + }) + } + + /// Creates the `GetResourcePolicyError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata). + pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.clone().into(), + meta: err, + }) + } + /// + /// Returns error metadata, which includes the error code, message, + /// request ID, and potentially additional information. + /// + pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `GetResourcePolicyError::InvalidParameterValueException`. + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!(self, Self::InvalidParameterValueException(_)) + } + /// Returns `true` if the error kind is `GetResourcePolicyError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `GetResourcePolicyError::ServiceException`. + pub fn is_service_exception(&self) -> bool { + matches!(self, Self::ServiceException(_)) + } + /// Returns `true` if the error kind is `GetResourcePolicyError::TooManyRequestsException`. + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(self, Self::TooManyRequestsException(_)) + } +} +impl ::std::error::Error for GetResourcePolicyError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ServiceException(_inner) => ::std::option::Option::Some(_inner), + Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for GetResourcePolicyError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::InvalidParameterValueException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ServiceException(_inner) => _inner.fmt(f), + Self::TooManyRequestsException(_inner) => _inner.fmt(f), + Self::Unhandled(_inner) => { + if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { + write!(f, "unhandled error ({code})") + } else { + f.write_str("unhandled error") + } + } + } + } +} +impl ::aws_smithy_types::retry::ProvideErrorKind for GetResourcePolicyError { + fn code(&self) -> ::std::option::Option<&str> { + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) + } + fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> { + ::std::option::Option::None + } +} +impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetResourcePolicyError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetResourcePolicyError { + fn create_unhandled_error( + source: ::std::boxed::Box, + meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source, + meta: meta.unwrap_or_default(), + }) + } +} +impl ::aws_types::request_id::RequestId for crate::operation::get_resource_policy::GetResourcePolicyError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::get_resource_policy::_get_resource_policy_output::GetResourcePolicyOutput; + +pub use crate::operation::get_resource_policy::_get_resource_policy_input::GetResourcePolicyInput; + +mod _get_resource_policy_input; + +mod _get_resource_policy_output; + +/// Builders +pub mod builders; diff --git a/sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_input.rs b/sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_input.rs new file mode 100644 index 000000000000..793d732e1bfa --- /dev/null +++ b/sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_input.rs @@ -0,0 +1,52 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct GetResourcePolicyInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub resource_arn: ::std::option::Option<::std::string::String>, +} +impl GetResourcePolicyInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn resource_arn(&self) -> ::std::option::Option<&str> { + self.resource_arn.as_deref() + } +} +impl GetResourcePolicyInput { + /// Creates a new builder-style object to manufacture [`GetResourcePolicyInput`](crate::operation::get_resource_policy::GetResourcePolicyInput). + pub fn builder() -> crate::operation::get_resource_policy::builders::GetResourcePolicyInputBuilder { + crate::operation::get_resource_policy::builders::GetResourcePolicyInputBuilder::default() + } +} + +/// A builder for [`GetResourcePolicyInput`](crate::operation::get_resource_policy::GetResourcePolicyInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetResourcePolicyInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, +} +impl GetResourcePolicyInputBuilder { + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + /// This field is required. + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.resource_arn = ::std::option::Option::Some(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.resource_arn = input; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + /// Consumes the builder and constructs a [`GetResourcePolicyInput`](crate::operation::get_resource_policy::GetResourcePolicyInput). + pub fn build( + self, + ) -> ::std::result::Result { + ::std::result::Result::Ok(crate::operation::get_resource_policy::GetResourcePolicyInput { + resource_arn: self.resource_arn, + }) + } +} diff --git a/sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_output.rs b/sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_output.rs new file mode 100644 index 000000000000..631b6cad2510 --- /dev/null +++ b/sdk/lambda/src/operation/get_resource_policy/_get_resource_policy_output.rs @@ -0,0 +1,88 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct GetResourcePolicyOutput { + ///

                  The resource-based policy attached to the function you specified.

                  + pub policy: ::std::option::Option<::std::string::String>, + ///

                  The revision ID of the policy.

                  + pub revision_id: ::std::option::Option<::std::string::String>, + _request_id: Option, +} +impl GetResourcePolicyOutput { + ///

                  The resource-based policy attached to the function you specified.

                  + pub fn policy(&self) -> ::std::option::Option<&str> { + self.policy.as_deref() + } + ///

                  The revision ID of the policy.

                  + pub fn revision_id(&self) -> ::std::option::Option<&str> { + self.revision_id.as_deref() + } +} +impl ::aws_types::request_id::RequestId for GetResourcePolicyOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl GetResourcePolicyOutput { + /// Creates a new builder-style object to manufacture [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput). + pub fn builder() -> crate::operation::get_resource_policy::builders::GetResourcePolicyOutputBuilder { + crate::operation::get_resource_policy::builders::GetResourcePolicyOutputBuilder::default() + } +} + +/// A builder for [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetResourcePolicyOutputBuilder { + pub(crate) policy: ::std::option::Option<::std::string::String>, + pub(crate) revision_id: ::std::option::Option<::std::string::String>, + _request_id: Option, +} +impl GetResourcePolicyOutputBuilder { + ///

                  The resource-based policy attached to the function you specified.

                  + pub fn policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.policy = ::std::option::Option::Some(input.into()); + self + } + ///

                  The resource-based policy attached to the function you specified.

                  + pub fn set_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.policy = input; + self + } + ///

                  The resource-based policy attached to the function you specified.

                  + pub fn get_policy(&self) -> &::std::option::Option<::std::string::String> { + &self.policy + } + ///

                  The revision ID of the policy.

                  + pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.revision_id = ::std::option::Option::Some(input.into()); + self + } + ///

                  The revision ID of the policy.

                  + pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.revision_id = input; + self + } + ///

                  The revision ID of the policy.

                  + pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> { + &self.revision_id + } + pub(crate) fn _request_id(mut self, request_id: impl Into) -> Self { + self._request_id = Some(request_id.into()); + self + } + + pub(crate) fn _set_request_id(&mut self, request_id: Option) -> &mut Self { + self._request_id = request_id; + self + } + /// Consumes the builder and constructs a [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput). + pub fn build(self) -> crate::operation::get_resource_policy::GetResourcePolicyOutput { + crate::operation::get_resource_policy::GetResourcePolicyOutput { + policy: self.policy, + revision_id: self.revision_id, + _request_id: self._request_id, + } + } +} diff --git a/sdk/lambda/src/operation/get_resource_policy/builders.rs b/sdk/lambda/src/operation/get_resource_policy/builders.rs new file mode 100644 index 000000000000..ffb1e2a39747 --- /dev/null +++ b/sdk/lambda/src/operation/get_resource_policy/builders.rs @@ -0,0 +1,125 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::get_resource_policy::_get_resource_policy_output::GetResourcePolicyOutputBuilder; + +pub use crate::operation::get_resource_policy::_get_resource_policy_input::GetResourcePolicyInputBuilder; + +impl crate::operation::get_resource_policy::builders::GetResourcePolicyInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::get_resource_policy::GetResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_resource_policy::GetResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.get_resource_policy(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `GetResourcePolicy`. +/// +///

                  Retrieves the resource-based policy attached to a function.

                  +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct GetResourcePolicyFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::get_resource_policy::builders::GetResourcePolicyInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::get_resource_policy::GetResourcePolicyOutput, + crate::operation::get_resource_policy::GetResourcePolicyError, + > for GetResourcePolicyFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::get_resource_policy::GetResourcePolicyOutput, + crate::operation::get_resource_policy::GetResourcePolicyError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl GetResourcePolicyFluentBuilder { + /// Creates a new `GetResourcePolicyFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the GetResourcePolicy as a reference. + pub fn as_input(&self) -> &crate::operation::get_resource_policy::builders::GetResourcePolicyInputBuilder { + &self.inner + } + /// Sends the request and returns the response. + /// + /// If an error occurs, an `SdkError` will be returned with additional details that + /// can be matched against. + /// + /// By default, any retryable failures will be retried twice. Retry behavior + /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be + /// set when configuring the client. + pub async fn send( + self, + ) -> ::std::result::Result< + crate::operation::get_resource_policy::GetResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_resource_policy::GetResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = self + .inner + .build() + .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?; + let runtime_plugins = crate::operation::get_resource_policy::GetResourcePolicy::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::get_resource_policy::GetResourcePolicy::orchestrate(&runtime_plugins, input).await + } + + /// Consumes this builder, creating a customizable operation that can be modified before being sent. + pub fn customize( + self, + ) -> crate::client::customize::CustomizableOperation< + crate::operation::get_resource_policy::GetResourcePolicyOutput, + crate::operation::get_resource_policy::GetResourcePolicyError, + Self, + > { + crate::client::customize::CustomizableOperation::new(self) + } + pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into) -> Self { + self.set_config_override(::std::option::Option::Some(config_override.into())); + self + } + + pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option) -> &mut Self { + self.config_override = config_override; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.resource_arn(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } +} diff --git a/sdk/lambda/src/operation/put_public_access_block_config.rs b/sdk/lambda/src/operation/put_public_access_block_config.rs new file mode 100644 index 000000000000..7ddc8c8cb452 --- /dev/null +++ b/sdk/lambda/src/operation/put_public_access_block_config.rs @@ -0,0 +1,408 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `PutPublicAccessBlockConfig`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PutPublicAccessBlockConfig; +impl PutPublicAccessBlockConfig { + /// Creates a new `PutPublicAccessBlockConfig` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, + ) -> ::std::result::Result< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >| { + err.map_service_error(|err| { + err.downcast::() + .expect("correct error type") + }) + }; + let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None) + .await + .map_err(map_err)?; + let output = context.finalize().map_err(map_err)?; + ::std::result::Result::Ok( + output + .downcast::() + .expect("correct output type"), + ) + } + + pub(crate) async fn orchestrate_with_stop_point( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, + stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint, + ) -> ::std::result::Result< + ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, + ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input); + ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("lambda", "PutPublicAccessBlockConfig", input, runtime_plugins, stop_point) + .await + } + + pub(crate) fn operation_runtime_plugins( + client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + client_config: &crate::config::Config, + config_override: ::std::option::Option, + ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins { + let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new()); + runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![ + ::aws_runtime::auth::sigv4::SCHEME_ID, + ])); + if let ::std::option::Option::Some(config_override) = config_override { + for plugin in config_override.runtime_plugins.iter().cloned() { + runtime_plugins = runtime_plugins.with_operation_plugin(plugin); + } + runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new( + config_override, + client_config.config.clone(), + &client_config.runtime_components, + )); + } + runtime_plugins + } +} +impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for PutPublicAccessBlockConfig { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("PutPublicAccessBlockConfig"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + PutPublicAccessBlockConfigRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + PutPublicAccessBlockConfigResponseDeserializer, + )); + + cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new( + ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(), + )); + + cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new( + "PutPublicAccessBlockConfig", + "lambda", + )); + let mut signing_options = ::aws_runtime::auth::SigningOptions::default(); + signing_options.double_uri_encode = true; + signing_options.content_sha256_header = false; + signing_options.normalize_uri_path = true; + signing_options.payload_override = None; + + cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig { + signing_options, + ..::std::default::Default::default() + }); + + ::std::option::Option::Some(cfg.freeze()) + } + + fn runtime_components( + &self, + _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder, + ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> { + #[allow(unused_mut)] + let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("PutPublicAccessBlockConfig") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(PutPublicAccessBlockConfigEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct PutPublicAccessBlockConfigResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutPublicAccessBlockConfigResponseDeserializer { + fn deserialize_nonstreaming( + &self, + response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError { + let (success, status) = (response.status().is_success(), response.status().as_u16()); + let headers = response.headers(); + let body = response.body().bytes().expect("body loaded"); + #[allow(unused_mut)] + let mut force_error = false; + ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response)); + let parse_result = if !success && status != 200 || force_error { + crate::protocol_serde::shape_put_public_access_block_config::de_put_public_access_block_config_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_put_public_access_block_config::de_put_public_access_block_config_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct PutPublicAccessBlockConfigRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutPublicAccessBlockConfigRequestSerializer { + #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)] + fn serialize_input( + &self, + input: ::aws_smithy_runtime_api::client::interceptors::context::Input, + _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> { + let input = input + .downcast::() + .expect("correct type"); + let _header_serialization_settings = _cfg + .load::() + .cloned() + .unwrap_or_default(); + let mut request_builder = { + fn uri_base( + _input: &crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + let input_1 = &_input.resource_arn; + let input_1 = input_1 + .as_ref() + .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("resource_arn", "cannot be empty or unset"))?; + let resource_arn = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default); + if resource_arn.is_empty() { + return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field( + "resource_arn", + "cannot be empty or unset", + )); + } + ::std::write!(output, "/2024-09-16/public-access-block/{ResourceArn}", ResourceArn = resource_arn) + .expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, + builder: ::http::request::Builder, + ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> { + let mut uri = ::std::string::String::new(); + uri_base(input, &mut uri)?; + ::std::result::Result::Ok(builder.method("PUT").uri(uri)) + } + let mut builder = update_http_builder(&input, ::http::request::Builder::new())?; + builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json"); + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from( + crate::protocol_serde::shape_put_public_access_block_config::ser_put_public_access_block_config_input(&input)?, + ); + if let Some(content_length) = body.content_length() { + let content_length = content_length.to_string(); + request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length); + } + ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap()) + } +} +#[derive(Debug)] +struct PutPublicAccessBlockConfigEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutPublicAccessBlockConfigEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "PutPublicAccessBlockConfigEndpointParamsInterceptor" + } + + fn read_before_execution( + &self, + context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef< + '_, + ::aws_smithy_runtime_api::client::interceptors::context::Input, + ::aws_smithy_runtime_api::client::interceptors::context::Output, + ::aws_smithy_runtime_api::client::interceptors::context::Error, + >, + cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> { + let _input = context + .input() + .downcast_ref::() + .ok_or("failed to downcast to PutPublicAccessBlockConfigInput")?; + + let params = crate::config::endpoint::Params::builder() + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0)) + .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0)) + .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone())) + .build() + .map_err(|err| { + ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err) + })?; + cfg.interceptor_state() + .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params)); + ::std::result::Result::Ok(()) + } +} + +// The get_* functions below are generated from JMESPath expressions in the +// operationContextParams trait. They target the operation's input shape. + +/// Error type for the `PutPublicAccessBlockConfigError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum PutPublicAccessBlockConfigError { + ///

                  One of the parameters in the request is not valid.

                  + InvalidParameterValueException(crate::types::error::InvalidParameterValueException), + ///

                  The resource already exists, or another operation is in progress.

                  + ResourceConflictException(crate::types::error::ResourceConflictException), + ///

                  The resource specified in the request does not exist.

                  + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

                  The Lambda service encountered an internal error.

                  + ServiceException(crate::types::error::ServiceException), + ///

                  The request throughput limit was exceeded. For more information, see Lambda quotas.

                  + TooManyRequestsException(crate::types::error::TooManyRequestsException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ +    `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-PutPublicAccessBlockConfigError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl PutPublicAccessBlockConfigError { + /// Creates the `PutPublicAccessBlockConfigError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::Box>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.into(), + meta: ::std::default::Default::default(), + }) + } + + /// Creates the `PutPublicAccessBlockConfigError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata). + pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.clone().into(), + meta: err, + }) + } + /// + /// Returns error metadata, which includes the error code, message, + /// request ID, and potentially additional information. + /// + pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `PutPublicAccessBlockConfigError::InvalidParameterValueException`. + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!(self, Self::InvalidParameterValueException(_)) + } + /// Returns `true` if the error kind is `PutPublicAccessBlockConfigError::ResourceConflictException`. + pub fn is_resource_conflict_exception(&self) -> bool { + matches!(self, Self::ResourceConflictException(_)) + } + /// Returns `true` if the error kind is `PutPublicAccessBlockConfigError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `PutPublicAccessBlockConfigError::ServiceException`. + pub fn is_service_exception(&self) -> bool { + matches!(self, Self::ServiceException(_)) + } + /// Returns `true` if the error kind is `PutPublicAccessBlockConfigError::TooManyRequestsException`. + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(self, Self::TooManyRequestsException(_)) + } +} +impl ::std::error::Error for PutPublicAccessBlockConfigError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceConflictException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ServiceException(_inner) => ::std::option::Option::Some(_inner), + Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for PutPublicAccessBlockConfigError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::InvalidParameterValueException(_inner) => _inner.fmt(f), + Self::ResourceConflictException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ServiceException(_inner) => _inner.fmt(f), + Self::TooManyRequestsException(_inner) => _inner.fmt(f), + Self::Unhandled(_inner) => { + if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { + write!(f, "unhandled error ({code})") + } else { + f.write_str("unhandled error") + } + } + } + } +} +impl ::aws_smithy_types::retry::ProvideErrorKind for PutPublicAccessBlockConfigError { + fn code(&self) -> ::std::option::Option<&str> { + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) + } + fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> { + ::std::option::Option::None + } +} +impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PutPublicAccessBlockConfigError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for PutPublicAccessBlockConfigError { + fn create_unhandled_error( + source: ::std::boxed::Box, + meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source, + meta: meta.unwrap_or_default(), + }) + } +} +impl ::aws_types::request_id::RequestId for crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::put_public_access_block_config::_put_public_access_block_config_output::PutPublicAccessBlockConfigOutput; + +pub use crate::operation::put_public_access_block_config::_put_public_access_block_config_input::PutPublicAccessBlockConfigInput; + +mod _put_public_access_block_config_input; + +mod _put_public_access_block_config_output; + +/// Builders +pub mod builders; diff --git a/sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_input.rs b/sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_input.rs new file mode 100644 index 000000000000..edd7fc71abf6 --- /dev/null +++ b/sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_input.rs @@ -0,0 +1,93 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct PutPublicAccessBlockConfigInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub resource_arn: ::std::option::Option<::std::string::String>, + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub public_access_block_config: ::std::option::Option, +} +impl PutPublicAccessBlockConfigInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub fn resource_arn(&self) -> ::std::option::Option<&str> { + self.resource_arn.as_deref() + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub fn public_access_block_config(&self) -> ::std::option::Option<&crate::types::PublicAccessBlockConfig> { + self.public_access_block_config.as_ref() + } +} +impl PutPublicAccessBlockConfigInput { + /// Creates a new builder-style object to manufacture [`PutPublicAccessBlockConfigInput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput). + pub fn builder() -> crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigInputBuilder { + crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigInputBuilder::default() + } +} + +/// A builder for [`PutPublicAccessBlockConfigInput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PutPublicAccessBlockConfigInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, + pub(crate) public_access_block_config: ::std::option::Option, +} +impl PutPublicAccessBlockConfigInputBuilder { + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + /// This field is required. + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.resource_arn = ::std::option::Option::Some(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.resource_arn = input; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + /// This field is required. + pub fn public_access_block_config(mut self, input: crate::types::PublicAccessBlockConfig) -> Self { + self.public_access_block_config = ::std::option::Option::Some(input); + self + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub fn set_public_access_block_config(mut self, input: ::std::option::Option) -> Self { + self.public_access_block_config = input; + self + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub fn get_public_access_block_config(&self) -> &::std::option::Option { + &self.public_access_block_config + } + /// Consumes the builder and constructs a [`PutPublicAccessBlockConfigInput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput). + pub fn build( + self, + ) -> ::std::result::Result< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, + ::aws_smithy_types::error::operation::BuildError, + > { + ::std::result::Result::Ok(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput { + resource_arn: self.resource_arn, + public_access_block_config: self.public_access_block_config, + }) + } +} diff --git a/sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_output.rs b/sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_output.rs new file mode 100644 index 000000000000..884b7e00aa00 --- /dev/null +++ b/sdk/lambda/src/operation/put_public_access_block_config/_put_public_access_block_config_output.rs @@ -0,0 +1,66 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct PutPublicAccessBlockConfigOutput { + ///

                  The public-access settings Lambda applied to your function.

                  + pub public_access_block_config: ::std::option::Option, + _request_id: Option, +} +impl PutPublicAccessBlockConfigOutput { + ///

                  The public-access settings Lambda applied to your function.

                  + pub fn public_access_block_config(&self) -> ::std::option::Option<&crate::types::PublicAccessBlockConfig> { + self.public_access_block_config.as_ref() + } +} +impl ::aws_types::request_id::RequestId for PutPublicAccessBlockConfigOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl PutPublicAccessBlockConfigOutput { + /// Creates a new builder-style object to manufacture [`PutPublicAccessBlockConfigOutput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput). + pub fn builder() -> crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigOutputBuilder { + crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigOutputBuilder::default() + } +} + +/// A builder for [`PutPublicAccessBlockConfigOutput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PutPublicAccessBlockConfigOutputBuilder { + pub(crate) public_access_block_config: ::std::option::Option, + _request_id: Option, +} +impl PutPublicAccessBlockConfigOutputBuilder { + ///

                  The public-access settings Lambda applied to your function.

                  + pub fn public_access_block_config(mut self, input: crate::types::PublicAccessBlockConfig) -> Self { + self.public_access_block_config = ::std::option::Option::Some(input); + self + } + ///

                  The public-access settings Lambda applied to your function.

                  + pub fn set_public_access_block_config(mut self, input: ::std::option::Option) -> Self { + self.public_access_block_config = input; + self + } + ///

                  The public-access settings Lambda applied to your function.

                  + pub fn get_public_access_block_config(&self) -> &::std::option::Option { + &self.public_access_block_config + } + pub(crate) fn _request_id(mut self, request_id: impl Into) -> Self { + self._request_id = Some(request_id.into()); + self + } + + pub(crate) fn _set_request_id(&mut self, request_id: Option) -> &mut Self { + self._request_id = request_id; + self + } + /// Consumes the builder and constructs a [`PutPublicAccessBlockConfigOutput`](crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput). + pub fn build(self) -> crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput { + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput { + public_access_block_config: self.public_access_block_config, + _request_id: self._request_id, + } + } +} diff --git a/sdk/lambda/src/operation/put_public_access_block_config/builders.rs b/sdk/lambda/src/operation/put_public_access_block_config/builders.rs new file mode 100644 index 000000000000..3c5e52f37e3b --- /dev/null +++ b/sdk/lambda/src/operation/put_public_access_block_config/builders.rs @@ -0,0 +1,149 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::put_public_access_block_config::_put_public_access_block_config_output::PutPublicAccessBlockConfigOutputBuilder; + +pub use crate::operation::put_public_access_block_config::_put_public_access_block_config_input::PutPublicAccessBlockConfigInputBuilder; + +impl crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.put_public_access_block_config(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `PutPublicAccessBlockConfig`. +/// +///

                  Configure your function's public-access settings.

                  +///

                  To control public access to a Lambda function, you can choose whether to allow the creation of resource-based policies that allow public access to that function. You can also block public access to a function, even if it has an existing resource-based policy that allows it.

                  +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct PutPublicAccessBlockConfigFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + > for PutPublicAccessBlockConfigFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl PutPublicAccessBlockConfigFluentBuilder { + /// Creates a new `PutPublicAccessBlockConfigFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the PutPublicAccessBlockConfig as a reference. + pub fn as_input(&self) -> &crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigInputBuilder { + &self.inner + } + /// Sends the request and returns the response. + /// + /// If an error occurs, an `SdkError` will be returned with additional details that + /// can be matched against. + /// + /// By default, any retryable failures will be retried twice. Retry behavior + /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be + /// set when configuring the client. + pub async fn send( + self, + ) -> ::std::result::Result< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = self + .inner + .build() + .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?; + let runtime_plugins = crate::operation::put_public_access_block_config::PutPublicAccessBlockConfig::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfig::orchestrate(&runtime_plugins, input).await + } + + /// Consumes this builder, creating a customizable operation that can be modified before being sent. + pub fn customize( + self, + ) -> crate::client::customize::CustomizableOperation< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, + Self, + > { + crate::client::customize::CustomizableOperation::new(self) + } + pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into) -> Self { + self.set_config_override(::std::option::Option::Some(config_override.into())); + self + } + + pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option) -> &mut Self { + self.config_override = config_override; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.resource_arn(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub fn public_access_block_config(mut self, input: crate::types::PublicAccessBlockConfig) -> Self { + self.inner = self.inner.public_access_block_config(input); + self + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub fn set_public_access_block_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_public_access_block_config(input); + self + } + ///

                  An object defining the public-access settings you want to apply.

                  + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + ///

                  The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

                  + pub fn get_public_access_block_config(&self) -> &::std::option::Option { + self.inner.get_public_access_block_config() + } +} diff --git a/sdk/lambda/src/operation/put_resource_policy.rs b/sdk/lambda/src/operation/put_resource_policy.rs new file mode 100644 index 000000000000..2199bc98723a --- /dev/null +++ b/sdk/lambda/src/operation/put_resource_policy.rs @@ -0,0 +1,440 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `PutResourcePolicy`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PutResourcePolicy; +impl PutResourcePolicy { + /// Creates a new `PutResourcePolicy` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::put_resource_policy::PutResourcePolicyInput, + ) -> ::std::result::Result< + crate::operation::put_resource_policy::PutResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::put_resource_policy::PutResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >| { + err.map_service_error(|err| { + err.downcast::() + .expect("correct error type") + }) + }; + let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None) + .await + .map_err(map_err)?; + let output = context.finalize().map_err(map_err)?; + ::std::result::Result::Ok( + output + .downcast::() + .expect("correct output type"), + ) + } + + pub(crate) async fn orchestrate_with_stop_point( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::put_resource_policy::PutResourcePolicyInput, + stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint, + ) -> ::std::result::Result< + ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, + ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input); + ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("lambda", "PutResourcePolicy", input, runtime_plugins, stop_point).await + } + + pub(crate) fn operation_runtime_plugins( + client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + client_config: &crate::config::Config, + config_override: ::std::option::Option, + ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins { + let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new()); + runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![ + ::aws_runtime::auth::sigv4::SCHEME_ID, + ])); + if let ::std::option::Option::Some(config_override) = config_override { + for plugin in config_override.runtime_plugins.iter().cloned() { + runtime_plugins = runtime_plugins.with_operation_plugin(plugin); + } + runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new( + config_override, + client_config.config.clone(), + &client_config.runtime_components, + )); + } + runtime_plugins + } +} +impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for PutResourcePolicy { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("PutResourcePolicy"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + PutResourcePolicyRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + PutResourcePolicyResponseDeserializer, + )); + + cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new( + ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(), + )); + + cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new( + "PutResourcePolicy", + "lambda", + )); + let mut signing_options = ::aws_runtime::auth::SigningOptions::default(); + signing_options.double_uri_encode = true; + signing_options.content_sha256_header = false; + signing_options.normalize_uri_path = true; + signing_options.payload_override = None; + + cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig { + signing_options, + ..::std::default::Default::default() + }); + + ::std::option::Option::Some(cfg.freeze()) + } + + fn runtime_components( + &self, + _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder, + ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> { + #[allow(unused_mut)] + let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("PutResourcePolicy") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(PutResourcePolicyEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::put_resource_policy::PutResourcePolicyError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::put_resource_policy::PutResourcePolicyError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::put_resource_policy::PutResourcePolicyError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct PutResourcePolicyResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutResourcePolicyResponseDeserializer { + fn deserialize_nonstreaming( + &self, + response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError { + let (success, status) = (response.status().is_success(), response.status().as_u16()); + let headers = response.headers(); + let body = response.body().bytes().expect("body loaded"); + #[allow(unused_mut)] + let mut force_error = false; + ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response)); + let parse_result = if !success && status != 200 || force_error { + crate::protocol_serde::shape_put_resource_policy::de_put_resource_policy_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_put_resource_policy::de_put_resource_policy_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct PutResourcePolicyRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutResourcePolicyRequestSerializer { + #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)] + fn serialize_input( + &self, + input: ::aws_smithy_runtime_api::client::interceptors::context::Input, + _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> { + let input = input + .downcast::() + .expect("correct type"); + let _header_serialization_settings = _cfg + .load::() + .cloned() + .unwrap_or_default(); + let mut request_builder = { + fn uri_base( + _input: &crate::operation::put_resource_policy::PutResourcePolicyInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + let input_1 = &_input.resource_arn; + let input_1 = input_1 + .as_ref() + .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("resource_arn", "cannot be empty or unset"))?; + let resource_arn = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default); + if resource_arn.is_empty() { + return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field( + "resource_arn", + "cannot be empty or unset", + )); + } + ::std::write!(output, "/2024-09-16/resource-policy/{ResourceArn}", ResourceArn = resource_arn).expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::put_resource_policy::PutResourcePolicyInput, + builder: ::http::request::Builder, + ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> { + let mut uri = ::std::string::String::new(); + uri_base(input, &mut uri)?; + ::std::result::Result::Ok(builder.method("PUT").uri(uri)) + } + let mut builder = update_http_builder(&input, ::http::request::Builder::new())?; + builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json"); + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_put_resource_policy::ser_put_resource_policy_input(&input)?); + if let Some(content_length) = body.content_length() { + let content_length = content_length.to_string(); + request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length); + } + ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap()) + } +} +#[derive(Debug)] +struct PutResourcePolicyEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutResourcePolicyEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "PutResourcePolicyEndpointParamsInterceptor" + } + + fn read_before_execution( + &self, + context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef< + '_, + ::aws_smithy_runtime_api::client::interceptors::context::Input, + ::aws_smithy_runtime_api::client::interceptors::context::Output, + ::aws_smithy_runtime_api::client::interceptors::context::Error, + >, + cfg: &mut ::aws_smithy_types::config_bag::ConfigBag, + ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> { + let _input = context + .input() + .downcast_ref::() + .ok_or("failed to downcast to PutResourcePolicyInput")?; + + let params = crate::config::endpoint::Params::builder() + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0)) + .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0)) + .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone())) + .build() + .map_err(|err| { + ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err) + })?; + cfg.interceptor_state() + .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params)); + ::std::result::Result::Ok(()) + } +} + +// The get_* functions below are generated from JMESPath expressions in the +// operationContextParams trait. They target the operation's input shape. + +/// Error type for the `PutResourcePolicyError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum PutResourcePolicyError { + ///

                  One of the parameters in the request is not valid.

                  + InvalidParameterValueException(crate::types::error::InvalidParameterValueException), + ///

                  The permissions policy for the resource is too large. For more information, see Lambda quotas.

                  + PolicyLengthExceededException(crate::types::error::PolicyLengthExceededException), + ///

                  The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.

                  + ///
                    + ///
                  • + ///

                    For AddPermission and RemovePermission API operations: Call GetPolicy to retrieve the latest RevisionId for your resource.

                  • + ///
                  • + ///

                    For all other API operations: Call GetFunction or GetAlias to retrieve the latest RevisionId for your resource.

                  • + ///
                  + PreconditionFailedException(crate::types::error::PreconditionFailedException), + ///

                  Lambda prevented your policy from being created because it would grant public access to your function. If you intended to create a public policy, use the PutPublicAccessBlockConfig API action to configure your function's public-access settings to allow public policies.

                  + PublicPolicyException(crate::types::error::PublicPolicyException), + ///

                  The resource already exists, or another operation is in progress.

                  + ResourceConflictException(crate::types::error::ResourceConflictException), + ///

                  The resource specified in the request does not exist.

                  + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

                  The Lambda service encountered an internal error.

                  + ServiceException(crate::types::error::ServiceException), + ///

                  The request throughput limit was exceeded. For more information, see Lambda quotas.

                  + TooManyRequestsException(crate::types::error::TooManyRequestsException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ +    `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-PutResourcePolicyError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl PutResourcePolicyError { + /// Creates the `PutResourcePolicyError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::Box>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.into(), + meta: ::std::default::Default::default(), + }) + } + + /// Creates the `PutResourcePolicyError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata). + pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source: err.clone().into(), + meta: err, + }) + } + /// + /// Returns error metadata, which includes the error code, message, + /// request ID, and potentially additional information. + /// + pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::PolicyLengthExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::PreconditionFailedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::PublicPolicyException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TooManyRequestsException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `PutResourcePolicyError::InvalidParameterValueException`. + pub fn is_invalid_parameter_value_exception(&self) -> bool { + matches!(self, Self::InvalidParameterValueException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::PolicyLengthExceededException`. + pub fn is_policy_length_exceeded_exception(&self) -> bool { + matches!(self, Self::PolicyLengthExceededException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::PreconditionFailedException`. + pub fn is_precondition_failed_exception(&self) -> bool { + matches!(self, Self::PreconditionFailedException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::PublicPolicyException`. + pub fn is_public_policy_exception(&self) -> bool { + matches!(self, Self::PublicPolicyException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::ResourceConflictException`. + pub fn is_resource_conflict_exception(&self) -> bool { + matches!(self, Self::ResourceConflictException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::ServiceException`. + pub fn is_service_exception(&self) -> bool { + matches!(self, Self::ServiceException(_)) + } + /// Returns `true` if the error kind is `PutResourcePolicyError::TooManyRequestsException`. + pub fn is_too_many_requests_exception(&self) -> bool { + matches!(self, Self::TooManyRequestsException(_)) + } +} +impl ::std::error::Error for PutResourcePolicyError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner), + Self::PolicyLengthExceededException(_inner) => ::std::option::Option::Some(_inner), + Self::PreconditionFailedException(_inner) => ::std::option::Option::Some(_inner), + Self::PublicPolicyException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceConflictException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ServiceException(_inner) => ::std::option::Option::Some(_inner), + Self::TooManyRequestsException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for PutResourcePolicyError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::InvalidParameterValueException(_inner) => _inner.fmt(f), + Self::PolicyLengthExceededException(_inner) => _inner.fmt(f), + Self::PreconditionFailedException(_inner) => _inner.fmt(f), + Self::PublicPolicyException(_inner) => _inner.fmt(f), + Self::ResourceConflictException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ServiceException(_inner) => _inner.fmt(f), + Self::TooManyRequestsException(_inner) => _inner.fmt(f), + Self::Unhandled(_inner) => { + if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { + write!(f, "unhandled error ({code})") + } else { + f.write_str("unhandled error") + } + } + } + } +} +impl ::aws_smithy_types::retry::ProvideErrorKind for PutResourcePolicyError { + fn code(&self) -> ::std::option::Option<&str> { + ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) + } + fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> { + ::std::option::Option::None + } +} +impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PutResourcePolicyError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::PolicyLengthExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::PreconditionFailedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::PublicPolicyException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TooManyRequestsException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for PutResourcePolicyError { + fn create_unhandled_error( + source: ::std::boxed::Box, + meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>, + ) -> Self { + Self::Unhandled(crate::error::sealed_unhandled::Unhandled { + source, + meta: meta.unwrap_or_default(), + }) + } +} +impl ::aws_types::request_id::RequestId for crate::operation::put_resource_policy::PutResourcePolicyError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::put_resource_policy::_put_resource_policy_output::PutResourcePolicyOutput; + +pub use crate::operation::put_resource_policy::_put_resource_policy_input::PutResourcePolicyInput; + +mod _put_resource_policy_input; + +mod _put_resource_policy_output; + +/// Builders +pub mod builders; diff --git a/sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_input.rs b/sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_input.rs new file mode 100644 index 000000000000..20dd2addc421 --- /dev/null +++ b/sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_input.rs @@ -0,0 +1,102 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct PutResourcePolicyInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub resource_arn: ::std::option::Option<::std::string::String>, + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub policy: ::std::option::Option<::std::string::String>, + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub revision_id: ::std::option::Option<::std::string::String>, +} +impl PutResourcePolicyInput { + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn resource_arn(&self) -> ::std::option::Option<&str> { + self.resource_arn.as_deref() + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub fn policy(&self) -> ::std::option::Option<&str> { + self.policy.as_deref() + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn revision_id(&self) -> ::std::option::Option<&str> { + self.revision_id.as_deref() + } +} +impl PutResourcePolicyInput { + /// Creates a new builder-style object to manufacture [`PutResourcePolicyInput`](crate::operation::put_resource_policy::PutResourcePolicyInput). + pub fn builder() -> crate::operation::put_resource_policy::builders::PutResourcePolicyInputBuilder { + crate::operation::put_resource_policy::builders::PutResourcePolicyInputBuilder::default() + } +} + +/// A builder for [`PutResourcePolicyInput`](crate::operation::put_resource_policy::PutResourcePolicyInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PutResourcePolicyInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, + pub(crate) policy: ::std::option::Option<::std::string::String>, + pub(crate) revision_id: ::std::option::Option<::std::string::String>, +} +impl PutResourcePolicyInputBuilder { + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + /// This field is required. + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.resource_arn = ::std::option::Option::Some(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.resource_arn = input; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + /// This field is required. + pub fn policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.policy = ::std::option::Option::Some(input.into()); + self + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub fn set_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.policy = input; + self + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub fn get_policy(&self) -> &::std::option::Option<::std::string::String> { + &self.policy + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.revision_id = ::std::option::Option::Some(input.into()); + self + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.revision_id = input; + self + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> { + &self.revision_id + } + /// Consumes the builder and constructs a [`PutResourcePolicyInput`](crate::operation::put_resource_policy::PutResourcePolicyInput). + pub fn build( + self, + ) -> ::std::result::Result { + ::std::result::Result::Ok(crate::operation::put_resource_policy::PutResourcePolicyInput { + resource_arn: self.resource_arn, + policy: self.policy, + revision_id: self.revision_id, + }) + } +} diff --git a/sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_output.rs b/sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_output.rs new file mode 100644 index 000000000000..c7f0440729b1 --- /dev/null +++ b/sdk/lambda/src/operation/put_resource_policy/_put_resource_policy_output.rs @@ -0,0 +1,88 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct PutResourcePolicyOutput { + ///

                  The policy Lambda added to your function.

                  + pub policy: ::std::option::Option<::std::string::String>, + ///

                  The revision ID of the policy Lambda added to your function.

                  + pub revision_id: ::std::option::Option<::std::string::String>, + _request_id: Option, +} +impl PutResourcePolicyOutput { + ///

                  The policy Lambda added to your function.

                  + pub fn policy(&self) -> ::std::option::Option<&str> { + self.policy.as_deref() + } + ///

                  The revision ID of the policy Lambda added to your function.

                  + pub fn revision_id(&self) -> ::std::option::Option<&str> { + self.revision_id.as_deref() + } +} +impl ::aws_types::request_id::RequestId for PutResourcePolicyOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl PutResourcePolicyOutput { + /// Creates a new builder-style object to manufacture [`PutResourcePolicyOutput`](crate::operation::put_resource_policy::PutResourcePolicyOutput). + pub fn builder() -> crate::operation::put_resource_policy::builders::PutResourcePolicyOutputBuilder { + crate::operation::put_resource_policy::builders::PutResourcePolicyOutputBuilder::default() + } +} + +/// A builder for [`PutResourcePolicyOutput`](crate::operation::put_resource_policy::PutResourcePolicyOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PutResourcePolicyOutputBuilder { + pub(crate) policy: ::std::option::Option<::std::string::String>, + pub(crate) revision_id: ::std::option::Option<::std::string::String>, + _request_id: Option, +} +impl PutResourcePolicyOutputBuilder { + ///

                  The policy Lambda added to your function.

                  + pub fn policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.policy = ::std::option::Option::Some(input.into()); + self + } + ///

                  The policy Lambda added to your function.

                  + pub fn set_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.policy = input; + self + } + ///

                  The policy Lambda added to your function.

                  + pub fn get_policy(&self) -> &::std::option::Option<::std::string::String> { + &self.policy + } + ///

                  The revision ID of the policy Lambda added to your function.

                  + pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.revision_id = ::std::option::Option::Some(input.into()); + self + } + ///

                  The revision ID of the policy Lambda added to your function.

                  + pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.revision_id = input; + self + } + ///

                  The revision ID of the policy Lambda added to your function.

                  + pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> { + &self.revision_id + } + pub(crate) fn _request_id(mut self, request_id: impl Into) -> Self { + self._request_id = Some(request_id.into()); + self + } + + pub(crate) fn _set_request_id(&mut self, request_id: Option) -> &mut Self { + self._request_id = request_id; + self + } + /// Consumes the builder and constructs a [`PutResourcePolicyOutput`](crate::operation::put_resource_policy::PutResourcePolicyOutput). + pub fn build(self) -> crate::operation::put_resource_policy::PutResourcePolicyOutput { + crate::operation::put_resource_policy::PutResourcePolicyOutput { + policy: self.policy, + revision_id: self.revision_id, + _request_id: self._request_id, + } + } +} diff --git a/sdk/lambda/src/operation/put_resource_policy/builders.rs b/sdk/lambda/src/operation/put_resource_policy/builders.rs new file mode 100644 index 000000000000..9a83749a061e --- /dev/null +++ b/sdk/lambda/src/operation/put_resource_policy/builders.rs @@ -0,0 +1,158 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::put_resource_policy::_put_resource_policy_output::PutResourcePolicyOutputBuilder; + +pub use crate::operation::put_resource_policy::_put_resource_policy_input::PutResourcePolicyInputBuilder; + +impl crate::operation::put_resource_policy::builders::PutResourcePolicyInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::put_resource_policy::PutResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::put_resource_policy::PutResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.put_resource_policy(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `PutResourcePolicy`. +/// +///

                  Adds a resource-based policy to a function. You can use resource-based policies to grant access to other Amazon Web Services accounts, organizations, or services. Resource-based policies apply to a single function, version, or alias.

                  +///

                  Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if you've previously added resource-based permissions to a function using the AddPermission action, those permissions will be overwritten by your new policy.

                  +///
                  +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct PutResourcePolicyFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::put_resource_policy::builders::PutResourcePolicyInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::put_resource_policy::PutResourcePolicyOutput, + crate::operation::put_resource_policy::PutResourcePolicyError, + > for PutResourcePolicyFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::put_resource_policy::PutResourcePolicyOutput, + crate::operation::put_resource_policy::PutResourcePolicyError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl PutResourcePolicyFluentBuilder { + /// Creates a new `PutResourcePolicyFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the PutResourcePolicy as a reference. + pub fn as_input(&self) -> &crate::operation::put_resource_policy::builders::PutResourcePolicyInputBuilder { + &self.inner + } + /// Sends the request and returns the response. + /// + /// If an error occurs, an `SdkError` will be returned with additional details that + /// can be matched against. + /// + /// By default, any retryable failures will be retried twice. Retry behavior + /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be + /// set when configuring the client. + pub async fn send( + self, + ) -> ::std::result::Result< + crate::operation::put_resource_policy::PutResourcePolicyOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::put_resource_policy::PutResourcePolicyError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let input = self + .inner + .build() + .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?; + let runtime_plugins = crate::operation::put_resource_policy::PutResourcePolicy::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::put_resource_policy::PutResourcePolicy::orchestrate(&runtime_plugins, input).await + } + + /// Consumes this builder, creating a customizable operation that can be modified before being sent. + pub fn customize( + self, + ) -> crate::client::customize::CustomizableOperation< + crate::operation::put_resource_policy::PutResourcePolicyOutput, + crate::operation::put_resource_policy::PutResourcePolicyError, + Self, + > { + crate::client::customize::CustomizableOperation::new(self) + } + pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into) -> Self { + self.set_config_override(::std::option::Option::Some(config_override.into())); + self + } + + pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option) -> &mut Self { + self.config_override = config_override; + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.resource_arn(input.into()); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_resource_arn(input); + self + } + ///

                  The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.

                  + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub fn policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.policy(input.into()); + self + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub fn set_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_policy(input); + self + } + ///

                  The JSON resource-based policy you want to add to your function.

                  + ///

                  To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.

                  + pub fn get_policy(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_policy() + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.revision_id(input.into()); + self + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_revision_id(input); + self + } + ///

                  Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.

                  + pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_revision_id() + } +} diff --git a/sdk/lambda/src/protocol_serde.rs b/sdk/lambda/src/protocol_serde.rs index ec233b8fa9bb..107e73a5e7e7 100644 --- a/sdk/lambda/src/protocol_serde.rs +++ b/sdk/lambda/src/protocol_serde.rs @@ -57,6 +57,8 @@ pub(crate) mod shape_delete_layer_version; pub(crate) mod shape_delete_provisioned_concurrency_config; +pub(crate) mod shape_delete_resource_policy; + pub(crate) mod shape_get_account_settings; pub(crate) mod shape_get_alias; @@ -89,6 +91,10 @@ pub(crate) mod shape_get_policy; pub(crate) mod shape_get_provisioned_concurrency_config; +pub(crate) mod shape_get_public_access_block_config; + +pub(crate) mod shape_get_resource_policy; + pub(crate) mod shape_get_runtime_management_config; pub(crate) mod shape_invoke; @@ -141,6 +147,10 @@ pub(crate) mod shape_put_function_recursion_config; pub(crate) mod shape_put_provisioned_concurrency_config; +pub(crate) mod shape_put_public_access_block_config; + +pub(crate) mod shape_put_resource_policy; + pub(crate) mod shape_put_runtime_management_config; pub(crate) mod shape_remove_layer_version_permission; @@ -241,6 +251,8 @@ pub(crate) mod shape_precondition_failed_exception; pub(crate) mod shape_provisioned_concurrency_config_not_found_exception; +pub(crate) mod shape_public_policy_exception; + pub(crate) mod shape_publish_layer_version_input; pub(crate) mod shape_publish_version_input; @@ -255,6 +267,10 @@ pub(crate) mod shape_put_function_recursion_config_input; pub(crate) mod shape_put_provisioned_concurrency_config_input; +pub(crate) mod shape_put_public_access_block_config_input; + +pub(crate) mod shape_put_resource_policy_input; + pub(crate) mod shape_put_runtime_management_config_input; pub(crate) mod shape_recursive_invocation_exception; @@ -389,6 +405,8 @@ pub(crate) mod shape_logging_config; pub(crate) mod shape_provisioned_concurrency_config_list; +pub(crate) mod shape_public_access_block_config; + pub(crate) mod shape_queues; pub(crate) mod shape_runtime_version_config; diff --git a/sdk/lambda/src/protocol_serde/shape_delete_resource_policy.rs b/sdk/lambda/src/protocol_serde/shape_delete_resource_policy.rs new file mode 100644 index 000000000000..d8b693723ce9 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_delete_resource_policy.rs @@ -0,0 +1,143 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_delete_resource_policy_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + crate::operation::delete_resource_policy::DeleteResourcePolicyError, +> { + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "InvalidParameterValueException" => crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default(); + output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "PreconditionFailedException" => crate::operation::delete_resource_policy::DeleteResourcePolicyError::PreconditionFailedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::PreconditionFailedExceptionBuilder::default(); + output = + crate::protocol_serde::shape_precondition_failed_exception::de_precondition_failed_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceConflictException" => crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_resource_conflict_exception::de_resource_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceNotFoundException" => crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default(); + output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ServiceException" => crate::operation::delete_resource_policy::DeleteResourcePolicyError::ServiceException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ServiceExceptionBuilder::default(); + output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "TooManyRequestsException" => crate::operation::delete_resource_policy::DeleteResourcePolicyError::TooManyRequestsException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default(); + output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled)?; + output = output.set_retry_after_seconds( + crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| { + crate::operation::delete_resource_policy::DeleteResourcePolicyError::unhandled( + "Failed to parse retryAfterSeconds from header `Retry-After", + ) + })?, + ); + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + _ => crate::operation::delete_resource_policy::DeleteResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_delete_resource_policy_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::delete_resource_policy::DeleteResourcePolicyOutput, + crate::operation::delete_resource_policy::DeleteResourcePolicyError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::delete_resource_policy::builders::DeleteResourcePolicyOutputBuilder::default(); + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} diff --git a/sdk/lambda/src/protocol_serde/shape_get_public_access_block_config.rs b/sdk/lambda/src/protocol_serde/shape_get_public_access_block_config.rs new file mode 100644 index 000000000000..2b5d1cacd539 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_get_public_access_block_config.rs @@ -0,0 +1,156 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_get_public_access_block_config_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, +> { + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "InvalidParameterValueException" => { + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default(); + output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ResourceNotFoundException" => { + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default(); + output = + crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ServiceException" => crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::ServiceException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ServiceExceptionBuilder::default(); + output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output) + .map_err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "TooManyRequestsException" => crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::TooManyRequestsException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default(); + output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output) + .map_err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled)?; + output = output.set_retry_after_seconds( + crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| { + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled( + "Failed to parse retryAfterSeconds from header `Retry-After", + ) + })?, + ); + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + _ => crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_get_public_access_block_config_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigOutput, + crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigOutputBuilder::default(); + output = crate::protocol_serde::shape_get_public_access_block_config::de_get_public_access_block_config(_response_body, output) + .map_err(crate::operation::get_public_access_block_config::GetPublicAccessBlockConfigError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} + +pub(crate) fn de_get_public_access_block_config( + value: &[u8], + mut builder: crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigOutputBuilder, +) -> Result< + crate::operation::get_public_access_block_config::builders::GetPublicAccessBlockConfigOutputBuilder, + ::aws_smithy_json::deserialize::error::DeserializeError, +> { + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "PublicAccessBlockConfig" => { + builder = builder.set_public_access_block_config( + crate::protocol_serde::shape_public_access_block_config::de_public_access_block_config(tokens)?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/lambda/src/protocol_serde/shape_get_resource_policy.rs b/sdk/lambda/src/protocol_serde/shape_get_resource_policy.rs new file mode 100644 index 000000000000..eeb0e9ba3fa4 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_get_resource_policy.rs @@ -0,0 +1,154 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_get_resource_policy_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result +{ + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "InvalidParameterValueException" => crate::operation::get_resource_policy::GetResourcePolicyError::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default(); + output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceNotFoundException" => crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default(); + output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ServiceException" => crate::operation::get_resource_policy::GetResourcePolicyError::ServiceException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ServiceExceptionBuilder::default(); + output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output) + .map_err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "TooManyRequestsException" => crate::operation::get_resource_policy::GetResourcePolicyError::TooManyRequestsException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default(); + output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output) + .map_err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled)?; + output = output.set_retry_after_seconds( + crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| { + crate::operation::get_resource_policy::GetResourcePolicyError::unhandled( + "Failed to parse retryAfterSeconds from header `Retry-After", + ) + })?, + ); + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + _ => crate::operation::get_resource_policy::GetResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_get_resource_policy_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::get_resource_policy::builders::GetResourcePolicyOutputBuilder::default(); + output = crate::protocol_serde::shape_get_resource_policy::de_get_resource_policy(_response_body, output) + .map_err(crate::operation::get_resource_policy::GetResourcePolicyError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} + +pub(crate) fn de_get_resource_policy( + value: &[u8], + mut builder: crate::operation::get_resource_policy::builders::GetResourcePolicyOutputBuilder, +) -> Result +{ + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "Policy" => { + builder = builder.set_policy( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/lambda/src/protocol_serde/shape_public_access_block_config.rs b/sdk/lambda/src/protocol_serde/shape_public_access_block_config.rs new file mode 100644 index 000000000000..820df0a1aecb --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_public_access_block_config.rs @@ -0,0 +1,53 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn de_public_access_block_config<'a, I>( + tokens: &mut ::std::iter::Peekable, +) -> Result, ::aws_smithy_json::deserialize::error::DeserializeError> +where + I: Iterator, ::aws_smithy_json::deserialize::error::DeserializeError>>, +{ + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::types::builders::PublicAccessBlockConfigBuilder::default(); + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "BlockPublicPolicy" => { + builder = builder.set_block_public_policy(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?); + } + "RestrictPublicResource" => { + builder = + builder.set_restrict_public_resource(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "expected start object or null", + )), + } +} + +pub fn ser_public_access_block_config( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::types::PublicAccessBlockConfig, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.block_public_policy { + object.key("BlockPublicPolicy").boolean(*var_1); + } + if let Some(var_2) = &input.restrict_public_resource { + object.key("RestrictPublicResource").boolean(*var_2); + } + Ok(()) +} diff --git a/sdk/lambda/src/protocol_serde/shape_public_policy_exception.rs b/sdk/lambda/src/protocol_serde/shape_public_policy_exception.rs new file mode 100644 index 000000000000..f32f6777d5ab --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_public_policy_exception.rs @@ -0,0 +1,43 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn de_public_policy_exception_json_err( + value: &[u8], + mut builder: crate::types::error::builders::PublicPolicyExceptionBuilder, +) -> Result { + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "Type" => { + builder = builder.set_type( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/lambda/src/protocol_serde/shape_put_public_access_block_config.rs b/sdk/lambda/src/protocol_serde/shape_put_public_access_block_config.rs new file mode 100644 index 000000000000..64627c97f870 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_put_public_access_block_config.rs @@ -0,0 +1,184 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_put_public_access_block_config_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, +> { + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "InvalidParameterValueException" => { + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default(); + output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ResourceConflictException" => { + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::ResourceConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceConflictExceptionBuilder::default(); + output = + crate::protocol_serde::shape_resource_conflict_exception::de_resource_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ResourceNotFoundException" => { + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default(); + output = + crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ServiceException" => crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::ServiceException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ServiceExceptionBuilder::default(); + output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "TooManyRequestsException" => crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::TooManyRequestsException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default(); + output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + output = output.set_retry_after_seconds( + crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| { + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled( + "Failed to parse retryAfterSeconds from header `Retry-After", + ) + })?, + ); + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + _ => crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_put_public_access_block_config_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigOutput, + crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigOutputBuilder::default(); + output = crate::protocol_serde::shape_put_public_access_block_config::de_put_public_access_block_config(_response_body, output) + .map_err(crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} + +pub fn ser_put_public_access_block_config_input( + input: &crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, +) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> { + let mut out = String::new(); + let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::protocol_serde::shape_put_public_access_block_config_input::ser_put_public_access_block_config_input_input(&mut object, input)?; + object.finish(); + Ok(::aws_smithy_types::body::SdkBody::from(out)) +} + +pub(crate) fn de_put_public_access_block_config( + value: &[u8], + mut builder: crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigOutputBuilder, +) -> Result< + crate::operation::put_public_access_block_config::builders::PutPublicAccessBlockConfigOutputBuilder, + ::aws_smithy_json::deserialize::error::DeserializeError, +> { + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "PublicAccessBlockConfig" => { + builder = builder.set_public_access_block_config( + crate::protocol_serde::shape_public_access_block_config::de_public_access_block_config(tokens)?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/lambda/src/protocol_serde/shape_put_public_access_block_config_input.rs b/sdk/lambda/src/protocol_serde/shape_put_public_access_block_config_input.rs new file mode 100644 index 000000000000..cea69a93e2c6 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_put_public_access_block_config_input.rs @@ -0,0 +1,13 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_put_public_access_block_config_input_input( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::operation::put_public_access_block_config::PutPublicAccessBlockConfigInput, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.public_access_block_config { + #[allow(unused_mut)] + let mut object_2 = object.key("PublicAccessBlockConfig").start_object(); + crate::protocol_serde::shape_public_access_block_config::ser_public_access_block_config(&mut object_2, var_1)?; + object_2.finish(); + } + Ok(()) +} diff --git a/sdk/lambda/src/protocol_serde/shape_put_resource_policy.rs b/sdk/lambda/src/protocol_serde/shape_put_resource_policy.rs new file mode 100644 index 000000000000..fea55eba4f9f --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_put_resource_policy.rs @@ -0,0 +1,228 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_put_resource_policy_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result +{ + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => return Err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "InvalidParameterValueException" => crate::operation::put_resource_policy::PutResourcePolicyError::InvalidParameterValueException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default(); + output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "PolicyLengthExceededException" => crate::operation::put_resource_policy::PutResourcePolicyError::PolicyLengthExceededException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::PolicyLengthExceededExceptionBuilder::default(); + output = crate::protocol_serde::shape_policy_length_exceeded_exception::de_policy_length_exceeded_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "PreconditionFailedException" => crate::operation::put_resource_policy::PutResourcePolicyError::PreconditionFailedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::PreconditionFailedExceptionBuilder::default(); + output = + crate::protocol_serde::shape_precondition_failed_exception::de_precondition_failed_exception_json_err(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "PublicPolicyException" => crate::operation::put_resource_policy::PutResourcePolicyError::PublicPolicyException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::PublicPolicyExceptionBuilder::default(); + output = crate::protocol_serde::shape_public_policy_exception::de_public_policy_exception_json_err(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceConflictException" => crate::operation::put_resource_policy::PutResourcePolicyError::ResourceConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_resource_conflict_exception::de_resource_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceNotFoundException" => crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default(); + output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ServiceException" => crate::operation::put_resource_policy::PutResourcePolicyError::ServiceException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ServiceExceptionBuilder::default(); + output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "TooManyRequestsException" => crate::operation::put_resource_policy::PutResourcePolicyError::TooManyRequestsException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default(); + output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + output = output.set_retry_after_seconds( + crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| { + crate::operation::put_resource_policy::PutResourcePolicyError::unhandled( + "Failed to parse retryAfterSeconds from header `Retry-After", + ) + })?, + ); + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + _ => crate::operation::put_resource_policy::PutResourcePolicyError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_put_resource_policy_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result +{ + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::put_resource_policy::builders::PutResourcePolicyOutputBuilder::default(); + output = crate::protocol_serde::shape_put_resource_policy::de_put_resource_policy(_response_body, output) + .map_err(crate::operation::put_resource_policy::PutResourcePolicyError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} + +pub fn ser_put_resource_policy_input( + input: &crate::operation::put_resource_policy::PutResourcePolicyInput, +) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> { + let mut out = String::new(); + let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::protocol_serde::shape_put_resource_policy_input::ser_put_resource_policy_input_input(&mut object, input)?; + object.finish(); + Ok(::aws_smithy_types::body::SdkBody::from(out)) +} + +pub(crate) fn de_put_resource_policy( + value: &[u8], + mut builder: crate::operation::put_resource_policy::builders::PutResourcePolicyOutputBuilder, +) -> Result +{ + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "Policy" => { + builder = builder.set_policy( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "RevisionId" => { + builder = builder.set_revision_id( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/lambda/src/protocol_serde/shape_put_resource_policy_input.rs b/sdk/lambda/src/protocol_serde/shape_put_resource_policy_input.rs new file mode 100644 index 000000000000..013acfd655b1 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_put_resource_policy_input.rs @@ -0,0 +1,13 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_put_resource_policy_input_input( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::operation::put_resource_policy::PutResourcePolicyInput, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.policy { + object.key("Policy").string(var_1.as_str()); + } + if let Some(var_2) = &input.revision_id { + object.key("RevisionId").string(var_2.as_str()); + } + Ok(()) +} diff --git a/sdk/lambda/src/types.rs b/sdk/lambda/src/types.rs index 4d22476ba30c..22951b0de3c0 100644 --- a/sdk/lambda/src/types.rs +++ b/sdk/lambda/src/types.rs @@ -117,6 +117,8 @@ pub use crate::types::_alias_routing_configuration::AliasRoutingConfiguration; pub use crate::types::_update_runtime_on::UpdateRuntimeOn; +pub use crate::types::_public_access_block_config::PublicAccessBlockConfig; + pub use crate::types::_provisioned_concurrency_status_enum::ProvisionedConcurrencyStatusEnum; pub use crate::types::_recursive_loop::RecursiveLoop; @@ -283,6 +285,8 @@ mod _provisioned_concurrency_config_list_item; mod _provisioned_concurrency_status_enum; +mod _public_access_block_config; + mod _recursive_loop; mod _response_streaming_invocation_type; diff --git a/sdk/lambda/src/types/_public_access_block_config.rs b/sdk/lambda/src/types/_public_access_block_config.rs new file mode 100644 index 000000000000..6df1c6c6a39c --- /dev/null +++ b/sdk/lambda/src/types/_public_access_block_config.rs @@ -0,0 +1,72 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +///

                  An object that defines the public-access settings for a function.

                  +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct PublicAccessBlockConfig { + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + pub block_public_policy: ::std::option::Option, + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + pub restrict_public_resource: ::std::option::Option, +} +impl PublicAccessBlockConfig { + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + pub fn block_public_policy(&self) -> ::std::option::Option { + self.block_public_policy + } + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + pub fn restrict_public_resource(&self) -> ::std::option::Option { + self.restrict_public_resource + } +} +impl PublicAccessBlockConfig { + /// Creates a new builder-style object to manufacture [`PublicAccessBlockConfig`](crate::types::PublicAccessBlockConfig). + pub fn builder() -> crate::types::builders::PublicAccessBlockConfigBuilder { + crate::types::builders::PublicAccessBlockConfigBuilder::default() + } +} + +/// A builder for [`PublicAccessBlockConfig`](crate::types::PublicAccessBlockConfig). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PublicAccessBlockConfigBuilder { + pub(crate) block_public_policy: ::std::option::Option, + pub(crate) restrict_public_resource: ::std::option::Option, +} +impl PublicAccessBlockConfigBuilder { + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + pub fn block_public_policy(mut self, input: bool) -> Self { + self.block_public_policy = ::std::option::Option::Some(input); + self + } + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + pub fn set_block_public_policy(mut self, input: ::std::option::Option) -> Self { + self.block_public_policy = input; + self + } + ///

                  To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

                  + pub fn get_block_public_policy(&self) -> &::std::option::Option { + &self.block_public_policy + } + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + pub fn restrict_public_resource(mut self, input: bool) -> Self { + self.restrict_public_resource = ::std::option::Option::Some(input); + self + } + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + pub fn set_restrict_public_resource(mut self, input: ::std::option::Option) -> Self { + self.restrict_public_resource = input; + self + } + ///

                  To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

                  + pub fn get_restrict_public_resource(&self) -> &::std::option::Option { + &self.restrict_public_resource + } + /// Consumes the builder and constructs a [`PublicAccessBlockConfig`](crate::types::PublicAccessBlockConfig). + pub fn build(self) -> crate::types::PublicAccessBlockConfig { + crate::types::PublicAccessBlockConfig { + block_public_policy: self.block_public_policy, + restrict_public_resource: self.restrict_public_resource, + } + } +} diff --git a/sdk/lambda/src/types/builders.rs b/sdk/lambda/src/types/builders.rs index 557aa4f92842..1bd2ab92ad2d 100644 --- a/sdk/lambda/src/types/builders.rs +++ b/sdk/lambda/src/types/builders.rs @@ -71,6 +71,8 @@ pub use crate::types::_allowed_publishers::AllowedPublishersBuilder; pub use crate::types::_alias_routing_configuration::AliasRoutingConfigurationBuilder; +pub use crate::types::_public_access_block_config::PublicAccessBlockConfigBuilder; + pub use crate::types::_layer_version_content_output::LayerVersionContentOutputBuilder; pub use crate::types::_layer_version_content_input::LayerVersionContentInputBuilder; diff --git a/sdk/lambda/src/types/error.rs b/sdk/lambda/src/types/error.rs index b14e2e0ca6ec..0907660d1181 100644 --- a/sdk/lambda/src/types/error.rs +++ b/sdk/lambda/src/types/error.rs @@ -21,6 +21,10 @@ pub use crate::types::error::_code_storage_exceeded_exception::CodeStorageExceed pub use crate::types::error::_resource_in_use_exception::ResourceInUseException; +pub use crate::types::error::_public_policy_exception::PublicPolicyException; + +pub use crate::types::error::_policy_length_exceeded_exception::PolicyLengthExceededException; + pub use crate::types::error::_unsupported_media_type_exception::UnsupportedMediaTypeException; pub use crate::types::error::_subnet_ip_address_limit_reached_exception::SubnetIpAddressLimitReachedException; @@ -166,8 +170,6 @@ impl ::aws_types::request_id::RequestId for crate::types::error::InvokeWithRespo pub use crate::types::error::_provisioned_concurrency_config_not_found_exception::ProvisionedConcurrencyConfigNotFoundException; -pub use crate::types::error::_policy_length_exceeded_exception::PolicyLengthExceededException; - mod _code_signing_config_not_found_exception; mod _code_storage_exceeded_exception; @@ -218,6 +220,8 @@ mod _precondition_failed_exception; mod _provisioned_concurrency_config_not_found_exception; +mod _public_policy_exception; + mod _recursive_invocation_exception; mod _request_too_large_exception; diff --git a/sdk/lambda/src/types/error/_public_policy_exception.rs b/sdk/lambda/src/types/error/_public_policy_exception.rs new file mode 100644 index 000000000000..b39fd50d9cc1 --- /dev/null +++ b/sdk/lambda/src/types/error/_public_policy_exception.rs @@ -0,0 +1,111 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +///

                  Lambda prevented your policy from being created because it would grant public access to your function. If you intended to create a public policy, use the PutPublicAccessBlockConfig API action to configure your function's public-access settings to allow public policies.

                  +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct PublicPolicyException { + ///

                  The exception type.

                  + pub r#type: ::std::option::Option<::std::string::String>, + #[allow(missing_docs)] // documentation missing in model + pub message: ::std::option::Option<::std::string::String>, + pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata, +} +impl PublicPolicyException { + ///

                  The exception type.

                  + pub fn r#type(&self) -> ::std::option::Option<&str> { + self.r#type.as_deref() + } +} +impl PublicPolicyException { + /// Returns the error message. + pub fn message(&self) -> ::std::option::Option<&str> { + self.message.as_deref() + } +} +impl ::std::fmt::Display for PublicPolicyException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + ::std::write!(f, "PublicPolicyException")?; + if let ::std::option::Option::Some(inner_1) = &self.message { + { + ::std::write!(f, ": {}", inner_1)?; + } + } + Ok(()) + } +} +impl ::std::error::Error for PublicPolicyException {} +impl ::aws_types::request_id::RequestId for crate::types::error::PublicPolicyException { + fn request_id(&self) -> Option<&str> { + use ::aws_smithy_types::error::metadata::ProvideErrorMetadata; + self.meta().request_id() + } +} +impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for PublicPolicyException { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + &self.meta + } +} +impl PublicPolicyException { + /// Creates a new builder-style object to manufacture [`PublicPolicyException`](crate::types::error::PublicPolicyException). + pub fn builder() -> crate::types::error::builders::PublicPolicyExceptionBuilder { + crate::types::error::builders::PublicPolicyExceptionBuilder::default() + } +} + +/// A builder for [`PublicPolicyException`](crate::types::error::PublicPolicyException). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct PublicPolicyExceptionBuilder { + pub(crate) r#type: ::std::option::Option<::std::string::String>, + pub(crate) message: ::std::option::Option<::std::string::String>, + meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>, +} +impl PublicPolicyExceptionBuilder { + ///

                  The exception type.

                  + pub fn r#type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.r#type = ::std::option::Option::Some(input.into()); + self + } + ///

                  The exception type.

                  + pub fn set_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.r#type = input; + self + } + ///

                  The exception type.

                  + pub fn get_type(&self) -> &::std::option::Option<::std::string::String> { + &self.r#type + } + #[allow(missing_docs)] // documentation missing in model + pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.message = ::std::option::Option::Some(input.into()); + self + } + #[allow(missing_docs)] // documentation missing in model + pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.message = input; + self + } + #[allow(missing_docs)] // documentation missing in model + pub fn get_message(&self) -> &::std::option::Option<::std::string::String> { + &self.message + } + /// Sets error metadata + pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self { + self.meta = Some(meta); + self + } + + /// Sets error metadata + pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self { + self.meta = meta; + self + } + /// Consumes the builder and constructs a [`PublicPolicyException`](crate::types::error::PublicPolicyException). + pub fn build(self) -> crate::types::error::PublicPolicyException { + crate::types::error::PublicPolicyException { + r#type: self.r#type, + message: self.message, + meta: self.meta.unwrap_or_default(), + } + } +} diff --git a/sdk/lambda/src/types/error/builders.rs b/sdk/lambda/src/types/error/builders.rs index 431b6a1e8932..70a80120074f 100644 --- a/sdk/lambda/src/types/error/builders.rs +++ b/sdk/lambda/src/types/error/builders.rs @@ -21,6 +21,10 @@ pub use crate::types::error::_code_storage_exceeded_exception::CodeStorageExceed pub use crate::types::error::_resource_in_use_exception::ResourceInUseExceptionBuilder; +pub use crate::types::error::_public_policy_exception::PublicPolicyExceptionBuilder; + +pub use crate::types::error::_policy_length_exceeded_exception::PolicyLengthExceededExceptionBuilder; + pub use crate::types::error::_unsupported_media_type_exception::UnsupportedMediaTypeExceptionBuilder; pub use crate::types::error::_subnet_ip_address_limit_reached_exception::SubnetIpAddressLimitReachedExceptionBuilder; @@ -72,5 +76,3 @@ pub use crate::types::error::_ec2_throttled_exception::Ec2ThrottledExceptionBuil pub use crate::types::error::_ec2_access_denied_exception::Ec2AccessDeniedExceptionBuilder; pub use crate::types::error::_provisioned_concurrency_config_not_found_exception::ProvisionedConcurrencyConfigNotFoundExceptionBuilder; - -pub use crate::types::error::_policy_length_exceeded_exception::PolicyLengthExceededExceptionBuilder; diff --git a/sdk/rds/src/client/create_db_instance.rs b/sdk/rds/src/client/create_db_instance.rs index 9de3ccb3e615..4be8194d0265 100644 --- a/sdk/rds/src/client/create_db_instance.rs +++ b/sdk/rds/src/client/create_db_instance.rs @@ -22,7 +22,7 @@ impl super::Client { /// - [`multi_az(bool)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::multi_az) / [`set_multi_az(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_multi_az):
                  required: **false**

                  Specifies whether the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment.

                  This setting doesn't apply to the following DB instances:

                  • Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.)

                  • RDS Custom


                  /// - [`engine_version(impl Into)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::engine_version) / [`set_engine_version(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_engine_version):
                  required: **false**

                  The version number of the database engine to use.

                  This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.

                  For a list of valid engine versions, use the DescribeDBEngineVersions operation.

                  The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.

                  Amazon RDS Custom for Oracle

                  A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.customized_string. A valid CEV name is 19.my_cev1. For more information, see Creating an RDS Custom for Oracle DB instance in the Amazon RDS User Guide.

                  Amazon RDS Custom for SQL Server

                  See RDS Custom for SQL Server general requirements in the Amazon RDS User Guide.

                  RDS for Db2

                  For information, see Db2 on Amazon RDS versions in the Amazon RDS User Guide.

                  RDS for MariaDB

                  For information, see MariaDB on Amazon RDS versions in the Amazon RDS User Guide.

                  RDS for Microsoft SQL Server

                  For information, see Microsoft SQL Server versions on Amazon RDS in the Amazon RDS User Guide.

                  RDS for MySQL

                  For information, see MySQL on Amazon RDS versions in the Amazon RDS User Guide.

                  RDS for Oracle

                  For information, see Oracle Database Engine release notes in the Amazon RDS User Guide.

                  RDS for PostgreSQL

                  For information, see Amazon RDS for PostgreSQL versions and extensions in the Amazon RDS User Guide.


                  /// - [`auto_minor_version_upgrade(bool)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::auto_minor_version_upgrade) / [`set_auto_minor_version_upgrade(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_auto_minor_version_upgrade):
                  required: **false**

                  Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.

                  If you create an RDS Custom DB instance, you must set AutoMinorVersionUpgrade to false.


                  - /// - [`license_model(impl Into)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::license_model) / [`set_license_model(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_license_model):
                  required: **false**

                  The license model information for this DB instance.

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  The default for RDS for Db2 is bring-your-own-license.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  Valid Values:

                  • RDS for Db2 - bring-your-own-license | marketplace-license

                  • RDS for MariaDB - general-public-license

                  • RDS for Microsoft SQL Server - license-included

                  • RDS for MySQL - general-public-license

                  • RDS for Oracle - bring-your-own-license | license-included

                  • RDS for PostgreSQL - postgresql-license


                  + /// - [`license_model(impl Into)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::license_model) / [`set_license_model(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_license_model):
                  required: **false**

                  The license model information for this DB instance.

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  The default for RDS for Db2 is bring-your-own-license.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  Valid Values:

                  • RDS for Db2 - bring-your-own-license | marketplace-license

                  • RDS for MariaDB - general-public-license

                  • RDS for Microsoft SQL Server - license-included

                  • RDS for MySQL - general-public-license

                  • RDS for Oracle - bring-your-own-license | license-included

                  • RDS for PostgreSQL - postgresql-license


                  /// - [`iops(i32)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::iops) / [`set_iops(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_iops):
                  required: **false**

                  The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see Amazon RDS DB instance storage in the Amazon RDS User Guide.

                  This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.

                  Constraints:

                  • For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.

                  • For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.


                  /// - [`option_group_name(impl Into)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::option_group_name) / [`set_option_group_name(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_option_group_name):
                  required: **false**

                  The option group to associate the DB instance with.

                  Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.


                  /// - [`character_set_name(impl Into)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::character_set_name) / [`set_character_set_name(Option)`](crate::operation::create_db_instance::builders::CreateDBInstanceFluentBuilder::set_character_set_name):
                  required: **false**

                  For supported engines, the character set (CharacterSet) to associate the DB instance with.

                  This setting doesn't apply to the following DB instances:

                  • Amazon Aurora - The character set is managed by the DB cluster. For more information, see CreateDBCluster.

                  • RDS Custom - However, if you need to change the character set, you can change it on the database itself.


                  diff --git a/sdk/rds/src/client/restore_db_instance_from_db_snapshot.rs b/sdk/rds/src/client/restore_db_instance_from_db_snapshot.rs index ddacca352d4c..4c1a5fba567e 100644 --- a/sdk/rds/src/client/restore_db_instance_from_db_snapshot.rs +++ b/sdk/rds/src/client/restore_db_instance_from_db_snapshot.rs @@ -12,7 +12,7 @@ impl super::Client { /// - [`multi_az(bool)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::multi_az) / [`set_multi_az(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_multi_az):
                  required: **false**

                  Specifies whether the DB instance is a Multi-AZ deployment.

                  This setting doesn't apply to RDS Custom.

                  Constraint: You can't specify the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment.


                  /// - [`publicly_accessible(bool)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::publicly_accessible) / [`set_publicly_accessible(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_publicly_accessible):
                  required: **false**

                  Specifies whether the DB instance is publicly accessible.

                  When the DB instance is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB instance's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB instance's VPC. Access to the DB instance is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB instance doesn't permit it.

                  When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.

                  For more information, see CreateDBInstance.


                  /// - [`auto_minor_version_upgrade(bool)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::auto_minor_version_upgrade) / [`set_auto_minor_version_upgrade(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_auto_minor_version_upgrade):
                  required: **false**

                  Specifies whether to automatically apply minor version upgrades to the DB instance during the maintenance window.

                  If you restore an RDS Custom DB instance, you must disable this parameter.


                  - /// - [`license_model(impl Into)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::license_model) / [`set_license_model(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_license_model):
                  required: **false**

                  License model information for the restored DB instance.

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  Valid Values:

                  • RDS for Db2 - bring-your-own-license | marketplace-license

                  • RDS for MariaDB - general-public-license

                  • RDS for Microsoft SQL Server - license-included

                  • RDS for MySQL - general-public-license

                  • RDS for Oracle - bring-your-own-license | license-included

                  • RDS for PostgreSQL - postgresql-license

                  Default: Same as the source.


                  + /// - [`license_model(impl Into)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::license_model) / [`set_license_model(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_license_model):
                  required: **false**

                  License model information for the restored DB instance.

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  Valid Values:

                  • RDS for Db2 - bring-your-own-license | marketplace-license

                  • RDS for MariaDB - general-public-license

                  • RDS for Microsoft SQL Server - license-included

                  • RDS for MySQL - general-public-license

                  • RDS for Oracle - bring-your-own-license | license-included

                  • RDS for PostgreSQL - postgresql-license

                  Default: Same as the source.


                  /// - [`db_name(impl Into)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::db_name) / [`set_db_name(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_db_name):
                  required: **false**

                  The name of the database for the restored DB instance.

                  This parameter only applies to RDS for Oracle and RDS for SQL Server DB instances. It doesn't apply to the other engines or to RDS Custom DB instances.


                  /// - [`engine(impl Into)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::engine) / [`set_engine(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_engine):
                  required: **false**

                  The database engine to use for the new instance.

                  This setting doesn't apply to RDS Custom.

                  Default: The same as source

                  Constraint: Must be compatible with the engine of the source. For example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot.

                  Valid Values:

                  • db2-ae

                  • db2-se

                  • mariadb

                  • mysql

                  • oracle-ee

                  • oracle-ee-cdb

                  • oracle-se2

                  • oracle-se2-cdb

                  • postgres

                  • sqlserver-ee

                  • sqlserver-se

                  • sqlserver-ex

                  • sqlserver-web


                  /// - [`iops(i32)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::iops) / [`set_iops(Option)`](crate::operation::restore_db_instance_from_db_snapshot::builders::RestoreDBInstanceFromDBSnapshotFluentBuilder::set_iops):
                  required: **false**

                  Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter isn't specified, the IOPS value is taken from the backup. If this parameter is set to 0, the new instance is converted to a non-PIOPS instance. The conversion takes additional time, though your DB instance is available for connections before the conversion starts.

                  The provisioned IOPS value must follow the requirements for your database engine. For more information, see Amazon RDS Provisioned IOPS storage in the Amazon RDS User Guide.

                  Constraints: Must be an integer greater than 1000.


                  diff --git a/sdk/rds/src/client/restore_db_instance_to_point_in_time.rs b/sdk/rds/src/client/restore_db_instance_to_point_in_time.rs index ebd8fe626ad5..5d0105c030de 100644 --- a/sdk/rds/src/client/restore_db_instance_to_point_in_time.rs +++ b/sdk/rds/src/client/restore_db_instance_to_point_in_time.rs @@ -14,7 +14,7 @@ impl super::Client { /// - [`multi_az(bool)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::multi_az) / [`set_multi_az(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_multi_az):
                  required: **false**

                  Secifies whether the DB instance is a Multi-AZ deployment.

                  This setting doesn't apply to RDS Custom.

                  Constraints:

                  • You can't specify the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment.


                  /// - [`publicly_accessible(bool)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::publicly_accessible) / [`set_publicly_accessible(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_publicly_accessible):
                  required: **false**

                  Specifies whether the DB instance is publicly accessible.

                  When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.

                  When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.

                  For more information, see CreateDBInstance.


                  /// - [`auto_minor_version_upgrade(bool)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::auto_minor_version_upgrade) / [`set_auto_minor_version_upgrade(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_auto_minor_version_upgrade):
                  required: **false**

                  Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window.

                  This setting doesn't apply to RDS Custom.


                  - /// - [`license_model(impl Into)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::license_model) / [`set_license_model(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_license_model):
                  required: **false**

                  The license model information for the restored DB instance.

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  Valid Values:

                  • RDS for Db2 - bring-your-own-license | marketplace-license

                  • RDS for MariaDB - general-public-license

                  • RDS for Microsoft SQL Server - license-included

                  • RDS for MySQL - general-public-license

                  • RDS for Oracle - bring-your-own-license | license-included

                  • RDS for PostgreSQL - postgresql-license

                  Default: Same as the source.


                  + /// - [`license_model(impl Into)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::license_model) / [`set_license_model(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_license_model):
                  required: **false**

                  The license model information for the restored DB instance.

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  Valid Values:

                  • RDS for Db2 - bring-your-own-license | marketplace-license

                  • RDS for MariaDB - general-public-license

                  • RDS for Microsoft SQL Server - license-included

                  • RDS for MySQL - general-public-license

                  • RDS for Oracle - bring-your-own-license | license-included

                  • RDS for PostgreSQL - postgresql-license

                  Default: Same as the source.


                  /// - [`db_name(impl Into)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::db_name) / [`set_db_name(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_db_name):
                  required: **false**

                  The database name for the restored DB instance.

                  This parameter doesn't apply to the following DB instances:

                  • RDS Custom

                  • RDS for Db2

                  • RDS for MariaDB

                  • RDS for MySQL


                  /// - [`engine(impl Into)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::engine) / [`set_engine(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_engine):
                  required: **false**

                  The database engine to use for the new instance.

                  This setting doesn't apply to RDS Custom.

                  Valid Values:

                  • db2-ae

                  • db2-se

                  • mariadb

                  • mysql

                  • oracle-ee

                  • oracle-ee-cdb

                  • oracle-se2

                  • oracle-se2-cdb

                  • postgres

                  • sqlserver-ee

                  • sqlserver-se

                  • sqlserver-ex

                  • sqlserver-web

                  Default: The same as source

                  Constraints:

                  • Must be compatible with the engine of the source.


                  /// - [`iops(i32)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::iops) / [`set_iops(Option)`](crate::operation::restore_db_instance_to_point_in_time::builders::RestoreDBInstanceToPointInTimeFluentBuilder::set_iops):
                  required: **false**

                  The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance.

                  This setting doesn't apply to SQL Server.

                  Constraints:

                  • Must be an integer greater than 1000.


                  diff --git a/sdk/rds/src/operation/create_db_instance/_create_db_instance_input.rs b/sdk/rds/src/operation/create_db_instance/_create_db_instance_input.rs index 08989a663a74..ebb4584498ac 100644 --- a/sdk/rds/src/operation/create_db_instance/_create_db_instance_input.rs +++ b/sdk/rds/src/operation/create_db_instance/_create_db_instance_input.rs @@ -531,7 +531,7 @@ pub struct CreateDbInstanceInput { ///

                  If you create an RDS Custom DB instance, you must set AutoMinorVersionUpgrade to false.

                  pub auto_minor_version_upgrade: ::std::option::Option, ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  @@ -1411,7 +1411,7 @@ impl CreateDbInstanceInput { self.auto_minor_version_upgrade } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  @@ -3639,7 +3639,7 @@ impl CreateDbInstanceInputBuilder { &self.auto_minor_version_upgrade } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  @@ -3663,7 +3663,7 @@ impl CreateDbInstanceInputBuilder { self } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  @@ -3687,7 +3687,7 @@ impl CreateDbInstanceInputBuilder { self } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  diff --git a/sdk/rds/src/operation/create_db_instance/builders.rs b/sdk/rds/src/operation/create_db_instance/builders.rs index dfc59ebbf72e..09ce3150e922 100644 --- a/sdk/rds/src/operation/create_db_instance/builders.rs +++ b/sdk/rds/src/operation/create_db_instance/builders.rs @@ -1852,7 +1852,7 @@ impl CreateDBInstanceFluentBuilder { self.inner.get_auto_minor_version_upgrade() } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  @@ -1876,7 +1876,7 @@ impl CreateDBInstanceFluentBuilder { self } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  @@ -1900,7 +1900,7 @@ impl CreateDBInstanceFluentBuilder { self } ///

                  The license model information for this DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///

                  The default for RDS for Db2 is bring-your-own-license.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  diff --git a/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/_restore_db_instance_from_db_snapshot_input.rs b/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/_restore_db_instance_from_db_snapshot_input.rs index 079401631b85..6733f41ac713 100644 --- a/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/_restore_db_instance_from_db_snapshot_input.rs +++ b/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/_restore_db_instance_from_db_snapshot_input.rs @@ -62,7 +62,7 @@ pub struct RestoreDbInstanceFromDbSnapshotInput { ///

                  If you restore an RDS Custom DB instance, you must disable this parameter.

                  pub auto_minor_version_upgrade: ::std::option::Option, ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -367,7 +367,7 @@ impl RestoreDbInstanceFromDbSnapshotInput { self.auto_minor_version_upgrade } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -971,7 +971,7 @@ impl RestoreDbInstanceFromDbSnapshotInputBuilder { &self.auto_minor_version_upgrade } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -995,7 +995,7 @@ impl RestoreDbInstanceFromDbSnapshotInputBuilder { self } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -1019,7 +1019,7 @@ impl RestoreDbInstanceFromDbSnapshotInputBuilder { self } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  diff --git a/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/builders.rs b/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/builders.rs index 021107c89fd6..3c43980c3962 100644 --- a/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/builders.rs +++ b/sdk/rds/src/operation/restore_db_instance_from_db_snapshot/builders.rs @@ -356,7 +356,7 @@ impl RestoreDBInstanceFromDBSnapshotFluentBuilder { self.inner.get_auto_minor_version_upgrade() } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -380,7 +380,7 @@ impl RestoreDBInstanceFromDBSnapshotFluentBuilder { self } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -404,7 +404,7 @@ impl RestoreDBInstanceFromDBSnapshotFluentBuilder { self } ///

                  License model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  diff --git a/sdk/rds/src/operation/restore_db_instance_to_point_in_time/_restore_db_instance_to_point_in_time_input.rs b/sdk/rds/src/operation/restore_db_instance_to_point_in_time/_restore_db_instance_to_point_in_time_input.rs index bc8ffc6198bd..cc1809cb4558 100644 --- a/sdk/rds/src/operation/restore_db_instance_to_point_in_time/_restore_db_instance_to_point_in_time_input.rs +++ b/sdk/rds/src/operation/restore_db_instance_to_point_in_time/_restore_db_instance_to_point_in_time_input.rs @@ -86,7 +86,7 @@ pub struct RestoreDbInstanceToPointInTimeInput { ///

                  This setting doesn't apply to RDS Custom.

                  pub auto_minor_version_upgrade: ::std::option::Option, ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -439,7 +439,7 @@ impl RestoreDbInstanceToPointInTimeInput { self.auto_minor_version_upgrade } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -1159,7 +1159,7 @@ impl RestoreDbInstanceToPointInTimeInputBuilder { &self.auto_minor_version_upgrade } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -1183,7 +1183,7 @@ impl RestoreDbInstanceToPointInTimeInputBuilder { self } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -1207,7 +1207,7 @@ impl RestoreDbInstanceToPointInTimeInputBuilder { self } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  diff --git a/sdk/rds/src/operation/restore_db_instance_to_point_in_time/builders.rs b/sdk/rds/src/operation/restore_db_instance_to_point_in_time/builders.rs index dfb24ee073ef..e17e37e61b58 100644 --- a/sdk/rds/src/operation/restore_db_instance_to_point_in_time/builders.rs +++ b/sdk/rds/src/operation/restore_db_instance_to_point_in_time/builders.rs @@ -443,7 +443,7 @@ impl RestoreDBInstanceToPointInTimeFluentBuilder { self.inner.get_auto_minor_version_upgrade() } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -467,7 +467,7 @@ impl RestoreDBInstanceToPointInTimeFluentBuilder { self } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  @@ -491,7 +491,7 @@ impl RestoreDBInstanceToPointInTimeFluentBuilder { self } ///

                  The license model information for the restored DB instance.

                  - ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

                  + ///

                  License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

                  ///
                  ///

                  This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

                  ///

                  Valid Values:

                  diff --git a/sdk/ssm/src/client/create_activation.rs b/sdk/ssm/src/client/create_activation.rs index b7297223c236..2ad26158fb47 100644 --- a/sdk/ssm/src/client/create_activation.rs +++ b/sdk/ssm/src/client/create_activation.rs @@ -5,9 +5,9 @@ impl super::Client { /// - The fluent builder is configurable: /// - [`description(impl Into)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::description) / [`set_description(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_description):
                  required: **false**

                  A user-defined description of the resource that you want to register with Systems Manager.

                  Don't enter personally identifiable information in this field.


                  /// - [`default_instance_name(impl Into)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::default_instance_name) / [`set_default_instance_name(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_default_instance_name):
                  required: **false**

                  The name of the registered, managed node as it will appear in the Amazon Web Services Systems Manager console or when you use the Amazon Web Services command line tools to list Systems Manager resources.

                  Don't enter personally identifiable information in this field.


                  - /// - [`iam_role(impl Into)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::iam_role) / [`set_iam_role(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_iam_role):
                  required: **true**

                  The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                  You can't specify an IAM service-linked role for this parameter. You must create a unique role.


                  + /// - [`iam_role(impl Into)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::iam_role) / [`set_iam_role(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_iam_role):
                  required: **true**

                  The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                  You can't specify an IAM service-linked role for this parameter. You must create a unique role.


                  /// - [`registration_limit(i32)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::registration_limit) / [`set_registration_limit(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_registration_limit):
                  required: **false**

                  Specify the maximum number of managed nodes you want to register. The default value is 1.


                  - /// - [`expiration_date(DateTime)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::expiration_date) / [`set_expiration_date(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_expiration_date):
                  required: **false**

                  The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.


                  + /// - [`expiration_date(DateTime)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::expiration_date) / [`set_expiration_date(Option)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_expiration_date):
                  required: **false**

                  The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.


                  /// - [`tags(Tag)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_tags):
                  required: **false**

                  Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an activation to identify which servers or virtual machines (VMs) in your on-premises environment you intend to activate. In this case, you could specify the following key-value pairs:

                  • Key=OS,Value=Windows

                  • Key=Environment,Value=Production

                  When you install SSM Agent on your on-premises servers and VMs, you specify an activation ID and code. When you specify the activation ID and code, tags assigned to the activation are automatically applied to the on-premises servers or VMs.

                  You can't add tags to or delete tags from an existing activation. You can tag your on-premises servers, edge devices, and VMs after they connect to Systems Manager for the first time and are assigned a managed node ID. This means they are listed in the Amazon Web Services Systems Manager console with an ID that is prefixed with "mi-". For information about how to add tags to your managed nodes, see AddTagsToResource. For information about how to remove tags from your managed nodes, see RemoveTagsFromResource.


                  /// - [`registration_metadata(RegistrationMetadataItem)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::registration_metadata) / [`set_registration_metadata(Option>)`](crate::operation::create_activation::builders::CreateActivationFluentBuilder::set_registration_metadata):
                  required: **false**

                  Reserved for internal use.


                  /// - On success, responds with [`CreateActivationOutput`](crate::operation::create_activation::CreateActivationOutput) with field(s): diff --git a/sdk/ssm/src/client/create_association.rs b/sdk/ssm/src/client/create_association.rs index f07cc7b83e9e..2be6c49dc88d 100644 --- a/sdk/ssm/src/client/create_association.rs +++ b/sdk/ssm/src/client/create_association.rs @@ -7,7 +7,7 @@ impl super::Client { /// - [`document_version(impl Into)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::document_version) / [`set_document_version(Option)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_document_version):
                  required: **false**

                  The document version you want to associate with the targets. Can be a specific version or the default version.

                  State Manager doesn't support running associations that use a new version of a document if that document is shared from another account. State Manager always runs the default version of a document if shared from another account, even though the Systems Manager console shows that a new version was processed. If you want to run an association using a new version of a document shared form another account, you must set the document version to default.


                  /// - [`instance_id(impl Into)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::instance_id) / [`set_instance_id(Option)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_instance_id):
                  required: **false**

                  The managed node ID.

                  InstanceId has been deprecated. To specify a managed node ID for an association, use the Targets parameter. Requests that include the parameter InstanceID with Systems Manager documents (SSM documents) that use schema version 2.0 or later will fail. In addition, if you use the parameter InstanceId, you can't use the parameters AssociationName, DocumentVersion, MaxErrors, MaxConcurrency, OutputLocation, or ScheduleExpression. To use these parameters, you must use the Targets parameter.


                  /// - [`parameters(impl Into, Vec::)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::parameters) / [`set_parameters(Option>>)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_parameters):
                  required: **false**

                  The parameters for the runtime configuration of the document.


                  - /// - [`targets(Target)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::targets) / [`set_targets(Option>)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_targets):
                  required: **false**

                  The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`targets(Target)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::targets) / [`set_targets(Option>)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_targets):
                  required: **false**

                  The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.


                  /// - [`schedule_expression(impl Into)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::schedule_expression) / [`set_schedule_expression(Option)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_schedule_expression):
                  required: **false**

                  A cron expression when the association will be applied to the targets.


                  /// - [`output_location(InstanceAssociationOutputLocation)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::output_location) / [`set_output_location(Option)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_output_location):
                  required: **false**

                  An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.


                  /// - [`association_name(impl Into)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::association_name) / [`set_association_name(Option)`](crate::operation::create_association::builders::CreateAssociationFluentBuilder::set_association_name):
                  required: **false**

                  Specify a descriptive name for the association.


                  diff --git a/sdk/ssm/src/client/create_patch_baseline.rs b/sdk/ssm/src/client/create_patch_baseline.rs index dc79c5e70978..511062b88cf5 100644 --- a/sdk/ssm/src/client/create_patch_baseline.rs +++ b/sdk/ssm/src/client/create_patch_baseline.rs @@ -7,10 +7,10 @@ impl super::Client { /// - [`name(impl Into)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::name) / [`set_name(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_name):
                  required: **true**

                  The name of the patch baseline.


                  /// - [`global_filters(PatchFilterGroup)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::global_filters) / [`set_global_filters(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_global_filters):
                  required: **false**

                  A set of global filters used to include patches in the baseline.


                  /// - [`approval_rules(PatchRuleGroup)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::approval_rules) / [`set_approval_rules(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_approval_rules):
                  required: **false**

                  A set of rules used to include patches in the baseline.


                  - /// - [`approved_patches(impl Into)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::approved_patches) / [`set_approved_patches(Option>)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_approved_patches):
                  required: **false**

                  A list of explicitly approved patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`approved_patches(impl Into)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::approved_patches) / [`set_approved_patches(Option>)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_approved_patches):
                  required: **false**

                  A list of explicitly approved patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  /// - [`approved_patches_compliance_level(PatchComplianceLevel)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::approved_patches_compliance_level) / [`set_approved_patches_compliance_level(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_approved_patches_compliance_level):
                  required: **false**

                  Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is UNSPECIFIED.


                  /// - [`approved_patches_enable_non_security(bool)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::approved_patches_enable_non_security) / [`set_approved_patches_enable_non_security(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_approved_patches_enable_non_security):
                  required: **false**

                  Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false. Applies to Linux managed nodes only.


                  - /// - [`rejected_patches(impl Into)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::rejected_patches) / [`set_rejected_patches(Option>)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_rejected_patches):
                  required: **false**

                  A list of explicitly rejected patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`rejected_patches(impl Into)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::rejected_patches) / [`set_rejected_patches(Option>)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_rejected_patches):
                  required: **false**

                  A list of explicitly rejected patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  /// - [`rejected_patches_action(PatchAction)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::rejected_patches_action) / [`set_rejected_patches_action(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_rejected_patches_action):
                  required: **false**

                  The action for Patch Manager to take on patches included in the RejectedPackages list.

                  ALLOW_AS_DEPENDENCY

                  Linux and macOS: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as INSTALLED_OTHER. This is the default action if no option is specified.

                  Windows Server: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as INSTALLED_OTHER. Any package not already installed on the node is skipped. This is the default action if no option is specified.

                  BLOCK

                  All OSs: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as INSTALLED_REJECTED.


                  /// - [`description(impl Into)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::description) / [`set_description(Option)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_description):
                  required: **false**

                  A description of the patch baseline.


                  /// - [`sources(PatchSource)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::sources) / [`set_sources(Option>)`](crate::operation::create_patch_baseline::builders::CreatePatchBaselineFluentBuilder::set_sources):
                  required: **false**

                  Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.


                  diff --git a/sdk/ssm/src/client/delete_inventory.rs b/sdk/ssm/src/client/delete_inventory.rs index 977db9d3fe0e..4cb2260ed4c6 100644 --- a/sdk/ssm/src/client/delete_inventory.rs +++ b/sdk/ssm/src/client/delete_inventory.rs @@ -10,7 +10,7 @@ impl super::Client { /// - On success, responds with [`DeleteInventoryOutput`](crate::operation::delete_inventory::DeleteInventoryOutput) with field(s): /// - [`deletion_id(Option)`](crate::operation::delete_inventory::DeleteInventoryOutput::deletion_id):

                  Every DeleteInventory operation is assigned a unique ID. This option returns a unique ID. You can use this ID to query the status of a delete operation. This option is useful for ensuring that a delete operation has completed before you begin other operations.

                  /// - [`type_name(Option)`](crate::operation::delete_inventory::DeleteInventoryOutput::type_name):

                  The name of the inventory data type specified in the request.

                  - /// - [`deletion_summary(Option)`](crate::operation::delete_inventory::DeleteInventoryOutput::deletion_summary):

                  A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                  + /// - [`deletion_summary(Option)`](crate::operation::delete_inventory::DeleteInventoryOutput::deletion_summary):

                  A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

                  /// - On failure, responds with [`SdkError`](crate::operation::delete_inventory::DeleteInventoryError) pub fn delete_inventory(&self) -> crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder { crate::operation::delete_inventory::builders::DeleteInventoryFluentBuilder::new(self.handle.clone()) diff --git a/sdk/ssm/src/client/describe_instance_patches.rs b/sdk/ssm/src/client/describe_instance_patches.rs index 7770f4960039..e0f2ef59442c 100644 --- a/sdk/ssm/src/client/describe_instance_patches.rs +++ b/sdk/ssm/src/client/describe_instance_patches.rs @@ -5,7 +5,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`instance_id(impl Into)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::instance_id) / [`set_instance_id(Option)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::set_instance_id):
                  required: **true**

                  The ID of the managed node whose patch state information should be retrieved.


                  - /// - [`filters(PatchOrchestratorFilter)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::filters) / [`set_filters(Option>)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::set_filters):
                  required: **false**

                  Each element in the array is a structure containing a key-value pair.

                  Supported keys for DescribeInstancePatchesinclude the following:

                  • Classification

                    Sample values: Security | SecurityUpdates

                  • KBId

                    Sample values: KB4480056 | java-1.7.0-openjdk.x86_64

                  • Severity

                    Sample values: Important | Medium | Low

                  • State

                    Sample values: Installed | InstalledOther | InstalledPendingReboot

                    For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`filters(PatchOrchestratorFilter)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::filters) / [`set_filters(Option>)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::set_filters):
                  required: **false**

                  Each element in the array is a structure containing a key-value pair.

                  Supported keys for DescribeInstancePatchesinclude the following:

                  • Classification

                    Sample values: Security | SecurityUpdates

                  • KBId

                    Sample values: KB4480056 | java-1.7.0-openjdk.x86_64

                  • Severity

                    Sample values: Important | Medium | Low

                  • State

                    Sample values: Installed | InstalledOther | InstalledPendingReboot

                    For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.


                  /// - [`next_token(impl Into)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::next_token) / [`set_next_token(Option)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::set_next_token):
                  required: **false**

                  The token for the next set of items to return. (You received this token from a previous call.)


                  /// - [`max_results(i32)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::max_results) / [`set_max_results(Option)`](crate::operation::describe_instance_patches::builders::DescribeInstancePatchesFluentBuilder::set_max_results):
                  required: **false**

                  The maximum number of patches to return (per page).


                  /// - On success, responds with [`DescribeInstancePatchesOutput`](crate::operation::describe_instance_patches::DescribeInstancePatchesOutput) with field(s): diff --git a/sdk/ssm/src/client/describe_maintenance_window_executions.rs b/sdk/ssm/src/client/describe_maintenance_window_executions.rs index 653b8cfee7ae..1e7d45ebcca5 100644 --- a/sdk/ssm/src/client/describe_maintenance_window_executions.rs +++ b/sdk/ssm/src/client/describe_maintenance_window_executions.rs @@ -5,7 +5,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`window_id(impl Into)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::window_id) / [`set_window_id(Option)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::set_window_id):
                  required: **true**

                  The ID of the maintenance window whose executions should be retrieved.


                  - /// - [`filters(MaintenanceWindowFilter)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::filters) / [`set_filters(Option>)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::set_filters):
                  required: **false**

                  Each entry in the array is a structure containing:

                  • Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

                  • Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.


                  + /// - [`filters(MaintenanceWindowFilter)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::filters) / [`set_filters(Option>)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::set_filters):
                  required: **false**

                  Each entry in the array is a structure containing:

                  • Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

                  • Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.


                  /// - [`max_results(i32)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::max_results) / [`set_max_results(Option)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::set_max_results):
                  required: **false**

                  The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.


                  /// - [`next_token(impl Into)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::next_token) / [`set_next_token(Option)`](crate::operation::describe_maintenance_window_executions::builders::DescribeMaintenanceWindowExecutionsFluentBuilder::set_next_token):
                  required: **false**

                  The token for the next set of items to return. (You received this token from a previous call.)


                  /// - On success, responds with [`DescribeMaintenanceWindowExecutionsOutput`](crate::operation::describe_maintenance_window_executions::DescribeMaintenanceWindowExecutionsOutput) with field(s): diff --git a/sdk/ssm/src/client/get_maintenance_window_task.rs b/sdk/ssm/src/client/get_maintenance_window_task.rs index b073117392af..e2e725448f03 100644 --- a/sdk/ssm/src/client/get_maintenance_window_task.rs +++ b/sdk/ssm/src/client/get_maintenance_window_task.rs @@ -10,7 +10,7 @@ impl super::Client { /// - [`window_task_id(Option)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::window_task_id):

                  The retrieved maintenance window task ID.

                  /// - [`targets(Option>)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::targets):

                  The targets where the task should run.

                  /// - [`task_arn(Option)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::task_arn):

                  The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

                  - /// - [`service_role_arn(Option)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::service_role_arn):

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                  + /// - [`service_role_arn(Option)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::service_role_arn):

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                  /// - [`task_type(Option)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::task_type):

                  The type of task to run.

                  /// - [`task_parameters(Option>)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::task_parameters):

                  The parameters to pass to the task when it runs.

                  TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

                  /// - [`task_invocation_parameters(Option)`](crate::operation::get_maintenance_window_task::GetMaintenanceWindowTaskOutput::task_invocation_parameters):

                  The parameters to pass to the task when it runs.

                  diff --git a/sdk/ssm/src/client/get_parameter.rs b/sdk/ssm/src/client/get_parameter.rs index 1dcb13dfd394..fcac2f8abda2 100644 --- a/sdk/ssm/src/client/get_parameter.rs +++ b/sdk/ssm/src/client/get_parameter.rs @@ -3,7 +3,7 @@ impl super::Client { /// Constructs a fluent builder for the [`GetParameter`](crate::operation::get_parameter::builders::GetParameterFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`name(impl Into)`](crate::operation::get_parameter::builders::GetParameterFluentBuilder::name) / [`set_name(Option)`](crate::operation::get_parameter::builders::GetParameterFluentBuilder::set_name):
                  required: **true**

                  The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

                  To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

                  For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`name(impl Into)`](crate::operation::get_parameter::builders::GetParameterFluentBuilder::name) / [`set_name(Option)`](crate::operation::get_parameter::builders::GetParameterFluentBuilder::set_name):
                  required: **true**

                  The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

                  To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

                  For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.


                  /// - [`with_decryption(bool)`](crate::operation::get_parameter::builders::GetParameterFluentBuilder::with_decryption) / [`set_with_decryption(Option)`](crate::operation::get_parameter::builders::GetParameterFluentBuilder::set_with_decryption):
                  required: **false**

                  Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types.


                  /// - On success, responds with [`GetParameterOutput`](crate::operation::get_parameter::GetParameterOutput) with field(s): /// - [`parameter(Option)`](crate::operation::get_parameter::GetParameterOutput::parameter):

                  Information about a parameter.

                  diff --git a/sdk/ssm/src/client/register_task_with_maintenance_window.rs b/sdk/ssm/src/client/register_task_with_maintenance_window.rs index c34fa33dbc7f..cf6f4b2cab7a 100644 --- a/sdk/ssm/src/client/register_task_with_maintenance_window.rs +++ b/sdk/ssm/src/client/register_task_with_maintenance_window.rs @@ -6,7 +6,7 @@ impl super::Client { /// - [`window_id(impl Into)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::window_id) / [`set_window_id(Option)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_window_id):
                  required: **true**

                  The ID of the maintenance window the task should be added to.


                  /// - [`targets(Target)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::targets) / [`set_targets(Option>)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_targets):
                  required: **false**

                  The targets (either managed nodes or maintenance window targets).

                  One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see Registering maintenance window tasks without targets in the Amazon Web Services Systems Manager User Guide.

                  Specify managed nodes using the following format:

                  Key=InstanceIds,Values= ,

                  Specify maintenance window targets using the following format:

                  Key=WindowTargetIds,Values= ,


                  /// - [`task_arn(impl Into)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::task_arn) / [`set_task_arn(Option)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_task_arn):
                  required: **true**

                  The ARN of the task to run.


                  - /// - [`service_role_arn(impl Into)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::service_role_arn) / [`set_service_role_arn(Option)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_service_role_arn):
                  required: **false**

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`service_role_arn(impl Into)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::service_role_arn) / [`set_service_role_arn(Option)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_service_role_arn):
                  required: **false**

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.


                  /// - [`task_type(MaintenanceWindowTaskType)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::task_type) / [`set_task_type(Option)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_task_type):
                  required: **true**

                  The type of task being registered.


                  /// - [`task_parameters(impl Into, MaintenanceWindowTaskParameterValueExpression)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::task_parameters) / [`set_task_parameters(Option>)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_task_parameters):
                  required: **false**

                  The parameters that should be passed to the task when it is run.

                  TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.


                  /// - [`task_invocation_parameters(MaintenanceWindowTaskInvocationParameters)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::task_invocation_parameters) / [`set_task_invocation_parameters(Option)`](crate::operation::register_task_with_maintenance_window::builders::RegisterTaskWithMaintenanceWindowFluentBuilder::set_task_invocation_parameters):
                  required: **false**

                  The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.


                  diff --git a/sdk/ssm/src/client/start_automation_execution.rs b/sdk/ssm/src/client/start_automation_execution.rs index 97fc50ce6738..df97e619ffce 100644 --- a/sdk/ssm/src/client/start_automation_execution.rs +++ b/sdk/ssm/src/client/start_automation_execution.rs @@ -9,13 +9,14 @@ impl super::Client { /// - [`client_token(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::client_token) / [`set_client_token(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_client_token):
                  required: **false**

                  User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.


                  /// - [`mode(ExecutionMode)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::mode) / [`set_mode(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_mode):
                  required: **false**

                  The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto.


                  /// - [`target_parameter_name(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::target_parameter_name) / [`set_target_parameter_name(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_target_parameter_name):
                  required: **false**

                  The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets.


                  - /// - [`targets(Target)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::targets) / [`set_targets(Option>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_targets):
                  required: **false**

                  A key-value mapping to target resources. Required if you specify TargetParameterName.


                  + /// - [`targets(Target)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::targets) / [`set_targets(Option>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_targets):
                  required: **false**

                  A key-value mapping to target resources. Required if you specify TargetParameterName.

                  If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.


                  /// - [`target_maps(HashMap::>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::target_maps) / [`set_target_maps(Option>>>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_target_maps):
                  required: **false**

                  A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.


                  - /// - [`max_concurrency(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::max_concurrency) / [`set_max_concurrency(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_max_concurrency):
                  required: **false**

                  The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.


                  - /// - [`max_errors(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::max_errors) / [`set_max_errors(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_max_errors):
                  required: **false**

                  The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

                  Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.


                  - /// - [`target_locations(TargetLocation)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::target_locations) / [`set_target_locations(Option>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_target_locations):
                  required: **false**

                  A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`max_concurrency(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::max_concurrency) / [`set_max_concurrency(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_max_concurrency):
                  required: **false**

                  The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

                  If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.


                  + /// - [`max_errors(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::max_errors) / [`set_max_errors(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_max_errors):
                  required: **false**

                  The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

                  Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

                  If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.


                  + /// - [`target_locations(TargetLocation)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::target_locations) / [`set_target_locations(Option>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_target_locations):
                  required: **false**

                  A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.


                  /// - [`tags(Tag)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_tags):
                  required: **false**

                  Optional metadata that you assign to a resource. You can specify a maximum of five tags for an automation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an automation to identify an environment or operating system. In this case, you could specify the following key-value pairs:

                  • Key=environment,Value=test

                  • Key=OS,Value=Windows

                  To add tags to an existing automation, use the AddTagsToResource operation.


                  /// - [`alarm_configuration(AlarmConfiguration)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::alarm_configuration) / [`set_alarm_configuration(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_alarm_configuration):
                  required: **false**

                  The CloudWatch alarm you want to apply to your automation.


                  + /// - [`target_locations_url(impl Into)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::target_locations_url) / [`set_target_locations_url(Option)`](crate::operation::start_automation_execution::builders::StartAutomationExecutionFluentBuilder::set_target_locations_url):
                  required: **false**

                  Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.


                  /// - On success, responds with [`StartAutomationExecutionOutput`](crate::operation::start_automation_execution::StartAutomationExecutionOutput) with field(s): /// - [`automation_execution_id(Option)`](crate::operation::start_automation_execution::StartAutomationExecutionOutput::automation_execution_id):

                  The unique ID of a newly scheduled automation execution.

                  /// - On failure, responds with [`SdkError`](crate::operation::start_automation_execution::StartAutomationExecutionError) diff --git a/sdk/ssm/src/client/update_maintenance_window_task.rs b/sdk/ssm/src/client/update_maintenance_window_task.rs index a1d0f6e2161f..0f70bcd929ab 100644 --- a/sdk/ssm/src/client/update_maintenance_window_task.rs +++ b/sdk/ssm/src/client/update_maintenance_window_task.rs @@ -7,7 +7,7 @@ impl super::Client { /// - [`window_task_id(impl Into)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::window_task_id) / [`set_window_task_id(Option)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_window_task_id):
                  required: **true**

                  The task ID to modify.


                  /// - [`targets(Target)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::targets) / [`set_targets(Option>)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_targets):
                  required: **false**

                  The targets (either managed nodes or tags) to modify. Managed nodes are specified using the format Key=instanceids,Values=instanceID_1,instanceID_2. Tags are specified using the format Key=tag_name,Values=tag_value.

                  One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see Registering maintenance window tasks without targets in the Amazon Web Services Systems Manager User Guide.


                  /// - [`task_arn(impl Into)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::task_arn) / [`set_task_arn(Option)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_task_arn):
                  required: **false**

                  The task ARN to modify.


                  - /// - [`service_role_arn(impl Into)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::service_role_arn) / [`set_service_role_arn(Option)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_service_role_arn):
                  required: **false**

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`service_role_arn(impl Into)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::service_role_arn) / [`set_service_role_arn(Option)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_service_role_arn):
                  required: **false**

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.


                  /// - [`task_parameters(impl Into, MaintenanceWindowTaskParameterValueExpression)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::task_parameters) / [`set_task_parameters(Option>)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_task_parameters):
                  required: **false**

                  The parameters to modify.

                  TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

                  The map has the following format:

                  Key: string, between 1 and 255 characters

                  Value: an array of strings, each string is between 1 and 255 characters


                  /// - [`task_invocation_parameters(MaintenanceWindowTaskInvocationParameters)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::task_invocation_parameters) / [`set_task_invocation_parameters(Option)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_task_invocation_parameters):
                  required: **false**

                  The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.

                  When you update a maintenance window task that has options specified in TaskInvocationParameters, you must provide again all the TaskInvocationParameters values that you want to retain. The values you don't specify again are removed. For example, suppose that when you registered a Run Command task, you specified TaskInvocationParameters values for Comment, NotificationConfig, and OutputS3BucketName. If you update the maintenance window task and specify only a different OutputS3BucketName value, the values for Comment and NotificationConfig are removed.


                  /// - [`priority(i32)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::priority) / [`set_priority(Option)`](crate::operation::update_maintenance_window_task::builders::UpdateMaintenanceWindowTaskFluentBuilder::set_priority):
                  required: **false**

                  The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.


                  @@ -24,7 +24,7 @@ impl super::Client { /// - [`window_task_id(Option)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::window_task_id):

                  The task ID of the maintenance window that was updated.

                  /// - [`targets(Option>)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::targets):

                  The updated target values.

                  /// - [`task_arn(Option)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::task_arn):

                  The updated task ARN value.

                  - /// - [`service_role_arn(Option)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::service_role_arn):

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                  + /// - [`service_role_arn(Option)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::service_role_arn):

                  The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                  However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                  /// - [`task_parameters(Option>)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::task_parameters):

                  The updated parameter values.

                  TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

                  /// - [`task_invocation_parameters(Option)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::task_invocation_parameters):

                  The updated parameter values.

                  /// - [`priority(i32)`](crate::operation::update_maintenance_window_task::UpdateMaintenanceWindowTaskOutput::priority):

                  The updated priority value.

                  diff --git a/sdk/ssm/src/client/update_managed_instance_role.rs b/sdk/ssm/src/client/update_managed_instance_role.rs index 78add0aa0501..87ff94e07d2c 100644 --- a/sdk/ssm/src/client/update_managed_instance_role.rs +++ b/sdk/ssm/src/client/update_managed_instance_role.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`instance_id(impl Into)`](crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder::instance_id) / [`set_instance_id(Option)`](crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder::set_instance_id):
                  required: **true**

                  The ID of the managed node where you want to update the role.


                  - /// - [`iam_role(impl Into)`](crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder::iam_role) / [`set_iam_role(Option)`](crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder::set_iam_role):
                  required: **true**

                  The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                  You can't specify an IAM service-linked role for this parameter. You must create a unique role.


                  + /// - [`iam_role(impl Into)`](crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder::iam_role) / [`set_iam_role(Option)`](crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder::set_iam_role):
                  required: **true**

                  The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                  You can't specify an IAM service-linked role for this parameter. You must create a unique role.


                  /// - On success, responds with [`UpdateManagedInstanceRoleOutput`](crate::operation::update_managed_instance_role::UpdateManagedInstanceRoleOutput) /// - On failure, responds with [`SdkError`](crate::operation::update_managed_instance_role::UpdateManagedInstanceRoleError) pub fn update_managed_instance_role(&self) -> crate::operation::update_managed_instance_role::builders::UpdateManagedInstanceRoleFluentBuilder { diff --git a/sdk/ssm/src/client/update_ops_item.rs b/sdk/ssm/src/client/update_ops_item.rs index b24eb8234246..ac5f90b5b9e6 100644 --- a/sdk/ssm/src/client/update_ops_item.rs +++ b/sdk/ssm/src/client/update_ops_item.rs @@ -9,7 +9,7 @@ impl super::Client { /// - [`notifications(OpsItemNotification)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::notifications) / [`set_notifications(Option>)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_notifications):
                  required: **false**

                  The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.


                  /// - [`priority(i32)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::priority) / [`set_priority(Option)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_priority):
                  required: **false**

                  The importance of this OpsItem in relation to other OpsItems in the system.


                  /// - [`related_ops_items(RelatedOpsItem)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::related_ops_items) / [`set_related_ops_items(Option>)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_related_ops_items):
                  required: **false**

                  One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.


                  - /// - [`status(OpsItemStatus)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::status) / [`set_status(Option)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_status):
                  required: **false**

                  The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`status(OpsItemStatus)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::status) / [`set_status(Option)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_status):
                  required: **false**

                  The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.


                  /// - [`ops_item_id(impl Into)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::ops_item_id) / [`set_ops_item_id(Option)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_ops_item_id):
                  required: **true**

                  The ID of the OpsItem.


                  /// - [`title(impl Into)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::title) / [`set_title(Option)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_title):
                  required: **false**

                  A short heading that describes the nature of the OpsItem and the impacted resource.


                  /// - [`category(impl Into)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::category) / [`set_category(Option)`](crate::operation::update_ops_item::builders::UpdateOpsItemFluentBuilder::set_category):
                  required: **false**

                  Specify a new category for an OpsItem.


                  diff --git a/sdk/ssm/src/client/update_patch_baseline.rs b/sdk/ssm/src/client/update_patch_baseline.rs index 727a8ee92db0..ff4c4c469710 100644 --- a/sdk/ssm/src/client/update_patch_baseline.rs +++ b/sdk/ssm/src/client/update_patch_baseline.rs @@ -7,10 +7,10 @@ impl super::Client { /// - [`name(impl Into)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::name) / [`set_name(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_name):
                  required: **false**

                  The name of the patch baseline.


                  /// - [`global_filters(PatchFilterGroup)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::global_filters) / [`set_global_filters(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_global_filters):
                  required: **false**

                  A set of global filters used to include patches in the baseline.


                  /// - [`approval_rules(PatchRuleGroup)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approval_rules) / [`set_approval_rules(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approval_rules):
                  required: **false**

                  A set of rules used to include patches in the baseline.


                  - /// - [`approved_patches(impl Into)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches) / [`set_approved_patches(Option>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches):
                  required: **false**

                  A list of explicitly approved patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`approved_patches(impl Into)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches) / [`set_approved_patches(Option>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches):
                  required: **false**

                  A list of explicitly approved patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  /// - [`approved_patches_compliance_level(PatchComplianceLevel)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches_compliance_level) / [`set_approved_patches_compliance_level(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches_compliance_level):
                  required: **false**

                  Assigns a new compliance severity level to an existing patch baseline.


                  /// - [`approved_patches_enable_non_security(bool)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::approved_patches_enable_non_security) / [`set_approved_patches_enable_non_security(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_approved_patches_enable_non_security):
                  required: **false**

                  Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false. Applies to Linux managed nodes only.


                  - /// - [`rejected_patches(impl Into)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::rejected_patches) / [`set_rejected_patches(Option>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_rejected_patches):
                  required: **false**

                  A list of explicitly rejected patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  + /// - [`rejected_patches(impl Into)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::rejected_patches) / [`set_rejected_patches(Option>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_rejected_patches):
                  required: **false**

                  A list of explicitly rejected patches for the baseline.

                  For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.


                  /// - [`rejected_patches_action(PatchAction)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::rejected_patches_action) / [`set_rejected_patches_action(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_rejected_patches_action):
                  required: **false**

                  The action for Patch Manager to take on patches included in the RejectedPackages list.

                  ALLOW_AS_DEPENDENCY

                  Linux and macOS: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as INSTALLED_OTHER. This is the default action if no option is specified.

                  Windows Server: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as INSTALLED_OTHER. Any package not already installed on the node is skipped. This is the default action if no option is specified.

                  BLOCK

                  All OSs: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances. If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as INSTALLED_REJECTED.


                  /// - [`description(impl Into)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::description) / [`set_description(Option)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_description):
                  required: **false**

                  A description of the patch baseline.


                  /// - [`sources(PatchSource)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::sources) / [`set_sources(Option>)`](crate::operation::update_patch_baseline::builders::UpdatePatchBaselineFluentBuilder::set_sources):
                  required: **false**

                  Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.


                  diff --git a/sdk/ssm/src/error_meta.rs b/sdk/ssm/src/error_meta.rs index ecb8e868cda6..d77356658afc 100644 --- a/sdk/ssm/src/error_meta.rs +++ b/sdk/ssm/src/error_meta.rs @@ -263,7 +263,7 @@ pub enum Error { SubTypeCountLimitExceededException(crate::types::error::SubTypeCountLimitExceededException), ///

                  You specified the Safe option for the DeregisterTargetFromMaintenanceWindow operation, but the target is still referenced in a task.

                  TargetInUseException(crate::types::error::TargetInUseException), - ///

                  The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see Getting started with Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region

                  + ///

                  The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see Setting up Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region

                  TargetNotConnected(crate::types::error::TargetNotConnected), ///

                  The Targets parameter includes too many tags. Remove one or more tags and try the command again.

                  TooManyTagsError(crate::types::error::TooManyTagsError), diff --git a/sdk/ssm/src/operation/create_activation/_create_activation_input.rs b/sdk/ssm/src/operation/create_activation/_create_activation_input.rs index d115b838690d..a8c7a1016611 100644 --- a/sdk/ssm/src/operation/create_activation/_create_activation_input.rs +++ b/sdk/ssm/src/operation/create_activation/_create_activation_input.rs @@ -11,13 +11,13 @@ pub struct CreateActivationInput { ///

                  Don't enter personally identifiable information in this field.

                  /// pub default_instance_name: ::std::option::Option<::std::string::String>, - ///

                  The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                  + ///

                  The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                  ///

                  You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                  ///
                  pub iam_role: ::std::option::Option<::std::string::String>, ///

                  Specify the maximum number of managed nodes you want to register. The default value is 1.

                  pub registration_limit: ::std::option::Option, - ///

                  The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                  + ///

                  The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                  pub expiration_date: ::std::option::Option<::aws_smithy_types::DateTime>, ///

                  Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an activation to identify which servers or virtual machines (VMs) in your on-premises environment you intend to activate. In this case, you could specify the following key-value pairs:

                  ///
                    @@ -46,7 +46,7 @@ impl CreateActivationInput { pub fn default_instance_name(&self) -> ::std::option::Option<&str> { self.default_instance_name.as_deref() } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    pub fn iam_role(&self) -> ::std::option::Option<&str> { @@ -56,7 +56,7 @@ impl CreateActivationInput { pub fn registration_limit(&self) -> ::std::option::Option { self.registration_limit } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn expiration_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> { self.expiration_date.as_ref() } @@ -142,7 +142,7 @@ impl CreateActivationInputBuilder { pub fn get_default_instance_name(&self) -> &::std::option::Option<::std::string::String> { &self.default_instance_name } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    /// This field is required. @@ -150,14 +150,14 @@ impl CreateActivationInputBuilder { self.iam_role = ::std::option::Option::Some(input.into()); self } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    pub fn set_iam_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.iam_role = input; self } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    pub fn get_iam_role(&self) -> &::std::option::Option<::std::string::String> { @@ -177,17 +177,17 @@ impl CreateActivationInputBuilder { pub fn get_registration_limit(&self) -> &::std::option::Option { &self.registration_limit } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn expiration_date(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.expiration_date = ::std::option::Option::Some(input); self } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn set_expiration_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.expiration_date = input; self } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn get_expiration_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.expiration_date } diff --git a/sdk/ssm/src/operation/create_activation/builders.rs b/sdk/ssm/src/operation/create_activation/builders.rs index b978c0f4e47f..2bf3fc36b202 100644 --- a/sdk/ssm/src/operation/create_activation/builders.rs +++ b/sdk/ssm/src/operation/create_activation/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::create_activation::builders::CreateActivationInputBuilder } /// Fluent builder constructing a request to `CreateActivation`. /// -///

                    Generates an activation code and activation ID you can use to register your on-premises servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with Systems Manager makes it possible to manage them using Systems Manager capabilities. You use the activation code and ID when installing SSM Agent on machines in your hybrid environment. For more information about requirements for managing on-premises machines using Systems Manager, see Setting up Amazon Web Services Systems Manager for hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    +///

                    Generates an activation code and activation ID you can use to register your on-premises servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with Systems Manager makes it possible to manage them using Systems Manager capabilities. You use the activation code and ID when installing SSM Agent on machines in your hybrid environment. For more information about requirements for managing on-premises machines using Systems Manager, see Using Amazon Web Services Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are configured for Systems Manager are all called managed nodes.

                    ///
                    #[derive(::std::clone::Clone, ::std::fmt::Debug)] @@ -150,21 +150,21 @@ impl CreateActivationFluentBuilder { pub fn get_default_instance_name(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_default_instance_name() } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    pub fn iam_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.iam_role(input.into()); self } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    pub fn set_iam_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_iam_role(input); self } - ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can't specify an IAM service-linked role for this parameter. You must create a unique role.

                    ///
                    pub fn get_iam_role(&self) -> &::std::option::Option<::std::string::String> { @@ -184,17 +184,17 @@ impl CreateActivationFluentBuilder { pub fn get_registration_limit(&self) -> &::std::option::Option { self.inner.get_registration_limit() } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn expiration_date(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.inner = self.inner.expiration_date(input); self } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn set_expiration_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.inner = self.inner.set_expiration_date(input); self } - ///

                    The date by which this activation request should expire, in timestamp format, such as "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    + ///

                    The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.

                    pub fn get_expiration_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { self.inner.get_expiration_date() } diff --git a/sdk/ssm/src/operation/create_association/_create_association_input.rs b/sdk/ssm/src/operation/create_association/_create_association_input.rs index 24b574efa0be..cec9c0e43138 100644 --- a/sdk/ssm/src/operation/create_association/_create_association_input.rs +++ b/sdk/ssm/src/operation/create_association/_create_association_input.rs @@ -21,7 +21,7 @@ pub struct CreateAssociationInput { pub instance_id: ::std::option::Option<::std::string::String>, ///

                    The parameters for the runtime configuration of the document.

                    pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>, - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub targets: ::std::option::Option<::std::vec::Vec>, ///

                    A cron expression when the association will be applied to the targets.

                    pub schedule_expression: ::std::option::Option<::std::string::String>, @@ -97,7 +97,7 @@ impl CreateAssociationInput { pub fn parameters(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> { self.parameters.as_ref() } - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.targets.is_none()`. pub fn targets(&self) -> &[crate::types::Target] { @@ -353,19 +353,19 @@ impl CreateAssociationInputBuilder { /// /// To override the contents of this collection use [`set_targets`](Self::set_targets). /// - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub fn targets(mut self, input: crate::types::Target) -> Self { let mut v = self.targets.unwrap_or_default(); v.push(input); self.targets = ::std::option::Option::Some(v); self } - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.targets = input; self } - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec> { &self.targets } diff --git a/sdk/ssm/src/operation/create_association/builders.rs b/sdk/ssm/src/operation/create_association/builders.rs index d1b72c8b3a05..52b61ef1a9a4 100644 --- a/sdk/ssm/src/operation/create_association/builders.rs +++ b/sdk/ssm/src/operation/create_association/builders.rs @@ -209,17 +209,17 @@ impl CreateAssociationFluentBuilder { /// /// To override the contents of this collection use [`set_targets`](Self::set_targets). /// - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub fn targets(mut self, input: crate::types::Target) -> Self { self.inner = self.inner.targets(input); self } - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_targets(input); self } - ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see Understanding targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_targets() } diff --git a/sdk/ssm/src/operation/create_document/builders.rs b/sdk/ssm/src/operation/create_document/builders.rs index 7c8acc4d6f09..e0bda8f32d09 100644 --- a/sdk/ssm/src/operation/create_document/builders.rs +++ b/sdk/ssm/src/operation/create_document/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::create_document::builders::CreateDocumentInputBuilder { } /// Fluent builder constructing a request to `CreateDocument`. /// -///

                    Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems Manager performs on your managed nodes. For more information about SSM documents, including information about supported schemas, features, and syntax, see Amazon Web Services Systems Manager Documents in the Amazon Web Services Systems Manager User Guide.

                    +///

                    Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems Manager performs on your managed nodes. For more information about SSM documents, including information about supported schemas, features, and syntax, see Amazon Web Services Systems Manager Documents in the Amazon Web Services Systems Manager User Guide.

                    #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct CreateDocumentFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/ssm/src/operation/create_patch_baseline/_create_patch_baseline_input.rs b/sdk/ssm/src/operation/create_patch_baseline/_create_patch_baseline_input.rs index 7435e47a06d5..a901a4dd1559 100644 --- a/sdk/ssm/src/operation/create_patch_baseline/_create_patch_baseline_input.rs +++ b/sdk/ssm/src/operation/create_patch_baseline/_create_patch_baseline_input.rs @@ -12,14 +12,14 @@ pub struct CreatePatchBaselineInput { ///

                    A set of rules used to include patches in the baseline.

                    pub approval_rules: ::std::option::Option, ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

                    Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is UNSPECIFIED.

                    pub approved_patches_compliance_level: ::std::option::Option, ///

                    Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false. Applies to Linux managed nodes only.

                    pub approved_patches_enable_non_security: ::std::option::Option, ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

                    The action for Patch Manager to take on patches included in the RejectedPackages list.

                    ///
                    @@ -73,7 +73,7 @@ impl CreatePatchBaselineInput { self.approval_rules.as_ref() } ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.approved_patches.is_none()`. pub fn approved_patches(&self) -> &[::std::string::String] { @@ -88,7 +88,7 @@ impl CreatePatchBaselineInput { self.approved_patches_enable_non_security } ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.rejected_patches.is_none()`. pub fn rejected_patches(&self) -> &[::std::string::String] { @@ -230,7 +230,7 @@ impl CreatePatchBaselineInputBuilder { /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches). /// ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.approved_patches.unwrap_or_default(); v.push(input.into()); @@ -238,13 +238,13 @@ impl CreatePatchBaselineInputBuilder { self } ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.approved_patches = input; self } ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.approved_patches } @@ -281,7 +281,7 @@ impl CreatePatchBaselineInputBuilder { /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches). /// ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.rejected_patches.unwrap_or_default(); v.push(input.into()); @@ -289,13 +289,13 @@ impl CreatePatchBaselineInputBuilder { self } ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.rejected_patches = input; self } ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.rejected_patches } diff --git a/sdk/ssm/src/operation/create_patch_baseline/builders.rs b/sdk/ssm/src/operation/create_patch_baseline/builders.rs index 861f98d8a683..d4188dbb2aa3 100644 --- a/sdk/ssm/src/operation/create_patch_baseline/builders.rs +++ b/sdk/ssm/src/operation/create_patch_baseline/builders.rs @@ -172,19 +172,19 @@ impl CreatePatchBaselineFluentBuilder { /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches). /// ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.approved_patches(input.into()); self } ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.inner = self.inner.set_approved_patches(input); self } ///

                    A list of explicitly approved patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { self.inner.get_approved_patches() } @@ -222,19 +222,19 @@ impl CreatePatchBaselineFluentBuilder { /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches). /// ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.rejected_patches(input.into()); self } ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.inner = self.inner.set_rejected_patches(input); self } ///

                    A list of explicitly rejected patches for the baseline.

                    - ///

                    For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { self.inner.get_rejected_patches() } diff --git a/sdk/ssm/src/operation/create_resource_data_sync/builders.rs b/sdk/ssm/src/operation/create_resource_data_sync/builders.rs index a7ca49b84192..c7157fc54a36 100644 --- a/sdk/ssm/src/operation/create_resource_data_sync/builders.rs +++ b/sdk/ssm/src/operation/create_resource_data_sync/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::create_resource_data_sync::builders::CreateResourceDataSy /// Fluent builder constructing a request to `CreateResourceDataSync`. /// ///

                    A resource data sync helps you view data from multiple sources in a single location. Amazon Web Services Systems Manager offers two types of resource data sync: SyncToDestination and SyncFromSource.

                    -///

                    You can configure Systems Manager Inventory to use the SyncToDestination type to synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Configuring resource data sync for Inventory in the Amazon Web Services Systems Manager User Guide.

                    +///

                    You can configure Systems Manager Inventory to use the SyncToDestination type to synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Creatinga a resource data sync for Inventory in the Amazon Web Services Systems Manager User Guide.

                    ///

                    You can configure Systems Manager Explorer to use the SyncFromSource type to synchronize operational work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a single Amazon S3 bucket. This type can synchronize OpsItems and OpsData from multiple Amazon Web Services accounts and Amazon Web Services Regions or EntireOrganization by using Organizations. For more information, see Setting up Systems Manager Explorer to display data from multiple accounts and Regions in the Amazon Web Services Systems Manager User Guide.

                    ///

                    A resource data sync is an asynchronous operation that returns immediately. After a successful initial sync is completed, the system continuously syncs data. To check the status of a sync, use the ListResourceDataSync.

                    ///

                    By default, data isn't encrypted in Amazon S3. We strongly recommend that you enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you secure access to the Amazon S3 bucket by creating a restrictive bucket policy.

                    diff --git a/sdk/ssm/src/operation/delete_inventory/_delete_inventory_output.rs b/sdk/ssm/src/operation/delete_inventory/_delete_inventory_output.rs index 2c4c866f725d..00e6775f6e7e 100644 --- a/sdk/ssm/src/operation/delete_inventory/_delete_inventory_output.rs +++ b/sdk/ssm/src/operation/delete_inventory/_delete_inventory_output.rs @@ -7,7 +7,7 @@ pub struct DeleteInventoryOutput { pub deletion_id: ::std::option::Option<::std::string::String>, ///

                    The name of the inventory data type specified in the request.

                    pub type_name: ::std::option::Option<::std::string::String>, - ///

                    A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

                    pub deletion_summary: ::std::option::Option, _request_id: Option, } @@ -20,7 +20,7 @@ impl DeleteInventoryOutput { pub fn type_name(&self) -> ::std::option::Option<&str> { self.type_name.as_deref() } - ///

                    A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

                    pub fn deletion_summary(&self) -> ::std::option::Option<&crate::types::InventoryDeletionSummary> { self.deletion_summary.as_ref() } @@ -75,17 +75,17 @@ impl DeleteInventoryOutputBuilder { pub fn get_type_name(&self) -> &::std::option::Option<::std::string::String> { &self.type_name } - ///

                    A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

                    pub fn deletion_summary(mut self, input: crate::types::InventoryDeletionSummary) -> Self { self.deletion_summary = ::std::option::Option::Some(input); self } - ///

                    A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

                    pub fn set_deletion_summary(mut self, input: ::std::option::Option) -> Self { self.deletion_summary = input; self } - ///

                    A summary of the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                    + ///

                    A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

                    pub fn get_deletion_summary(&self) -> &::std::option::Option { &self.deletion_summary } diff --git a/sdk/ssm/src/operation/describe_instance_patches/_describe_instance_patches_input.rs b/sdk/ssm/src/operation/describe_instance_patches/_describe_instance_patches_input.rs index 65e6fe035cfa..f49dbff3ff71 100644 --- a/sdk/ssm/src/operation/describe_instance_patches/_describe_instance_patches_input.rs +++ b/sdk/ssm/src/operation/describe_instance_patches/_describe_instance_patches_input.rs @@ -20,7 +20,7 @@ pub struct DescribeInstancePatchesInput { ///
                  • ///

                    State

                    ///

                    Sample values: Installed | InstalledOther | InstalledPendingReboot

                    - ///

                    For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

                  • + ///

                    For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

                    ///
                  pub filters: ::std::option::Option<::std::vec::Vec>, ///

                  The token for the next set of items to return. (You received this token from a previous call.)

                  @@ -48,7 +48,7 @@ impl DescribeInstancePatchesInput { ///
                • ///

                  State

                  ///

                  Sample values: Installed | InstalledOther | InstalledPendingReboot

                  - ///

                  For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

                • + ///

                  For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

                  ///
                /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`. @@ -115,7 +115,7 @@ impl DescribeInstancePatchesInputBuilder { ///
              • ///

                State

                ///

                Sample values: Installed | InstalledOther | InstalledPendingReboot

                - ///

                For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

              • + ///

                For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

                ///
              pub fn filters(mut self, input: crate::types::PatchOrchestratorFilter) -> Self { let mut v = self.filters.unwrap_or_default(); @@ -138,7 +138,7 @@ impl DescribeInstancePatchesInputBuilder { ///
            • ///

              State

              ///

              Sample values: Installed | InstalledOther | InstalledPendingReboot

              - ///

              For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

            • + ///

              For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

              ///
            pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.filters = input; @@ -159,7 +159,7 @@ impl DescribeInstancePatchesInputBuilder { ///
          • ///

            State

            ///

            Sample values: Installed | InstalledOther | InstalledPendingReboot

            - ///

            For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

          • + ///

            For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

            ///
          pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec> { &self.filters diff --git a/sdk/ssm/src/operation/describe_instance_patches/builders.rs b/sdk/ssm/src/operation/describe_instance_patches/builders.rs index 0e687beb22aa..bae75edc60a7 100644 --- a/sdk/ssm/src/operation/describe_instance_patches/builders.rs +++ b/sdk/ssm/src/operation/describe_instance_patches/builders.rs @@ -148,7 +148,7 @@ impl DescribeInstancePatchesFluentBuilder { ///
        • ///

          State

          ///

          Sample values: Installed | InstalledOther | InstalledPendingReboot

          - ///

          For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

        • + ///

          For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

          ///
        pub fn filters(mut self, input: crate::types::PatchOrchestratorFilter) -> Self { self.inner = self.inner.filters(input); @@ -169,7 +169,7 @@ impl DescribeInstancePatchesFluentBuilder { ///
      • ///

        State

        ///

        Sample values: Installed | InstalledOther | InstalledPendingReboot

        - ///

        For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

      • + ///

        For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

        ///
      pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_filters(input); @@ -190,7 +190,7 @@ impl DescribeInstancePatchesFluentBuilder { ///
    • ///

      State

      ///

      Sample values: Installed | InstalledOther | InstalledPendingReboot

      - ///

      For lists of all State values, see Understanding patch compliance state values in the Amazon Web Services Systems Manager User Guide.

    • + ///

      For lists of all State values, see Patch compliance state values in the Amazon Web Services Systems Manager User Guide.

      ///
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_filters() diff --git a/sdk/ssm/src/operation/describe_maintenance_window_executions/_describe_maintenance_window_executions_input.rs b/sdk/ssm/src/operation/describe_maintenance_window_executions/_describe_maintenance_window_executions_input.rs index 3e768ffa498c..6dbf0f1b8ccd 100644 --- a/sdk/ssm/src/operation/describe_maintenance_window_executions/_describe_maintenance_window_executions_input.rs +++ b/sdk/ssm/src/operation/describe_maintenance_window_executions/_describe_maintenance_window_executions_input.rs @@ -10,7 +10,7 @@ pub struct DescribeMaintenanceWindowExecutionsInput { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub filters: ::std::option::Option<::std::vec::Vec>, ///

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    @@ -28,7 +28,7 @@ impl DescribeMaintenanceWindowExecutionsInput { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`. @@ -85,7 +85,7 @@ impl DescribeMaintenanceWindowExecutionsInputBuilder { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub fn filters(mut self, input: crate::types::MaintenanceWindowFilter) -> Self { let mut v = self.filters.unwrap_or_default(); @@ -98,7 +98,7 @@ impl DescribeMaintenanceWindowExecutionsInputBuilder { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.filters = input; @@ -109,7 +109,7 @@ impl DescribeMaintenanceWindowExecutionsInputBuilder { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec> { &self.filters diff --git a/sdk/ssm/src/operation/describe_maintenance_window_executions/builders.rs b/sdk/ssm/src/operation/describe_maintenance_window_executions/builders.rs index ec05036a3838..a17f329c62f3 100644 --- a/sdk/ssm/src/operation/describe_maintenance_window_executions/builders.rs +++ b/sdk/ssm/src/operation/describe_maintenance_window_executions/builders.rs @@ -142,7 +142,7 @@ impl DescribeMaintenanceWindowExecutionsFluentBuilder { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub fn filters(mut self, input: crate::types::MaintenanceWindowFilter) -> Self { self.inner = self.inner.filters(input); @@ -153,7 +153,7 @@ impl DescribeMaintenanceWindowExecutionsFluentBuilder { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_filters(input); @@ -164,7 +164,7 @@ impl DescribeMaintenanceWindowExecutionsFluentBuilder { ///
  • ///

    Key. A string between 1 and 128 characters. Supported keys include ExecutedBefore and ExecutedAfter.

  • ///
  • - ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2021-11-04T05:00:00Z.

  • + ///

    Values. An array of strings, each between 1 and 256 characters. Supported values are date/time strings in a valid ISO 8601 date/time format, such as 2024-11-04T05:00:00Z.

    /// pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_filters() diff --git a/sdk/ssm/src/operation/get_maintenance_window_task/_get_maintenance_window_task_output.rs b/sdk/ssm/src/operation/get_maintenance_window_task/_get_maintenance_window_task_output.rs index 91e007697ed3..c0a27250f36d 100644 --- a/sdk/ssm/src/operation/get_maintenance_window_task/_get_maintenance_window_task_output.rs +++ b/sdk/ssm/src/operation/get_maintenance_window_task/_get_maintenance_window_task_output.rs @@ -12,7 +12,7 @@ pub struct GetMaintenanceWindowTaskOutput { ///

    The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

    pub task_arn: ::std::option::Option<::std::string::String>, ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub service_role_arn: ::std::option::Option<::std::string::String>, ///

    The type of task to run.

    pub task_type: ::std::option::Option, @@ -67,7 +67,7 @@ impl GetMaintenanceWindowTaskOutput { self.task_arn.as_deref() } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn service_role_arn(&self) -> ::std::option::Option<&str> { self.service_role_arn.as_deref() } @@ -248,19 +248,19 @@ impl GetMaintenanceWindowTaskOutputBuilder { &self.task_arn } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.service_role_arn = ::std::option::Option::Some(input.into()); self } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.service_role_arn = input; self } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { &self.service_role_arn } diff --git a/sdk/ssm/src/operation/get_parameter/_get_parameter_input.rs b/sdk/ssm/src/operation/get_parameter/_get_parameter_input.rs index 507a79fce103..3ca8ba9789fd 100644 --- a/sdk/ssm/src/operation/get_parameter/_get_parameter_input.rs +++ b/sdk/ssm/src/operation/get_parameter/_get_parameter_input.rs @@ -5,7 +5,7 @@ pub struct GetParameterInput { ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub name: ::std::option::Option<::std::string::String>, ///

    Return decrypted values for secure string parameters. This flag is ignored for String and StringList parameter types.

    pub with_decryption: ::std::option::Option, @@ -13,7 +13,7 @@ pub struct GetParameterInput { impl GetParameterInput { ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub fn name(&self) -> ::std::option::Option<&str> { self.name.as_deref() } @@ -39,7 +39,7 @@ pub struct GetParameterInputBuilder { impl GetParameterInputBuilder { ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    /// This field is required. pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.name = ::std::option::Option::Some(input.into()); @@ -47,14 +47,14 @@ impl GetParameterInputBuilder { } ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.name = input; self } ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> { &self.name } diff --git a/sdk/ssm/src/operation/get_parameter/builders.rs b/sdk/ssm/src/operation/get_parameter/builders.rs index c412502e3e34..d4747608c0b4 100644 --- a/sdk/ssm/src/operation/get_parameter/builders.rs +++ b/sdk/ssm/src/operation/get_parameter/builders.rs @@ -112,21 +112,21 @@ impl GetParameterFluentBuilder { } ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.name(input.into()); self } ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_name(input); self } ///

    The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.

    ///

    To query by parameter label, use "Name": "name:label". To query by parameter version, use "Name": "name:version".

    - ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    + ///

    For more information about shared parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.

    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_name() } diff --git a/sdk/ssm/src/operation/register_task_with_maintenance_window/_register_task_with_maintenance_window_input.rs b/sdk/ssm/src/operation/register_task_with_maintenance_window/_register_task_with_maintenance_window_input.rs index c423766cd5dc..13aa112c4a87 100644 --- a/sdk/ssm/src/operation/register_task_with_maintenance_window/_register_task_with_maintenance_window_input.rs +++ b/sdk/ssm/src/operation/register_task_with_maintenance_window/_register_task_with_maintenance_window_input.rs @@ -22,7 +22,7 @@ pub struct RegisterTaskWithMaintenanceWindowInput { ///

    The ARN of the task to run.

    pub task_arn: ::std::option::Option<::std::string::String>, ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub service_role_arn: ::std::option::Option<::std::string::String>, ///

    The type of task being registered.

    pub task_type: ::std::option::Option, @@ -101,7 +101,7 @@ impl RegisterTaskWithMaintenanceWindowInput { self.task_arn.as_deref() } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn service_role_arn(&self) -> ::std::option::Option<&str> { self.service_role_arn.as_deref() } @@ -318,19 +318,19 @@ impl RegisterTaskWithMaintenanceWindowInputBuilder { &self.task_arn } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.service_role_arn = ::std::option::Option::Some(input.into()); self } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.service_role_arn = input; self } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { &self.service_role_arn } diff --git a/sdk/ssm/src/operation/register_task_with_maintenance_window/builders.rs b/sdk/ssm/src/operation/register_task_with_maintenance_window/builders.rs index a287594144f7..caa59634f9ea 100644 --- a/sdk/ssm/src/operation/register_task_with_maintenance_window/builders.rs +++ b/sdk/ssm/src/operation/register_task_with_maintenance_window/builders.rs @@ -192,19 +192,19 @@ impl RegisterTaskWithMaintenanceWindowFluentBuilder { self.inner.get_task_arn() } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.service_role_arn(input.into()); self } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_service_role_arn(input); self } ///

    The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

    - ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

    + ///

    However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

    pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_service_role_arn() } diff --git a/sdk/ssm/src/operation/start_automation_execution/_start_automation_execution_input.rs b/sdk/ssm/src/operation/start_automation_execution/_start_automation_execution_input.rs index 045e1f941046..83fb550a7237 100644 --- a/sdk/ssm/src/operation/start_automation_execution/_start_automation_execution_input.rs +++ b/sdk/ssm/src/operation/start_automation_execution/_start_automation_execution_input.rs @@ -16,16 +16,19 @@ pub struct StartAutomationExecutionInput { ///

    The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets.

    pub target_parameter_name: ::std::option::Option<::std::string::String>, ///

    A key-value mapping to target resources. Required if you specify TargetParameterName.

    + ///

    If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

    pub targets: ::std::option::Option<::std::vec::Vec>, ///

    A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.

    pub target_maps: ::std::option::Option<::std::vec::Vec<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>>, ///

    The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

    + ///

    If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

    pub max_concurrency: ::std::option::Option<::std::string::String>, ///

    The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

    ///

    Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

    + ///

    If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

    pub max_errors: ::std::option::Option<::std::string::String>, - ///

    A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

    + ///

    A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

    pub target_locations: ::std::option::Option<::std::vec::Vec>, ///

    Optional metadata that you assign to a resource. You can specify a maximum of five tags for an automation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an automation to identify an environment or operating system. In this case, you could specify the following key-value pairs:

    ///
      @@ -39,6 +42,8 @@ pub struct StartAutomationExecutionInput { pub tags: ::std::option::Option<::std::vec::Vec>, ///

      The CloudWatch alarm you want to apply to your automation.

      pub alarm_configuration: ::std::option::Option, + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub target_locations_url: ::std::option::Option<::std::string::String>, } impl StartAutomationExecutionInput { ///

      The name of the SSM document to run. This can be a public document or a custom document. To run a shared document belonging to another account, specify the document ARN. For more information about how to use shared documents, see Sharing SSM documents in the Amazon Web Services Systems Manager User Guide.

      @@ -66,6 +71,7 @@ impl StartAutomationExecutionInput { self.target_parameter_name.as_deref() } ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.targets.is_none()`. pub fn targets(&self) -> &[crate::types::Target] { @@ -78,15 +84,17 @@ impl StartAutomationExecutionInput { self.target_maps.as_deref().unwrap_or_default() } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn max_concurrency(&self) -> ::std::option::Option<&str> { self.max_concurrency.as_deref() } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn max_errors(&self) -> ::std::option::Option<&str> { self.max_errors.as_deref() } - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.target_locations.is_none()`. pub fn target_locations(&self) -> &[crate::types::TargetLocation] { @@ -110,6 +118,10 @@ impl StartAutomationExecutionInput { pub fn alarm_configuration(&self) -> ::std::option::Option<&crate::types::AlarmConfiguration> { self.alarm_configuration.as_ref() } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn target_locations_url(&self) -> ::std::option::Option<&str> { + self.target_locations_url.as_deref() + } } impl StartAutomationExecutionInput { /// Creates a new builder-style object to manufacture [`StartAutomationExecutionInput`](crate::operation::start_automation_execution::StartAutomationExecutionInput). @@ -136,6 +148,7 @@ pub struct StartAutomationExecutionInputBuilder { pub(crate) target_locations: ::std::option::Option<::std::vec::Vec>, pub(crate) tags: ::std::option::Option<::std::vec::Vec>, pub(crate) alarm_configuration: ::std::option::Option, + pub(crate) target_locations_url: ::std::option::Option<::std::string::String>, } impl StartAutomationExecutionInputBuilder { ///

      The name of the SSM document to run. This can be a public document or a custom document. To run a shared document belonging to another account, specify the document ARN. For more information about how to use shared documents, see Sharing SSM documents in the Amazon Web Services Systems Manager User Guide.

      @@ -239,6 +252,7 @@ impl StartAutomationExecutionInputBuilder { /// To override the contents of this collection use [`set_targets`](Self::set_targets). /// ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      pub fn targets(mut self, input: crate::types::Target) -> Self { let mut v = self.targets.unwrap_or_default(); v.push(input); @@ -246,11 +260,13 @@ impl StartAutomationExecutionInputBuilder { self } ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.targets = input; self } ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec> { &self.targets } @@ -280,33 +296,39 @@ impl StartAutomationExecutionInputBuilder { &self.target_maps } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.max_concurrency = ::std::option::Option::Some(input.into()); self } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn set_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.max_concurrency = input; self } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn get_max_concurrency(&self) -> &::std::option::Option<::std::string::String> { &self.max_concurrency } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.max_errors = ::std::option::Option::Some(input.into()); self } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn set_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.max_errors = input; self } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn get_max_errors(&self) -> &::std::option::Option<::std::string::String> { &self.max_errors } @@ -314,19 +336,19 @@ impl StartAutomationExecutionInputBuilder { /// /// To override the contents of this collection use [`set_target_locations`](Self::set_target_locations). /// - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      pub fn target_locations(mut self, input: crate::types::TargetLocation) -> Self { let mut v = self.target_locations.unwrap_or_default(); v.push(input); self.target_locations = ::std::option::Option::Some(v); self } - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      pub fn set_target_locations(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.target_locations = input; self } - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      pub fn get_target_locations(&self) -> &::std::option::Option<::std::vec::Vec> { &self.target_locations } @@ -388,6 +410,20 @@ impl StartAutomationExecutionInputBuilder { pub fn get_alarm_configuration(&self) -> &::std::option::Option { &self.alarm_configuration } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn target_locations_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.target_locations_url = ::std::option::Option::Some(input.into()); + self + } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn set_target_locations_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.target_locations_url = input; + self + } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn get_target_locations_url(&self) -> &::std::option::Option<::std::string::String> { + &self.target_locations_url + } /// Consumes the builder and constructs a [`StartAutomationExecutionInput`](crate::operation::start_automation_execution::StartAutomationExecutionInput). pub fn build( self, @@ -409,6 +445,7 @@ impl StartAutomationExecutionInputBuilder { target_locations: self.target_locations, tags: self.tags, alarm_configuration: self.alarm_configuration, + target_locations_url: self.target_locations_url, }) } } diff --git a/sdk/ssm/src/operation/start_automation_execution/builders.rs b/sdk/ssm/src/operation/start_automation_execution/builders.rs index bc7d3f625e83..ea9c9f536592 100644 --- a/sdk/ssm/src/operation/start_automation_execution/builders.rs +++ b/sdk/ssm/src/operation/start_automation_execution/builders.rs @@ -208,16 +208,19 @@ impl StartAutomationExecutionFluentBuilder { /// To override the contents of this collection use [`set_targets`](Self::set_targets). /// ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      pub fn targets(mut self, input: crate::types::Target) -> Self { self.inner = self.inner.targets(input); self } ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_targets(input); self } ///

      A key-value mapping to target resources. Required if you specify TargetParameterName.

      + ///

      If both this parameter and the TargetLocation:Targets parameter are supplied, TargetLocation:Targets takes precedence.

      pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_targets() } @@ -246,33 +249,39 @@ impl StartAutomationExecutionFluentBuilder { self.inner.get_target_maps() } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.max_concurrency(input.into()); self } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn set_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_max_concurrency(input); self } ///

      The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

      + ///

      If both this parameter and the TargetLocation:TargetsMaxConcurrency are supplied, TargetLocation:TargetsMaxConcurrency takes precedence.

      pub fn get_max_concurrency(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_max_concurrency() } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.max_errors(input.into()); self } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn set_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_max_errors(input); self } ///

      The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

      ///

      Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

      + ///

      If this parameter and the TargetLocation:TargetsMaxErrors parameter are both supplied, TargetLocation:TargetsMaxErrors takes precedence.

      pub fn get_max_errors(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_max_errors() } @@ -281,17 +290,17 @@ impl StartAutomationExecutionFluentBuilder { /// /// To override the contents of this collection use [`set_target_locations`](Self::set_target_locations). /// - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      pub fn target_locations(mut self, input: crate::types::TargetLocation) -> Self { self.inner = self.inner.target_locations(input); self } - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      pub fn set_target_locations(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_target_locations(input); self } - ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the Amazon Web Services Systems Manager User Guide.

      + ///

      A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

      pub fn get_target_locations(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_target_locations() } @@ -352,4 +361,18 @@ impl StartAutomationExecutionFluentBuilder { pub fn get_alarm_configuration(&self) -> &::std::option::Option { self.inner.get_alarm_configuration() } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn target_locations_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inner = self.inner.target_locations_url(input.into()); + self + } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn set_target_locations_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inner = self.inner.set_target_locations_url(input); + self + } + ///

      Specify a publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported.

      + pub fn get_target_locations_url(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_target_locations_url() + } } diff --git a/sdk/ssm/src/operation/start_session.rs b/sdk/ssm/src/operation/start_session.rs index 18e78807026f..23aa8a2b21bb 100644 --- a/sdk/ssm/src/operation/start_session.rs +++ b/sdk/ssm/src/operation/start_session.rs @@ -248,7 +248,7 @@ pub enum StartSessionError { InternalServerError(crate::types::error::InternalServerError), ///

      The specified SSM document doesn't exist.

      InvalidDocument(crate::types::error::InvalidDocument), - ///

      The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see Getting started with Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region

      + ///

      The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see Setting up Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region

      TargetNotConnected(crate::types::error::TargetNotConnected), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ diff --git a/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_input.rs b/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_input.rs index 9c999b537d73..982f6162be4c 100644 --- a/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_input.rs +++ b/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_input.rs @@ -14,7 +14,7 @@ pub struct UpdateMaintenanceWindowTaskInput { ///

      The task ARN to modify.

      pub task_arn: ::std::option::Option<::std::string::String>, ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub service_role_arn: ::std::option::Option<::std::string::String>, ///

      The parameters to modify.

      ///

      TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

      @@ -90,7 +90,7 @@ impl UpdateMaintenanceWindowTaskInput { self.task_arn.as_deref() } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn service_role_arn(&self) -> ::std::option::Option<&str> { self.service_role_arn.as_deref() } @@ -292,19 +292,19 @@ impl UpdateMaintenanceWindowTaskInputBuilder { &self.task_arn } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.service_role_arn = ::std::option::Option::Some(input.into()); self } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.service_role_arn = input; self } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { &self.service_role_arn } diff --git a/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_output.rs b/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_output.rs index f10c7405ceca..24a4544ecca7 100644 --- a/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_output.rs +++ b/sdk/ssm/src/operation/update_maintenance_window_task/_update_maintenance_window_task_output.rs @@ -12,7 +12,7 @@ pub struct UpdateMaintenanceWindowTaskOutput { ///

      The updated task ARN value.

      pub task_arn: ::std::option::Option<::std::string::String>, ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub service_role_arn: ::std::option::Option<::std::string::String>, ///

      The updated parameter values.

      ///

      TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

      @@ -61,7 +61,7 @@ impl UpdateMaintenanceWindowTaskOutput { self.task_arn.as_deref() } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn service_role_arn(&self) -> ::std::option::Option<&str> { self.service_role_arn.as_deref() } @@ -232,19 +232,19 @@ impl UpdateMaintenanceWindowTaskOutputBuilder { &self.task_arn } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.service_role_arn = ::std::option::Option::Some(input.into()); self } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.service_role_arn = input; self } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { &self.service_role_arn } diff --git a/sdk/ssm/src/operation/update_maintenance_window_task/builders.rs b/sdk/ssm/src/operation/update_maintenance_window_task/builders.rs index 8f54e26761b9..ac7fa1e85e35 100644 --- a/sdk/ssm/src/operation/update_maintenance_window_task/builders.rs +++ b/sdk/ssm/src/operation/update_maintenance_window_task/builders.rs @@ -195,19 +195,19 @@ impl UpdateMaintenanceWindowTaskFluentBuilder { self.inner.get_task_arn() } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.service_role_arn(input.into()); self } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_service_role_arn(input); self } ///

      The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

      - ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

      + ///

      However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

      pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_service_role_arn() } diff --git a/sdk/ssm/src/operation/update_managed_instance_role/_update_managed_instance_role_input.rs b/sdk/ssm/src/operation/update_managed_instance_role/_update_managed_instance_role_input.rs index dd4520a34755..aca606c6c785 100644 --- a/sdk/ssm/src/operation/update_managed_instance_role/_update_managed_instance_role_input.rs +++ b/sdk/ssm/src/operation/update_managed_instance_role/_update_managed_instance_role_input.rs @@ -5,7 +5,7 @@ pub struct UpdateManagedInstanceRoleInput { ///

      The ID of the managed node where you want to update the role.

      pub instance_id: ::std::option::Option<::std::string::String>, - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub iam_role: ::std::option::Option<::std::string::String>, @@ -15,7 +15,7 @@ impl UpdateManagedInstanceRoleInput { pub fn instance_id(&self) -> ::std::option::Option<&str> { self.instance_id.as_deref() } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub fn iam_role(&self) -> ::std::option::Option<&str> { @@ -52,7 +52,7 @@ impl UpdateManagedInstanceRoleInputBuilder { pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> { &self.instance_id } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      /// This field is required. @@ -60,14 +60,14 @@ impl UpdateManagedInstanceRoleInputBuilder { self.iam_role = ::std::option::Option::Some(input.into()); self } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub fn set_iam_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.iam_role = input; self } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub fn get_iam_role(&self) -> &::std::option::Option<::std::string::String> { diff --git a/sdk/ssm/src/operation/update_managed_instance_role/builders.rs b/sdk/ssm/src/operation/update_managed_instance_role/builders.rs index fda6c2f5cbb5..f5f5e73724ff 100644 --- a/sdk/ssm/src/operation/update_managed_instance_role/builders.rs +++ b/sdk/ssm/src/operation/update_managed_instance_role/builders.rs @@ -122,21 +122,21 @@ impl UpdateManagedInstanceRoleFluentBuilder { pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_instance_id() } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub fn iam_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.iam_role(input.into()); self } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub fn set_iam_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_iam_role(input); self } - ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an IAM service role for a hybrid and multicloud environment in the Amazon Web Services Systems Manager User Guide.

      + ///

      The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create the IAM service role required for Systems Manager in hybrid and multicloud environments in the Amazon Web Services Systems Manager User Guide.

      ///

      You can't specify an IAM service-linked role for this parameter. You must create a unique role.

      ///
      pub fn get_iam_role(&self) -> &::std::option::Option<::std::string::String> { diff --git a/sdk/ssm/src/operation/update_ops_item/_update_ops_item_input.rs b/sdk/ssm/src/operation/update_ops_item/_update_ops_item_input.rs index 1f7381986ea0..f0fb9b75ecfe 100644 --- a/sdk/ssm/src/operation/update_ops_item/_update_ops_item_input.rs +++ b/sdk/ssm/src/operation/update_ops_item/_update_ops_item_input.rs @@ -20,7 +20,7 @@ pub struct UpdateOpsItemInput { pub priority: ::std::option::Option, ///

      One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.

      pub related_ops_items: ::std::option::Option<::std::vec::Vec>, - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub status: ::std::option::Option, ///

      The ID of the OpsItem.

      pub ops_item_id: ::std::option::Option<::std::string::String>, @@ -77,7 +77,7 @@ impl UpdateOpsItemInput { pub fn related_ops_items(&self) -> &[crate::types::RelatedOpsItem] { self.related_ops_items.as_deref().unwrap_or_default() } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn status(&self) -> ::std::option::Option<&crate::types::OpsItemStatus> { self.status.as_ref() } @@ -273,17 +273,17 @@ impl UpdateOpsItemInputBuilder { pub fn get_related_ops_items(&self) -> &::std::option::Option<::std::vec::Vec> { &self.related_ops_items } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn status(mut self, input: crate::types::OpsItemStatus) -> Self { self.status = ::std::option::Option::Some(input); self } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn set_status(mut self, input: ::std::option::Option) -> Self { self.status = input; self } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn get_status(&self) -> &::std::option::Option { &self.status } diff --git a/sdk/ssm/src/operation/update_ops_item/builders.rs b/sdk/ssm/src/operation/update_ops_item/builders.rs index a50778b945fc..3c8b12d8ef34 100644 --- a/sdk/ssm/src/operation/update_ops_item/builders.rs +++ b/sdk/ssm/src/operation/update_ops_item/builders.rs @@ -231,17 +231,17 @@ impl UpdateOpsItemFluentBuilder { pub fn get_related_ops_items(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_related_ops_items() } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn status(mut self, input: crate::types::OpsItemStatus) -> Self { self.inner = self.inner.status(input); self } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn set_status(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_status(input); self } - ///

      The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      + ///

      The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

      pub fn get_status(&self) -> &::std::option::Option { self.inner.get_status() } diff --git a/sdk/ssm/src/operation/update_patch_baseline/_update_patch_baseline_input.rs b/sdk/ssm/src/operation/update_patch_baseline/_update_patch_baseline_input.rs index 9081e1d528cd..9fa91aecbb73 100644 --- a/sdk/ssm/src/operation/update_patch_baseline/_update_patch_baseline_input.rs +++ b/sdk/ssm/src/operation/update_patch_baseline/_update_patch_baseline_input.rs @@ -12,14 +12,14 @@ pub struct UpdatePatchBaselineInput { ///

      A set of rules used to include patches in the baseline.

      pub approval_rules: ::std::option::Option, ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

      Assigns a new compliance severity level to an existing patch baseline.

      pub approved_patches_compliance_level: ::std::option::Option, ///

      Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false. Applies to Linux managed nodes only.

      pub approved_patches_enable_non_security: ::std::option::Option, ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

      The action for Patch Manager to take on patches included in the RejectedPackages list.

      ///
      @@ -63,7 +63,7 @@ impl UpdatePatchBaselineInput { self.approval_rules.as_ref() } ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.approved_patches.is_none()`. pub fn approved_patches(&self) -> &[::std::string::String] { @@ -78,7 +78,7 @@ impl UpdatePatchBaselineInput { self.approved_patches_enable_non_security } ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.rejected_patches.is_none()`. pub fn rejected_patches(&self) -> &[::std::string::String] { @@ -205,7 +205,7 @@ impl UpdatePatchBaselineInputBuilder { /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches). /// ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.approved_patches.unwrap_or_default(); v.push(input.into()); @@ -213,13 +213,13 @@ impl UpdatePatchBaselineInputBuilder { self } ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.approved_patches = input; self } ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.approved_patches } @@ -256,7 +256,7 @@ impl UpdatePatchBaselineInputBuilder { /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches). /// ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.rejected_patches.unwrap_or_default(); v.push(input.into()); @@ -264,13 +264,13 @@ impl UpdatePatchBaselineInputBuilder { self } ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.rejected_patches = input; self } ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.rejected_patches } diff --git a/sdk/ssm/src/operation/update_patch_baseline/builders.rs b/sdk/ssm/src/operation/update_patch_baseline/builders.rs index 219f84a52b8b..b5a3c44029cb 100644 --- a/sdk/ssm/src/operation/update_patch_baseline/builders.rs +++ b/sdk/ssm/src/operation/update_patch_baseline/builders.rs @@ -172,19 +172,19 @@ impl UpdatePatchBaselineFluentBuilder { /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches). /// ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.approved_patches(input.into()); self } ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.inner = self.inner.set_approved_patches(input); self } ///

      A list of explicitly approved patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { self.inner.get_approved_patches() } @@ -222,19 +222,19 @@ impl UpdatePatchBaselineFluentBuilder { /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches). /// ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.rejected_patches(input.into()); self } ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.inner = self.inner.set_rejected_patches(input); self } ///

      A list of explicitly rejected patches for the baseline.

      - ///

      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      + ///

      For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

      pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { self.inner.get_rejected_patches() } diff --git a/sdk/ssm/src/protocol_serde.rs b/sdk/ssm/src/protocol_serde.rs index 9dd782357f97..7ad30b57dd88 100644 --- a/sdk/ssm/src/protocol_serde.rs +++ b/sdk/ssm/src/protocol_serde.rs @@ -1387,6 +1387,8 @@ pub(crate) mod shape_command_plugin; pub(crate) mod shape_document_review_comment_list; +pub(crate) mod shape_exclude_accounts; + pub(crate) mod shape_instance_association_status_aggregated_count; pub(crate) mod shape_inventory_item_attribute; diff --git a/sdk/ssm/src/protocol_serde/shape_automation_execution.rs b/sdk/ssm/src/protocol_serde/shape_automation_execution.rs index 769de3feaf7e..78cf8c913554 100644 --- a/sdk/ssm/src/protocol_serde/shape_automation_execution.rs +++ b/sdk/ssm/src/protocol_serde/shape_automation_execution.rs @@ -165,6 +165,13 @@ where crate::protocol_serde::shape_alarm_state_information_list::de_alarm_state_information_list(tokens)?, ); } + "TargetLocationsURL" => { + builder = builder.set_target_locations_url( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } "AutomationSubtype" => { builder = builder.set_automation_subtype( ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? diff --git a/sdk/ssm/src/protocol_serde/shape_automation_execution_metadata.rs b/sdk/ssm/src/protocol_serde/shape_automation_execution_metadata.rs index fa87ef56bd42..8dbd0f145512 100644 --- a/sdk/ssm/src/protocol_serde/shape_automation_execution_metadata.rs +++ b/sdk/ssm/src/protocol_serde/shape_automation_execution_metadata.rs @@ -161,6 +161,13 @@ where crate::protocol_serde::shape_alarm_state_information_list::de_alarm_state_information_list(tokens)?, ); } + "TargetLocationsURL" => { + builder = builder.set_target_locations_url( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } "AutomationSubtype" => { builder = builder.set_automation_subtype( ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? diff --git a/sdk/ssm/src/protocol_serde/shape_exclude_accounts.rs b/sdk/ssm/src/protocol_serde/shape_exclude_accounts.rs new file mode 100644 index 000000000000..6bb3bd240e4b --- /dev/null +++ b/sdk/ssm/src/protocol_serde/shape_exclude_accounts.rs @@ -0,0 +1,34 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn de_exclude_accounts<'a, I>( + tokens: &mut ::std::iter::Peekable, +) -> Result>, ::aws_smithy_json::deserialize::error::DeserializeError> +where + I: Iterator, ::aws_smithy_json::deserialize::error::DeserializeError>>, +{ + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => { + let mut items = Vec::new(); + loop { + match tokens.peek() { + Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => { + tokens.next().transpose().unwrap(); + break; + } + _ => { + let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?; + if let Some(value) = value { + items.push(value); + } + } + } + } + Ok(Some(items)) + } + _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "expected start array or null", + )), + } +} diff --git a/sdk/ssm/src/protocol_serde/shape_start_automation_execution_input.rs b/sdk/ssm/src/protocol_serde/shape_start_automation_execution_input.rs index d0ebe63b84e1..37b877f40808 100644 --- a/sdk/ssm/src/protocol_serde/shape_start_automation_execution_input.rs +++ b/sdk/ssm/src/protocol_serde/shape_start_automation_execution_input.rs @@ -104,5 +104,8 @@ pub fn ser_start_automation_execution_input_input( crate::protocol_serde::shape_alarm_configuration::ser_alarm_configuration(&mut object_35, var_34)?; object_35.finish(); } + if let Some(var_36) = &input.target_locations_url { + object.key("TargetLocationsURL").string(var_36.as_str()); + } Ok(()) } diff --git a/sdk/ssm/src/protocol_serde/shape_target_location.rs b/sdk/ssm/src/protocol_serde/shape_target_location.rs index 45ba50589ef1..9435a98146b1 100644 --- a/sdk/ssm/src/protocol_serde/shape_target_location.rs +++ b/sdk/ssm/src/protocol_serde/shape_target_location.rs @@ -36,6 +36,38 @@ pub fn ser_target_location( crate::protocol_serde::shape_alarm_configuration::ser_alarm_configuration(&mut object_11, var_10)?; object_11.finish(); } + if input.include_child_organization_units { + object + .key("IncludeChildOrganizationUnits") + .boolean(input.include_child_organization_units); + } + if let Some(var_12) = &input.exclude_accounts { + let mut array_13 = object.key("ExcludeAccounts").start_array(); + for item_14 in var_12 { + { + array_13.value().string(item_14.as_str()); + } + } + array_13.finish(); + } + if let Some(var_15) = &input.targets { + let mut array_16 = object.key("Targets").start_array(); + for item_17 in var_15 { + { + #[allow(unused_mut)] + let mut object_18 = array_16.value().start_object(); + crate::protocol_serde::shape_target::ser_target(&mut object_18, item_17)?; + object_18.finish(); + } + } + array_16.finish(); + } + if let Some(var_19) = &input.targets_max_concurrency { + object.key("TargetsMaxConcurrency").string(var_19.as_str()); + } + if let Some(var_20) = &input.targets_max_errors { + object.key("TargetsMaxErrors").string(var_20.as_str()); + } Ok(()) } @@ -86,6 +118,30 @@ where crate::protocol_serde::shape_alarm_configuration::de_alarm_configuration(tokens)?, ); } + "IncludeChildOrganizationUnits" => { + builder = builder + .set_include_child_organization_units(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?); + } + "ExcludeAccounts" => { + builder = builder.set_exclude_accounts(crate::protocol_serde::shape_exclude_accounts::de_exclude_accounts(tokens)?); + } + "Targets" => { + builder = builder.set_targets(crate::protocol_serde::shape_targets::de_targets(tokens)?); + } + "TargetsMaxConcurrency" => { + builder = builder.set_targets_max_concurrency( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "TargetsMaxErrors" => { + builder = builder.set_targets_max_errors( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/ssm/src/types/_attachments_source.rs b/sdk/ssm/src/types/_attachments_source.rs index e08e8f4ff63c..1edf157db81b 100644 --- a/sdk/ssm/src/types/_attachments_source.rs +++ b/sdk/ssm/src/types/_attachments_source.rs @@ -10,10 +10,10 @@ pub struct AttachmentsSource { ///
        ///
      • ///

        For the key SourceUrl, the value is an S3 bucket location. For example:

        - ///

        "Values": \[ "s3://doc-example-bucket/my-folder" \]

      • + ///

        "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix" \]

        ///
      • ///

        For the key S3FileUrl, the value is a file in an S3 bucket. For example:

        - ///

        "Values": \[ "s3://doc-example-bucket/my-folder/my-file.py" \]

      • + ///

        "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" \]

        ///
      • ///

        For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:

        ///

        "Values": \[ "MyOtherDocument/3/my-other-file.py" \]

        @@ -33,10 +33,10 @@ impl AttachmentsSource { ///
          ///
        • ///

          For the key SourceUrl, the value is an S3 bucket location. For example:

          - ///

          "Values": \[ "s3://doc-example-bucket/my-folder" \]

        • + ///

          "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix" \]

          ///
        • ///

          For the key S3FileUrl, the value is a file in an S3 bucket. For example:

          - ///

          "Values": \[ "s3://doc-example-bucket/my-folder/my-file.py" \]

        • + ///

          "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" \]

          ///
        • ///

          For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:

          ///

          "Values": \[ "MyOtherDocument/3/my-other-file.py" \]

          @@ -91,10 +91,10 @@ impl AttachmentsSourceBuilder { ///
            ///
          • ///

            For the key SourceUrl, the value is an S3 bucket location. For example:

            - ///

            "Values": \[ "s3://doc-example-bucket/my-folder" \]

          • + ///

            "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix" \]

            ///
          • ///

            For the key S3FileUrl, the value is a file in an S3 bucket. For example:

            - ///

            "Values": \[ "s3://doc-example-bucket/my-folder/my-file.py" \]

          • + ///

            "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" \]

            ///
          • ///

            For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:

            ///

            "Values": \[ "MyOtherDocument/3/my-other-file.py" \]

            @@ -111,10 +111,10 @@ impl AttachmentsSourceBuilder { ///
              ///
            • ///

              For the key SourceUrl, the value is an S3 bucket location. For example:

              - ///

              "Values": \[ "s3://doc-example-bucket/my-folder" \]

            • + ///

              "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix" \]

              ///
            • ///

              For the key S3FileUrl, the value is a file in an S3 bucket. For example:

              - ///

              "Values": \[ "s3://doc-example-bucket/my-folder/my-file.py" \]

            • + ///

              "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" \]

              ///
            • ///

              For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:

              ///

              "Values": \[ "MyOtherDocument/3/my-other-file.py" \]

              @@ -129,10 +129,10 @@ impl AttachmentsSourceBuilder { ///
                ///
              • ///

                For the key SourceUrl, the value is an S3 bucket location. For example:

                - ///

                "Values": \[ "s3://doc-example-bucket/my-folder" \]

              • + ///

                "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix" \]

                ///
              • ///

                For the key S3FileUrl, the value is a file in an S3 bucket. For example:

                - ///

                "Values": \[ "s3://doc-example-bucket/my-folder/my-file.py" \]

              • + ///

                "Values": \[ "s3://amzn-s3-demo-bucket/my-prefix/my-file.py" \]

                ///
              • ///

                For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:

                ///

                "Values": \[ "MyOtherDocument/3/my-other-file.py" \]

                diff --git a/sdk/ssm/src/types/_automation_execution.rs b/sdk/ssm/src/types/_automation_execution.rs index ae8bfd362fa3..6dcedaaaeae3 100644 --- a/sdk/ssm/src/types/_automation_execution.rs +++ b/sdk/ssm/src/types/_automation_execution.rs @@ -59,6 +59,8 @@ pub struct AutomationExecution { pub alarm_configuration: ::std::option::Option, ///

                The CloudWatch alarm that was invoked by the automation.

                pub triggered_alarms: ::std::option::Option<::std::vec::Vec>, + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub target_locations_url: ::std::option::Option<::std::string::String>, ///

                The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

                pub automation_subtype: ::std::option::Option, ///

                The date and time the Automation operation is scheduled to start.

                @@ -195,6 +197,10 @@ impl AutomationExecution { pub fn triggered_alarms(&self) -> &[crate::types::AlarmStateInformation] { self.triggered_alarms.as_deref().unwrap_or_default() } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn target_locations_url(&self) -> ::std::option::Option<&str> { + self.target_locations_url.as_deref() + } ///

                The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

                pub fn automation_subtype(&self) -> ::std::option::Option<&crate::types::AutomationSubtype> { self.automation_subtype.as_ref() @@ -267,6 +273,7 @@ pub struct AutomationExecutionBuilder { pub(crate) progress_counters: ::std::option::Option, pub(crate) alarm_configuration: ::std::option::Option, pub(crate) triggered_alarms: ::std::option::Option<::std::vec::Vec>, + pub(crate) target_locations_url: ::std::option::Option<::std::string::String>, pub(crate) automation_subtype: ::std::option::Option, pub(crate) scheduled_time: ::std::option::Option<::aws_smithy_types::DateTime>, pub(crate) runbooks: ::std::option::Option<::std::vec::Vec>, @@ -709,6 +716,20 @@ impl AutomationExecutionBuilder { pub fn get_triggered_alarms(&self) -> &::std::option::Option<::std::vec::Vec> { &self.triggered_alarms } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn target_locations_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.target_locations_url = ::std::option::Option::Some(input.into()); + self + } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn set_target_locations_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.target_locations_url = input; + self + } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn get_target_locations_url(&self) -> &::std::option::Option<::std::string::String> { + &self.target_locations_url + } ///

                The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

                pub fn automation_subtype(mut self, input: crate::types::AutomationSubtype) -> Self { self.automation_subtype = ::std::option::Option::Some(input); @@ -860,6 +881,7 @@ impl AutomationExecutionBuilder { progress_counters: self.progress_counters, alarm_configuration: self.alarm_configuration, triggered_alarms: self.triggered_alarms, + target_locations_url: self.target_locations_url, automation_subtype: self.automation_subtype, scheduled_time: self.scheduled_time, runbooks: self.runbooks, diff --git a/sdk/ssm/src/types/_automation_execution_metadata.rs b/sdk/ssm/src/types/_automation_execution_metadata.rs index 673e366d3c54..2b6466bfaaed 100644 --- a/sdk/ssm/src/types/_automation_execution_metadata.rs +++ b/sdk/ssm/src/types/_automation_execution_metadata.rs @@ -47,12 +47,14 @@ pub struct AutomationExecutionMetadata { pub max_errors: ::std::option::Option<::std::string::String>, ///

                The list of execution outputs as defined in the Automation runbook.

                pub target: ::std::option::Option<::std::string::String>, - ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                + ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                pub automation_type: ::std::option::Option, ///

                The details for the CloudWatch alarm applied to your automation.

                pub alarm_configuration: ::std::option::Option, ///

                The CloudWatch alarm that was invoked by the automation.

                pub triggered_alarms: ::std::option::Option<::std::vec::Vec>, + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub target_locations_url: ::std::option::Option<::std::string::String>, ///

                The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

                pub automation_subtype: ::std::option::Option, ///

                The date and time the Automation operation is scheduled to start.

                @@ -157,7 +159,7 @@ impl AutomationExecutionMetadata { pub fn target(&self) -> ::std::option::Option<&str> { self.target.as_deref() } - ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                + ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                pub fn automation_type(&self) -> ::std::option::Option<&crate::types::AutomationType> { self.automation_type.as_ref() } @@ -171,6 +173,10 @@ impl AutomationExecutionMetadata { pub fn triggered_alarms(&self) -> &[crate::types::AlarmStateInformation] { self.triggered_alarms.as_deref().unwrap_or_default() } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn target_locations_url(&self) -> ::std::option::Option<&str> { + self.target_locations_url.as_deref() + } ///

                The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

                pub fn automation_subtype(&self) -> ::std::option::Option<&crate::types::AutomationSubtype> { self.automation_subtype.as_ref() @@ -236,6 +242,7 @@ pub struct AutomationExecutionMetadataBuilder { pub(crate) automation_type: ::std::option::Option, pub(crate) alarm_configuration: ::std::option::Option, pub(crate) triggered_alarms: ::std::option::Option<::std::vec::Vec>, + pub(crate) target_locations_url: ::std::option::Option<::std::string::String>, pub(crate) automation_subtype: ::std::option::Option, pub(crate) scheduled_time: ::std::option::Option<::aws_smithy_types::DateTime>, pub(crate) runbooks: ::std::option::Option<::std::vec::Vec>, @@ -564,17 +571,17 @@ impl AutomationExecutionMetadataBuilder { pub fn get_target(&self) -> &::std::option::Option<::std::string::String> { &self.target } - ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                + ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                pub fn automation_type(mut self, input: crate::types::AutomationType) -> Self { self.automation_type = ::std::option::Option::Some(input); self } - ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                + ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                pub fn set_automation_type(mut self, input: ::std::option::Option) -> Self { self.automation_type = input; self } - ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                + ///

                Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide.

                pub fn get_automation_type(&self) -> &::std::option::Option { &self.automation_type } @@ -612,6 +619,20 @@ impl AutomationExecutionMetadataBuilder { pub fn get_triggered_alarms(&self) -> &::std::option::Option<::std::vec::Vec> { &self.triggered_alarms } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn target_locations_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.target_locations_url = ::std::option::Option::Some(input.into()); + self + } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn set_target_locations_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.target_locations_url = input; + self + } + ///

                A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported

                + pub fn get_target_locations_url(&self) -> &::std::option::Option<::std::string::String> { + &self.target_locations_url + } ///

                The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

                pub fn automation_subtype(mut self, input: crate::types::AutomationSubtype) -> Self { self.automation_subtype = ::std::option::Option::Some(input); @@ -735,6 +756,7 @@ impl AutomationExecutionMetadataBuilder { automation_type: self.automation_type, alarm_configuration: self.alarm_configuration, triggered_alarms: self.triggered_alarms, + target_locations_url: self.target_locations_url, automation_subtype: self.automation_subtype, scheduled_time: self.scheduled_time, runbooks: self.runbooks, diff --git a/sdk/ssm/src/types/_baseline_override.rs b/sdk/ssm/src/types/_baseline_override.rs index dd8e7d027f16..53125a4be0f1 100644 --- a/sdk/ssm/src/types/_baseline_override.rs +++ b/sdk/ssm/src/types/_baseline_override.rs @@ -11,12 +11,12 @@ pub struct BaselineOverride { ///

                A set of rules defining the approval rules for a patch baseline.

                pub approval_rules: ::std::option::Option, ///

                A list of explicitly approved patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

                Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation.

                pub approved_patches_compliance_level: ::std::option::Option, ///

                A list of explicitly rejected patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

                The action for Patch Manager to take on patches included in the RejectedPackages list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.

                pub rejected_patches_action: ::std::option::Option, @@ -39,7 +39,7 @@ impl BaselineOverride { self.approval_rules.as_ref() } ///

                A list of explicitly approved patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.approved_patches.is_none()`. pub fn approved_patches(&self) -> &[::std::string::String] { @@ -50,7 +50,7 @@ impl BaselineOverride { self.approved_patches_compliance_level.as_ref() } ///

                A list of explicitly rejected patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.rejected_patches.is_none()`. pub fn rejected_patches(&self) -> &[::std::string::String] { @@ -140,7 +140,7 @@ impl BaselineOverrideBuilder { /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches). /// ///

                A list of explicitly approved patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.approved_patches.unwrap_or_default(); v.push(input.into()); @@ -148,13 +148,13 @@ impl BaselineOverrideBuilder { self } ///

                A list of explicitly approved patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.approved_patches = input; self } ///

                A list of explicitly approved patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.approved_patches } @@ -177,7 +177,7 @@ impl BaselineOverrideBuilder { /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches). /// ///

                A list of explicitly rejected patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.rejected_patches.unwrap_or_default(); v.push(input.into()); @@ -185,13 +185,13 @@ impl BaselineOverrideBuilder { self } ///

                A list of explicitly rejected patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.rejected_patches = input; self } ///

                A list of explicitly rejected patches for the baseline.

                - ///

                For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                + ///

                For information about accepted formats for lists of approved patches and rejected patches, see Package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

                pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.rejected_patches } diff --git a/sdk/ssm/src/types/_command_filter.rs b/sdk/ssm/src/types/_command_filter.rs index d0ea0e53a2ef..a567c63a1713 100644 --- a/sdk/ssm/src/types/_command_filter.rs +++ b/sdk/ssm/src/types/_command_filter.rs @@ -13,9 +13,9 @@ pub struct CommandFilter { ///

                The filter value. Valid values for each filter key are as follows:

                ///
                  ///
                • - ///

                  InvokedAfter: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                • + ///

                  InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                  ///
                • - ///

                  InvokedBefore: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                • + ///

                  InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                  ///
                • ///

                  Status: Specify a valid command status to see a list of all command executions with that status. The status choices depend on the API you call.

                  ///

                  The status values you can specify for ListCommands are:

                  @@ -97,9 +97,9 @@ impl CommandFilter { ///

                  The filter value. Valid values for each filter key are as follows:

                  ///
                    ///
                  • - ///

                    InvokedAfter: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                  • + ///

                    InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                    ///
                  • - ///

                    InvokedBefore: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                  • + ///

                    InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                    ///
                  • ///

                    Status: Specify a valid command status to see a list of all command executions with that status. The status choices depend on the API you call.

                    ///

                    The status values you can specify for ListCommands are:

                    @@ -213,9 +213,9 @@ impl CommandFilterBuilder { ///

                    The filter value. Valid values for each filter key are as follows:

                    ///
                      ///
                    • - ///

                      InvokedAfter: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                    • + ///

                      InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                      ///
                    • - ///

                      InvokedBefore: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                    • + ///

                      InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                      ///
                    • ///

                      Status: Specify a valid command status to see a list of all command executions with that status. The status choices depend on the API you call.

                      ///

                      The status values you can specify for ListCommands are:

                      @@ -293,9 +293,9 @@ impl CommandFilterBuilder { ///

                      The filter value. Valid values for each filter key are as follows:

                      ///
                        ///
                      • - ///

                        InvokedAfter: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                      • + ///

                        InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                        ///
                      • - ///

                        InvokedBefore: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                      • + ///

                        InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                        ///
                      • ///

                        Status: Specify a valid command status to see a list of all command executions with that status. The status choices depend on the API you call.

                        ///

                        The status values you can specify for ListCommands are:

                        @@ -372,9 +372,9 @@ impl CommandFilterBuilder { ///

                        The filter value. Valid values for each filter key are as follows:

                        ///
                          ///
                        • - ///

                          InvokedAfter: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                        • + ///

                          InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions occurring July 7, 2021, and later.

                          ///
                        • - ///

                          InvokedBefore: Specify a timestamp to limit your results. For example, specify 2021-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                        • + ///

                          InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions from before July 7, 2021.

                          ///
                        • ///

                          Status: Specify a valid command status to see a list of all command executions with that status. The status choices depend on the API you call.

                          ///

                          The status values you can specify for ListCommands are:

                          diff --git a/sdk/ssm/src/types/_command_plugin.rs b/sdk/ssm/src/types/_command_plugin.rs index 3d13da94e561..fde10694b6e1 100644 --- a/sdk/ssm/src/types/_command_plugin.rs +++ b/sdk/ssm/src/types/_command_plugin.rs @@ -45,16 +45,16 @@ pub struct CommandPlugin { ///

                          (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Amazon Web Services Systems Manager automatically determines the S3 bucket region.

                          pub output_s3_region: ::std::option::Option<::std::string::String>, ///

                          The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub output_s3_bucket_name: ::std::option::Option<::std::string::String>, ///

                          The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub output_s3_key_prefix: ::std::option::Option<::std::string::String>, @@ -121,18 +121,18 @@ impl CommandPlugin { self.output_s3_region.as_deref() } ///

                          The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn output_s3_bucket_name(&self) -> ::std::option::Option<&str> { self.output_s3_bucket_name.as_deref() } ///

                          The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn output_s3_key_prefix(&self) -> ::std::option::Option<&str> { @@ -365,9 +365,9 @@ impl CommandPluginBuilder { &self.output_s3_region } ///

                          The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn output_s3_bucket_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -375,9 +375,9 @@ impl CommandPluginBuilder { self } ///

                          The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn set_output_s3_bucket_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { @@ -385,18 +385,18 @@ impl CommandPluginBuilder { self } ///

                          The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn get_output_s3_bucket_name(&self) -> &::std::option::Option<::std::string::String> { &self.output_s3_bucket_name } ///

                          The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn output_s3_key_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -404,9 +404,9 @@ impl CommandPluginBuilder { self } ///

                          The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn set_output_s3_key_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self { @@ -414,9 +414,9 @@ impl CommandPluginBuilder { self } ///

                          The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command. For example, in the following response:

                          - ///

                          doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript

                          - ///

                          doc-example-bucket is the name of the S3 bucket;

                          - ///

                          ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

                          + ///

                          amzn-s3-demo-bucket/my-prefix/i-02573cafcfEXAMPLE/awsrunShellScript

                          + ///

                          amzn-s3-demo-bucket is the name of the S3 bucket;

                          + ///

                          my-prefix is the name of the S3 prefix;

                          ///

                          i-02573cafcfEXAMPLE is the managed node ID;

                          ///

                          awsrunShellScript is the name of the plugin.

                          pub fn get_output_s3_key_prefix(&self) -> &::std::option::Option<::std::string::String> { diff --git a/sdk/ssm/src/types/_instance_information.rs b/sdk/ssm/src/types/_instance_information.rs index 30d809c5780e..e1c8d94a8489 100644 --- a/sdk/ssm/src/types/_instance_information.rs +++ b/sdk/ssm/src/types/_instance_information.rs @@ -31,7 +31,7 @@ pub struct InstanceInformation { pub registration_date: ::std::option::Option<::aws_smithy_types::DateTime>, ///

                          The type of instance. Instances are either EC2 instances or managed instances.

                          pub resource_type: ::std::option::Option, - ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          + ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          pub name: ::std::option::Option<::std::string::String>, ///

                          The IP address of the managed node.

                          pub ip_address: ::std::option::Option<::std::string::String>, @@ -102,7 +102,7 @@ impl InstanceInformation { pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> { self.resource_type.as_ref() } - ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          + ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          pub fn name(&self) -> ::std::option::Option<&str> { self.name.as_deref() } @@ -380,17 +380,17 @@ impl InstanceInformationBuilder { pub fn get_resource_type(&self) -> &::std::option::Option { &self.resource_type } - ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          + ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.name = ::std::option::Option::Some(input.into()); self } - ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          + ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.name = input; self } - ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in Install SSM Agent for a hybrid and multicloud environment (Linux) and Install SSM Agent for a hybrid and multicloud environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          + ///

                          The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

                          pub fn get_name(&self) -> &::std::option::Option<::std::string::String> { &self.name } diff --git a/sdk/ssm/src/types/_instance_patch_state.rs b/sdk/ssm/src/types/_instance_patch_state.rs index bc1a2f73b1df..62a82aa4db5e 100644 --- a/sdk/ssm/src/types/_instance_patch_state.rs +++ b/sdk/ssm/src/types/_instance_patch_state.rs @@ -13,7 +13,7 @@ pub struct InstancePatchState { ///

                          The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.

                          pub snapshot_id: ::std::option::Option<::std::string::String>, ///

                          An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.

                          - ///

                          For more information about the InstallOverrideList parameter, see About the AWS-RunPatchBaseline SSM document in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For more information about the InstallOverrideList parameter, see SSM Command document for patching: AWS-RunPatchBaseline in the Amazon Web Services Systems Manager User Guide.

                          pub install_override_list: ::std::option::Option<::std::string::String>, ///

                          Placeholder information. This field will always be empty in the current release of the service.

                          pub owner_information: ::std::option::Option<::std::string::String>, @@ -87,7 +87,7 @@ impl InstancePatchState { self.snapshot_id.as_deref() } ///

                          An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.

                          - ///

                          For more information about the InstallOverrideList parameter, see About the AWS-RunPatchBaseline SSM document in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For more information about the InstallOverrideList parameter, see SSM Command document for patching: AWS-RunPatchBaseline in the Amazon Web Services Systems Manager User Guide.

                          pub fn install_override_list(&self) -> ::std::option::Option<&str> { self.install_override_list.as_deref() } @@ -299,19 +299,19 @@ impl InstancePatchStateBuilder { &self.snapshot_id } ///

                          An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.

                          - ///

                          For more information about the InstallOverrideList parameter, see About the AWS-RunPatchBaseline SSM document in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For more information about the InstallOverrideList parameter, see SSM Command document for patching: AWS-RunPatchBaseline in the Amazon Web Services Systems Manager User Guide.

                          pub fn install_override_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.install_override_list = ::std::option::Option::Some(input.into()); self } ///

                          An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.

                          - ///

                          For more information about the InstallOverrideList parameter, see About the AWS-RunPatchBaseline SSM document in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For more information about the InstallOverrideList parameter, see SSM Command document for patching: AWS-RunPatchBaseline in the Amazon Web Services Systems Manager User Guide.

                          pub fn set_install_override_list(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.install_override_list = input; self } ///

                          An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.

                          - ///

                          For more information about the InstallOverrideList parameter, see About the AWS-RunPatchBaseline SSM document in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For more information about the InstallOverrideList parameter, see SSM Command document for patching: AWS-RunPatchBaseline in the Amazon Web Services Systems Manager User Guide.

                          pub fn get_install_override_list(&self) -> &::std::option::Option<::std::string::String> { &self.install_override_list } diff --git a/sdk/ssm/src/types/_inventory_deletion_status_item.rs b/sdk/ssm/src/types/_inventory_deletion_status_item.rs index 534e7ad02896..85bae253d942 100644 --- a/sdk/ssm/src/types/_inventory_deletion_status_item.rs +++ b/sdk/ssm/src/types/_inventory_deletion_status_item.rs @@ -14,7 +14,7 @@ pub struct InventoryDeletionStatusItem { pub last_status: ::std::option::Option, ///

                          Information about the status.

                          pub last_status_message: ::std::option::Option<::std::string::String>, - ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          pub deletion_summary: ::std::option::Option, ///

                          The UTC timestamp of when the last status report.

                          pub last_status_update_time: ::std::option::Option<::aws_smithy_types::DateTime>, @@ -40,7 +40,7 @@ impl InventoryDeletionStatusItem { pub fn last_status_message(&self) -> ::std::option::Option<&str> { self.last_status_message.as_deref() } - ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          pub fn deletion_summary(&self) -> ::std::option::Option<&crate::types::InventoryDeletionSummary> { self.deletion_summary.as_ref() } @@ -139,17 +139,17 @@ impl InventoryDeletionStatusItemBuilder { pub fn get_last_status_message(&self) -> &::std::option::Option<::std::string::String> { &self.last_status_message } - ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          pub fn deletion_summary(mut self, input: crate::types::InventoryDeletionSummary) -> Self { self.deletion_summary = ::std::option::Option::Some(input); self } - ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          pub fn set_deletion_summary(mut self, input: ::std::option::Option) -> Self { self.deletion_summary = input; self } - ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the Amazon Web Services Systems Manager User Guide.

                          pub fn get_deletion_summary(&self) -> &::std::option::Option { &self.deletion_summary } diff --git a/sdk/ssm/src/types/_inventory_filter.rs b/sdk/ssm/src/types/_inventory_filter.rs index 5def8d42ace9..f7ff198e1dcf 100644 --- a/sdk/ssm/src/types/_inventory_filter.rs +++ b/sdk/ssm/src/types/_inventory_filter.rs @@ -9,7 +9,7 @@ pub struct InventoryFilter { ///

                          Inventory filter values. Example: inventory filter where managed node IDs are specified as values Key=AWS:InstanceInformation.InstanceId,Values= i-a12b3c4d5e6g, i-1a2b3c4d5e6,Type=Equal.

                          pub values: ::std::vec::Vec<::std::string::String>, ///

                          The type of filter.

                          - ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          ///
                          pub r#type: ::std::option::Option, } @@ -25,7 +25,7 @@ impl InventoryFilter { self.values.deref() } ///

                          The type of filter.

                          - ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          ///
                          pub fn r#type(&self) -> ::std::option::Option<&crate::types::InventoryQueryOperatorType> { self.r#type.as_ref() @@ -83,21 +83,21 @@ impl InventoryFilterBuilder { &self.values } ///

                          The type of filter.

                          - ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          ///
                          pub fn r#type(mut self, input: crate::types::InventoryQueryOperatorType) -> Self { self.r#type = ::std::option::Option::Some(input); self } ///

                          The type of filter.

                          - ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          ///
                          pub fn set_type(mut self, input: ::std::option::Option) -> Self { self.r#type = input; self } ///

                          The type of filter.

                          - ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The Exists filter must be used with aggregators. For more information, see Aggregating inventory data in the Amazon Web Services Systems Manager User Guide.

                          ///
                          pub fn get_type(&self) -> &::std::option::Option { &self.r#type diff --git a/sdk/ssm/src/types/_maintenance_window_run_command_parameters.rs b/sdk/ssm/src/types/_maintenance_window_run_command_parameters.rs index cd85babe057d..b0a6da819e03 100644 --- a/sdk/ssm/src/types/_maintenance_window_run_command_parameters.rs +++ b/sdk/ssm/src/types/_maintenance_window_run_command_parameters.rs @@ -31,7 +31,7 @@ pub struct MaintenanceWindowRunCommandParameters { ///

                          The parameters for the RUN_COMMAND task execution.

                          pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>, ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub service_role_arn: ::std::option::Option<::std::string::String>, ///

                          If this time is reached and the command hasn't already started running, it doesn't run.

                          pub timeout_seconds: ::std::option::Option, @@ -77,7 +77,7 @@ impl MaintenanceWindowRunCommandParameters { self.parameters.as_ref() } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn service_role_arn(&self) -> ::std::option::Option<&str> { self.service_role_arn.as_deref() } @@ -274,19 +274,19 @@ impl MaintenanceWindowRunCommandParametersBuilder { &self.parameters } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.service_role_arn = ::std::option::Option::Some(input.into()); self } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.service_role_arn = input; self } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { &self.service_role_arn } diff --git a/sdk/ssm/src/types/_maintenance_window_task.rs b/sdk/ssm/src/types/_maintenance_window_task.rs index 50cd47f210a8..27865213ca55 100644 --- a/sdk/ssm/src/types/_maintenance_window_task.rs +++ b/sdk/ssm/src/types/_maintenance_window_task.rs @@ -32,7 +32,7 @@ pub struct MaintenanceWindowTask { /// pub logging_info: ::std::option::Option, ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub service_role_arn: ::std::option::Option<::std::string::String>, ///

                          The maximum number of targets this task can be run for, in parallel.

                          ///

                          Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a targetless task You must provide a value in all other cases.

                          @@ -101,7 +101,7 @@ impl MaintenanceWindowTask { self.logging_info.as_ref() } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn service_role_arn(&self) -> ::std::option::Option<&str> { self.service_role_arn.as_deref() } @@ -350,19 +350,19 @@ impl MaintenanceWindowTaskBuilder { &self.logging_info } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.service_role_arn = ::std::option::Option::Some(input.into()); self } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.service_role_arn = input; self } ///

                          The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.

                          - ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up maintenance windows in the in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.

                          pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> { &self.service_role_arn } diff --git a/sdk/ssm/src/types/_ops_item.rs b/sdk/ssm/src/types/_ops_item.rs index 5df5706b3719..0f7cf54f2658 100644 --- a/sdk/ssm/src/types/_ops_item.rs +++ b/sdk/ssm/src/types/_ops_item.rs @@ -34,7 +34,7 @@ pub struct OpsItem { pub priority: ::std::option::Option, ///

                          One or more OpsItems that share something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.

                          pub related_ops_items: ::std::option::Option<::std::vec::Vec>, - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          pub status: ::std::option::Option, ///

                          The ID of the OpsItem.

                          pub ops_item_id: ::std::option::Option<::std::string::String>, @@ -117,7 +117,7 @@ impl OpsItem { pub fn related_ops_items(&self) -> &[crate::types::RelatedOpsItem] { self.related_ops_items.as_deref().unwrap_or_default() } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          pub fn status(&self) -> ::std::option::Option<&crate::types::OpsItemStatus> { self.status.as_ref() } @@ -380,17 +380,17 @@ impl OpsItemBuilder { pub fn get_related_ops_items(&self) -> &::std::option::Option<::std::vec::Vec> { &self.related_ops_items } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          pub fn status(mut self, input: crate::types::OpsItemStatus) -> Self { self.status = ::std::option::Option::Some(input); self } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          pub fn set_status(mut self, input: ::std::option::Option) -> Self { self.status = input; self } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

                          pub fn get_status(&self) -> &::std::option::Option { &self.status } diff --git a/sdk/ssm/src/types/_ops_item_summary.rs b/sdk/ssm/src/types/_ops_item_summary.rs index e3a15483d09f..ed05eedb266f 100644 --- a/sdk/ssm/src/types/_ops_item_summary.rs +++ b/sdk/ssm/src/types/_ops_item_summary.rs @@ -16,7 +16,7 @@ pub struct OpsItemSummary { pub priority: ::std::option::Option, ///

                          The impacted Amazon Web Services resource.

                          pub source: ::std::option::Option<::std::string::String>, - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved.

                          + ///

                          The OpsItem status.

                          pub status: ::std::option::Option, ///

                          The ID of the OpsItem.

                          pub ops_item_id: ::std::option::Option<::std::string::String>, @@ -75,7 +75,7 @@ impl OpsItemSummary { pub fn source(&self) -> ::std::option::Option<&str> { self.source.as_deref() } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved.

                          + ///

                          The OpsItem status.

                          pub fn status(&self) -> ::std::option::Option<&crate::types::OpsItemStatus> { self.status.as_ref() } @@ -245,17 +245,17 @@ impl OpsItemSummaryBuilder { pub fn get_source(&self) -> &::std::option::Option<::std::string::String> { &self.source } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved.

                          + ///

                          The OpsItem status.

                          pub fn status(mut self, input: crate::types::OpsItemStatus) -> Self { self.status = ::std::option::Option::Some(input); self } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved.

                          + ///

                          The OpsItem status.

                          pub fn set_status(mut self, input: ::std::option::Option) -> Self { self.status = input; self } - ///

                          The OpsItem status. Status can be Open, In Progress, or Resolved.

                          + ///

                          The OpsItem status.

                          pub fn get_status(&self) -> &::std::option::Option { &self.status } diff --git a/sdk/ssm/src/types/_patch_compliance_data.rs b/sdk/ssm/src/types/_patch_compliance_data.rs index 09b49302f532..5f5496d1ff5f 100644 --- a/sdk/ssm/src/types/_patch_compliance_data.rs +++ b/sdk/ssm/src/types/_patch_compliance_data.rs @@ -13,7 +13,7 @@ pub struct PatchComplianceData { ///

                          The severity of the patch such as Critical, Important, and Moderate.

                          pub severity: ::std::string::String, ///

                          The state of the patch on the managed node, such as INSTALLED or FAILED.

                          - ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          pub state: crate::types::PatchComplianceDataState, ///

                          The date/time the patch was installed on the managed node. Not all operating systems provide this level of information.

                          pub installed_time: ::aws_smithy_types::DateTime, @@ -44,7 +44,7 @@ impl PatchComplianceData { self.severity.deref() } ///

                          The state of the patch on the managed node, such as INSTALLED or FAILED.

                          - ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          pub fn state(&self) -> &crate::types::PatchComplianceDataState { &self.state } @@ -140,20 +140,20 @@ impl PatchComplianceDataBuilder { &self.severity } ///

                          The state of the patch on the managed node, such as INSTALLED or FAILED.

                          - ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          /// This field is required. pub fn state(mut self, input: crate::types::PatchComplianceDataState) -> Self { self.state = ::std::option::Option::Some(input); self } ///

                          The state of the patch on the managed node, such as INSTALLED or FAILED.

                          - ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          pub fn set_state(mut self, input: ::std::option::Option) -> Self { self.state = input; self } ///

                          The state of the patch on the managed node, such as INSTALLED or FAILED.

                          - ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          + ///

                          For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

                          pub fn get_state(&self) -> &::std::option::Option { &self.state } diff --git a/sdk/ssm/src/types/_patch_rule.rs b/sdk/ssm/src/types/_patch_rule.rs index 526a56d5de85..479ea6daa830 100644 --- a/sdk/ssm/src/types/_patch_rule.rs +++ b/sdk/ssm/src/types/_patch_rule.rs @@ -8,16 +8,18 @@ pub struct PatchRule { pub patch_filter_group: ::std::option::Option, ///

                          A compliance severity level for all approved patches in a patch baseline.

                          pub compliance_level: ::std::option::Option, - ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub approve_after_days: ::std::option::Option, ///

                          The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.

                          - ///

                          Enter dates in the format YYYY-MM-DD. For example, 2021-12-31.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Enter dates in the format YYYY-MM-DD. For example, 2024-12-31.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub approve_until_date: ::std::option::Option<::std::string::String>, ///

                          For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is false. Applies to Linux managed nodes only.

                          pub enable_non_security: ::std::option::Option, @@ -31,18 +33,20 @@ impl PatchRule { pub fn compliance_level(&self) -> ::std::option::Option<&crate::types::PatchComplianceLevel> { self.compliance_level.as_ref() } - ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn approve_after_days(&self) -> ::std::option::Option { self.approve_after_days } ///

                          The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.

                          - ///

                          Enter dates in the format YYYY-MM-DD. For example, 2021-12-31.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Enter dates in the format YYYY-MM-DD. For example, 2024-12-31.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn approve_until_date(&self) -> ::std::option::Option<&str> { self.approve_until_date.as_deref() } @@ -98,52 +102,58 @@ impl PatchRuleBuilder { pub fn get_compliance_level(&self) -> &::std::option::Option { &self.compliance_level } - ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn approve_after_days(mut self, input: i32) -> Self { self.approve_after_days = ::std::option::Option::Some(input); self } - ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn set_approve_after_days(mut self, input: ::std::option::Option) -> Self { self.approve_after_days = input; self } - ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of 7 means that patches are approved seven days after they are released.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveAfterDays or ApproveUntilDate.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn get_approve_after_days(&self) -> &::std::option::Option { &self.approve_after_days } ///

                          The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.

                          - ///

                          Enter dates in the format YYYY-MM-DD. For example, 2021-12-31.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Enter dates in the format YYYY-MM-DD. For example, 2024-12-31.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn approve_until_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.approve_until_date = ::std::option::Option::Some(input.into()); self } ///

                          The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.

                          - ///

                          Enter dates in the format YYYY-MM-DD. For example, 2021-12-31.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Enter dates in the format YYYY-MM-DD. For example, 2024-12-31.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn set_approve_until_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.approve_until_date = input; self } ///

                          The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.

                          - ///

                          Enter dates in the format YYYY-MM-DD. For example, 2021-12-31.

                          - ///

                          This parameter is marked as not required, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          - ///
                          - ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Enter dates in the format YYYY-MM-DD. For example, 2024-12-31.

                          + ///

                          This parameter is marked as Required: No, but your request must include a value for either ApproveUntilDate or ApproveAfterDays.

                          + ///

                          Not supported for Debian Server or Ubuntu Server.

                          + ///

                          Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the Windows Server tab in the topic How security patches are selected in the Amazon Web Services Systems Manager User Guide.

                          + ///
                          pub fn get_approve_until_date(&self) -> &::std::option::Option<::std::string::String> { &self.approve_until_date } diff --git a/sdk/ssm/src/types/_session_filter.rs b/sdk/ssm/src/types/_session_filter.rs index baebfc68fbf7..90e683f531d5 100644 --- a/sdk/ssm/src/types/_session_filter.rs +++ b/sdk/ssm/src/types/_session_filter.rs @@ -9,9 +9,9 @@ pub struct SessionFilter { ///

                          The filter value. Valid values for each filter key are as follows:

                          ///
                            ///
                          • - ///

                            InvokedAfter: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and later.

                          • + ///

                            InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started August 29, 2024, and later.

                            ///
                          • - ///

                            InvokedBefore: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started before August 29, 2018.

                          • + ///

                            InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started before August 29, 2024.

                            ///
                          • ///

                            Target: Specify a managed node to which session connections have been made.

                          • ///
                          • @@ -45,9 +45,9 @@ impl SessionFilter { ///

                            The filter value. Valid values for each filter key are as follows:

                            ///
                              ///
                            • - ///

                              InvokedAfter: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and later.

                            • + ///

                              InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started August 29, 2024, and later.

                              ///
                            • - ///

                              InvokedBefore: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started before August 29, 2018.

                            • + ///

                              InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started before August 29, 2024.

                              ///
                            • ///

                              Target: Specify a managed node to which session connections have been made.

                            • ///
                            • @@ -109,9 +109,9 @@ impl SessionFilterBuilder { ///

                              The filter value. Valid values for each filter key are as follows:

                              ///
                                ///
                              • - ///

                                InvokedAfter: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and later.

                              • + ///

                                InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started August 29, 2024, and later.

                                ///
                              • - ///

                                InvokedBefore: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started before August 29, 2018.

                              • + ///

                                InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started before August 29, 2024.

                                ///
                              • ///

                                Target: Specify a managed node to which session connections have been made.

                              • ///
                              • @@ -143,9 +143,9 @@ impl SessionFilterBuilder { ///

                                The filter value. Valid values for each filter key are as follows:

                                ///
                                  ///
                                • - ///

                                  InvokedAfter: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and later.

                                • + ///

                                  InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started August 29, 2024, and later.

                                  ///
                                • - ///

                                  InvokedBefore: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started before August 29, 2018.

                                • + ///

                                  InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started before August 29, 2024.

                                  ///
                                • ///

                                  Target: Specify a managed node to which session connections have been made.

                                • ///
                                • @@ -176,9 +176,9 @@ impl SessionFilterBuilder { ///

                                  The filter value. Valid values for each filter key are as follows:

                                  ///
                                    ///
                                  • - ///

                                    InvokedAfter: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and later.

                                  • + ///

                                    InvokedAfter: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started August 29, 2024, and later.

                                    ///
                                  • - ///

                                    InvokedBefore: Specify a timestamp to limit your results. For example, specify 2018-08-29T00:00:00Z to see sessions that started before August 29, 2018.

                                  • + ///

                                    InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-08-29T00:00:00Z to see sessions that started before August 29, 2024.

                                    ///
                                  • ///

                                    Target: Specify a managed node to which session connections have been made.

                                  • ///
                                  • diff --git a/sdk/ssm/src/types/_target_location.rs b/sdk/ssm/src/types/_target_location.rs index 1dba1b379c6d..5bc1accaf463 100644 --- a/sdk/ssm/src/types/_target_location.rs +++ b/sdk/ssm/src/types/_target_location.rs @@ -16,6 +16,17 @@ pub struct TargetLocation { pub execution_role_name: ::std::option::Option<::std::string::String>, ///

                                    The details for the CloudWatch alarm you want to apply to an automation or command.

                                    pub target_location_alarm_configuration: ::std::option::Option, + ///

                                    Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is false.

                                    + pub include_child_organization_units: bool, + ///

                                    Amazon Web Services accounts or organizational units to exclude as expanded targets.

                                    + pub exclude_accounts: ::std::option::Option<::std::vec::Vec<::std::string::String>>, + ///

                                    A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for TargetParameterName.

                                    + ///

                                    This Targets parameter takes precedence over the StartAutomationExecution:Targets parameter if both are supplied.

                                    + pub targets: ::std::option::Option<::std::vec::Vec>, + ///

                                    The maximum number of targets allowed to run this task in parallel. This TargetsMaxConcurrency takes precedence over the StartAutomationExecution:MaxConcurrency parameter if both are supplied.

                                    + pub targets_max_concurrency: ::std::option::Option<::std::string::String>, + ///

                                    The maximum number of errors that are allowed before the system stops running the automation on additional targets. This TargetsMaxErrors parameter takes precedence over the StartAutomationExecution:MaxErrors parameter if both are supplied.

                                    + pub targets_max_errors: ::std::option::Option<::std::string::String>, } impl TargetLocation { ///

                                    The Amazon Web Services accounts targeted by the current Automation execution.

                                    @@ -46,6 +57,31 @@ impl TargetLocation { pub fn target_location_alarm_configuration(&self) -> ::std::option::Option<&crate::types::AlarmConfiguration> { self.target_location_alarm_configuration.as_ref() } + ///

                                    Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is false.

                                    + pub fn include_child_organization_units(&self) -> bool { + self.include_child_organization_units + } + ///

                                    Amazon Web Services accounts or organizational units to exclude as expanded targets.

                                    + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.exclude_accounts.is_none()`. + pub fn exclude_accounts(&self) -> &[::std::string::String] { + self.exclude_accounts.as_deref().unwrap_or_default() + } + ///

                                    A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for TargetParameterName.

                                    + ///

                                    This Targets parameter takes precedence over the StartAutomationExecution:Targets parameter if both are supplied.

                                    + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.targets.is_none()`. + pub fn targets(&self) -> &[crate::types::Target] { + self.targets.as_deref().unwrap_or_default() + } + ///

                                    The maximum number of targets allowed to run this task in parallel. This TargetsMaxConcurrency takes precedence over the StartAutomationExecution:MaxConcurrency parameter if both are supplied.

                                    + pub fn targets_max_concurrency(&self) -> ::std::option::Option<&str> { + self.targets_max_concurrency.as_deref() + } + ///

                                    The maximum number of errors that are allowed before the system stops running the automation on additional targets. This TargetsMaxErrors parameter takes precedence over the StartAutomationExecution:MaxErrors parameter if both are supplied.

                                    + pub fn targets_max_errors(&self) -> ::std::option::Option<&str> { + self.targets_max_errors.as_deref() + } } impl TargetLocation { /// Creates a new builder-style object to manufacture [`TargetLocation`](crate::types::TargetLocation). @@ -64,6 +100,11 @@ pub struct TargetLocationBuilder { pub(crate) target_location_max_errors: ::std::option::Option<::std::string::String>, pub(crate) execution_role_name: ::std::option::Option<::std::string::String>, pub(crate) target_location_alarm_configuration: ::std::option::Option, + pub(crate) include_child_organization_units: ::std::option::Option, + pub(crate) exclude_accounts: ::std::option::Option<::std::vec::Vec<::std::string::String>>, + pub(crate) targets: ::std::option::Option<::std::vec::Vec>, + pub(crate) targets_max_concurrency: ::std::option::Option<::std::string::String>, + pub(crate) targets_max_errors: ::std::option::Option<::std::string::String>, } impl TargetLocationBuilder { /// Appends an item to `accounts`. @@ -162,6 +203,91 @@ impl TargetLocationBuilder { pub fn get_target_location_alarm_configuration(&self) -> &::std::option::Option { &self.target_location_alarm_configuration } + ///

                                    Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is false.

                                    + pub fn include_child_organization_units(mut self, input: bool) -> Self { + self.include_child_organization_units = ::std::option::Option::Some(input); + self + } + ///

                                    Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is false.

                                    + pub fn set_include_child_organization_units(mut self, input: ::std::option::Option) -> Self { + self.include_child_organization_units = input; + self + } + ///

                                    Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is false.

                                    + pub fn get_include_child_organization_units(&self) -> &::std::option::Option { + &self.include_child_organization_units + } + /// Appends an item to `exclude_accounts`. + /// + /// To override the contents of this collection use [`set_exclude_accounts`](Self::set_exclude_accounts). + /// + ///

                                    Amazon Web Services accounts or organizational units to exclude as expanded targets.

                                    + pub fn exclude_accounts(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + let mut v = self.exclude_accounts.unwrap_or_default(); + v.push(input.into()); + self.exclude_accounts = ::std::option::Option::Some(v); + self + } + ///

                                    Amazon Web Services accounts or organizational units to exclude as expanded targets.

                                    + pub fn set_exclude_accounts(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { + self.exclude_accounts = input; + self + } + ///

                                    Amazon Web Services accounts or organizational units to exclude as expanded targets.

                                    + pub fn get_exclude_accounts(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { + &self.exclude_accounts + } + /// Appends an item to `targets`. + /// + /// To override the contents of this collection use [`set_targets`](Self::set_targets). + /// + ///

                                    A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for TargetParameterName.

                                    + ///

                                    This Targets parameter takes precedence over the StartAutomationExecution:Targets parameter if both are supplied.

                                    + pub fn targets(mut self, input: crate::types::Target) -> Self { + let mut v = self.targets.unwrap_or_default(); + v.push(input); + self.targets = ::std::option::Option::Some(v); + self + } + ///

                                    A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for TargetParameterName.

                                    + ///

                                    This Targets parameter takes precedence over the StartAutomationExecution:Targets parameter if both are supplied.

                                    + pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.targets = input; + self + } + ///

                                    A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for TargetParameterName.

                                    + ///

                                    This Targets parameter takes precedence over the StartAutomationExecution:Targets parameter if both are supplied.

                                    + pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec> { + &self.targets + } + ///

                                    The maximum number of targets allowed to run this task in parallel. This TargetsMaxConcurrency takes precedence over the StartAutomationExecution:MaxConcurrency parameter if both are supplied.

                                    + pub fn targets_max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.targets_max_concurrency = ::std::option::Option::Some(input.into()); + self + } + ///

                                    The maximum number of targets allowed to run this task in parallel. This TargetsMaxConcurrency takes precedence over the StartAutomationExecution:MaxConcurrency parameter if both are supplied.

                                    + pub fn set_targets_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.targets_max_concurrency = input; + self + } + ///

                                    The maximum number of targets allowed to run this task in parallel. This TargetsMaxConcurrency takes precedence over the StartAutomationExecution:MaxConcurrency parameter if both are supplied.

                                    + pub fn get_targets_max_concurrency(&self) -> &::std::option::Option<::std::string::String> { + &self.targets_max_concurrency + } + ///

                                    The maximum number of errors that are allowed before the system stops running the automation on additional targets. This TargetsMaxErrors parameter takes precedence over the StartAutomationExecution:MaxErrors parameter if both are supplied.

                                    + pub fn targets_max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.targets_max_errors = ::std::option::Option::Some(input.into()); + self + } + ///

                                    The maximum number of errors that are allowed before the system stops running the automation on additional targets. This TargetsMaxErrors parameter takes precedence over the StartAutomationExecution:MaxErrors parameter if both are supplied.

                                    + pub fn set_targets_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.targets_max_errors = input; + self + } + ///

                                    The maximum number of errors that are allowed before the system stops running the automation on additional targets. This TargetsMaxErrors parameter takes precedence over the StartAutomationExecution:MaxErrors parameter if both are supplied.

                                    + pub fn get_targets_max_errors(&self) -> &::std::option::Option<::std::string::String> { + &self.targets_max_errors + } /// Consumes the builder and constructs a [`TargetLocation`](crate::types::TargetLocation). pub fn build(self) -> crate::types::TargetLocation { crate::types::TargetLocation { @@ -171,6 +297,11 @@ impl TargetLocationBuilder { target_location_max_errors: self.target_location_max_errors, execution_role_name: self.execution_role_name, target_location_alarm_configuration: self.target_location_alarm_configuration, + include_child_organization_units: self.include_child_organization_units.unwrap_or_default(), + exclude_accounts: self.exclude_accounts, + targets: self.targets, + targets_max_concurrency: self.targets_max_concurrency, + targets_max_errors: self.targets_max_errors, } } } diff --git a/sdk/ssm/src/types/error/_target_not_connected.rs b/sdk/ssm/src/types/error/_target_not_connected.rs index 38c7f1c70ad0..7ade8b37e63f 100644 --- a/sdk/ssm/src/types/error/_target_not_connected.rs +++ b/sdk/ssm/src/types/error/_target_not_connected.rs @@ -1,6 +1,6 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///

                                    The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see Getting started with Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region

                                    +///

                                    The specified target managed node for the session isn't fully configured for use with Session Manager. For more information, see Setting up Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you attempt to start a session on a managed node that is located in a different account or Region

                                    #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct TargetNotConnected { diff --git a/versions.toml b/versions.toml index 7215c2680137..f602272236cb 100644 --- a/versions.toml +++ b/versions.toml @@ -455,8 +455,8 @@ model_hash = '887fa8d62137a444faf49b35c87c543efb59d1b15a0f07414312be2410eb6c6c' [crates.aws-sdk-codebuild] category = 'AwsSdk' version = '1.54.0' -source_hash = '189d445554ff5a4b3ea81a140132470219d06c103ad0dcdf3125b614d78a59db' -model_hash = '32f10679147d89451793f892b9a841d9f769ca1392f869ebb85c3a9256d07af8' +source_hash = '78ac7a4155d392f0b57a903bd8e7995f24b7e14c623ec078a33fc3e464c7fa39' +model_hash = '109da083aae6d025a8134e6d41b9a37bad195c5ade03200342a978c879743d6b' [crates.aws-sdk-codecatalyst] category = 'AwsSdk' @@ -761,8 +761,8 @@ model_hash = '98c64ac19e5b1b6d648e7f1555abd77e32558f86abd1a37ba610fed06c0e7ca4' [crates.aws-sdk-ecr] category = 'AwsSdk' version = '1.46.0' -source_hash = 'dd2659dae6c2646e1389420298cd33f51b643a60c00f2e9795dc038c37d39812' -model_hash = '55308aa571ae78823c82c1941e3a644114d966f314abd6d19f71b4b972413604' +source_hash = 'fa3376a2ba100da9ed41f53a96a26e04a9d67abe920ad29b4ee5b458502d1ef7' +model_hash = 'fc05f42481b46847ffd694f7d0613fd54751f8230e63c424d16ee39d008a04f5' [crates.aws-sdk-ecrpublic] category = 'AwsSdk' @@ -773,8 +773,8 @@ model_hash = 'b6e23be351cb44f9f2b57d80f227604694a8bac84ed1467add8d019c824ac349' [crates.aws-sdk-ecs] category = 'AwsSdk' version = '1.45.0' -source_hash = 'a6d2ecf55a2561fc87e62f4a78981661f1c99d01da2e16f0ac0f6d1ce0e00e12' -model_hash = '6126eba108c6f0d5eed5166fb84c0644a4b58c73d7500ba93cb4408d9690736e' +source_hash = 'ce74e70a6e75b8791cac0dd96dfdb48d62b3ff57c24145ec3c2e3952171fbe54' +model_hash = '3238332dddb6909cf5be962b1b2ad41fc74bec9889984e5abbb7b326d4f5bc50' [crates.aws-sdk-efs] category = 'AwsSdk' @@ -1247,8 +1247,8 @@ model_hash = '1ac04b59a5e828393dfbaf53d353cd7615e325048e93c609a907b449a90e623c' [crates.aws-sdk-lambda] category = 'AwsSdk' version = '1.46.0' -source_hash = '2ac54b1a6473d1712a6b852f89073ad4fbf0f72d67fa490375402b3e0d83552d' -model_hash = 'f714bde62719821c5046ccbc4f05944cd49f1e466ab706573e4fbd3f36111a0a' +source_hash = '541d5f7b309ef619bb69f659084d336fbd98a9b02b335e4e407b621f3207e4e4' +model_hash = '76ee022b99b0245272558c311e98b02b9ffd9d003183e964287eb6b91b06505f' [crates.aws-sdk-launchwizard] category = 'AwsSdk' @@ -1781,8 +1781,8 @@ model_hash = '33137a772550764a4312631b5ad37b61e0232d622a5d0bca86b20efd5bb76105' [crates.aws-sdk-rds] category = 'AwsSdk' version = '1.55.0' -source_hash = '730f30b9700c26b5fbda0ba2646fbcb20142eb2c6b86a66cccb23fcc015297cd' -model_hash = 'e3adc0b31f00e99904bbddf67312d551e2a618df8712bc48aac9c335cd450962' +source_hash = '969fc236555cff6f1b7a5053464153cbd3f74452ec2b25dc863f986238416658' +model_hash = 'ec06761e15369d9c087d9546eacf94d6fb5b50ab7f71277e67bfc6aa9535e646' [crates.aws-sdk-rdsdata] category = 'AwsSdk' @@ -2099,8 +2099,8 @@ model_hash = 'c2eff84dddd98c06be5de8a651c63dba5409cba342fc07ff0dccf8eae7479930' [crates.aws-sdk-ssm] category = 'AwsSdk' version = '1.48.0' -source_hash = '6ab3274d8f9ed0341287851372ddd337de775aa730a18572da56fa6e45b53bbb' -model_hash = '81372ca35d701572078721fde154c94059e01b456ccbd576c0b681f487fac019' +source_hash = 'ed3f6466b0854b31abf9c70af9ce63c8d84e6a5a5dbc8434dc8816bec52ed4fb' +model_hash = 'e8f7e17388c1762a9f281d030b81d6100336d0ebcbb5d87b980706d6527b1f93' [crates.aws-sdk-ssmcontacts] category = 'AwsSdk'