From 5fefc6dae108923986e1ab9209118f075eaf79a3 Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Wed, 15 Jan 2025 20:23:02 +0000 Subject: [PATCH] Update SDK models --- aws-models/api-gateway.json | 4 +- aws-models/bedrock-agent-runtime.json | 10 +- aws-models/cognito-identity.json | 287 +++--- aws-models/partnercentral-selling.json | 868 ++++++++++++------ aws-models/s3.json | 449 ++++++--- aws-models/sdk-endpoints.json | 4 + aws-models/security-ir.json | 2 +- aws-models/sesv2.json | 6 + aws-models/workspaces-thin-client.json | 3 +- aws-models/workspaces.json | 12 + .../src/client/create_base_path_mapping.rs | 2 +- sdk/apigateway/src/client/get_domain_name.rs | 2 +- .../_create_base_path_mapping_input.rs | 10 +- .../create_base_path_mapping/builders.rs | 6 +- .../get_domain_name/_get_domain_name_input.rs | 10 +- .../src/operation/get_domain_name/builders.rs | 6 +- .../src/client/invoke_inline_agent.rs | 1 + .../src/operation/invoke_agent/builders.rs | 4 +- .../_invoke_inline_agent_input.rs | 34 + .../operation/invoke_inline_agent/builders.rs | 21 +- .../shape_invoke_inline_agent_input.rs | 6 + sdk/bedrockagentruntime/src/types.rs | 4 +- sdk/bedrockagentruntime/src/types/builders.rs | 4 +- sdk/cognitoidentity/src/config/endpoint.rs | 312 ++----- .../src/config/endpoint/internals.rs | 32 + sdk/partnercentralselling/src/client.rs | 47 + .../src/client/create_opportunity.rs | 2 +- .../client/create_resource_snapshot_job.rs | 7 +- .../src/client/get_opportunity.rs | 2 +- .../src/client/get_resource_snapshot.rs | 6 +- .../src/client/get_resource_snapshot_job.rs | 12 +- .../src/client/list_engagement_members.rs | 2 +- .../list_engagement_resource_associations.rs | 4 +- .../src/client/list_resource_snapshots.rs | 2 +- .../src/client/list_tags_for_resource.rs | 13 + ...engagement_by_accepting_invitation_task.rs | 3 +- .../start_engagement_from_opportunity_task.rs | 7 +- .../src/client/start_resource_snapshot_job.rs | 2 +- .../src/client/stop_resource_snapshot_job.rs | 2 +- .../src/client/submit_opportunity.rs | 8 +- .../src/client/tag_resource.rs | 13 + .../src/client/untag_resource.rs | 13 + .../src/client/update_opportunity.rs | 2 +- sdk/partnercentralselling/src/error_meta.rs | 96 ++ sdk/partnercentralselling/src/lib.rs | 18 + sdk/partnercentralselling/src/operation.rs | 9 + .../operation/accept_engagement_invitation.rs | 11 + .../_create_opportunity_input.rs | 10 - .../operation/create_opportunity/builders.rs | 8 +- .../_create_resource_snapshot_job_input.rs | 60 +- .../create_resource_snapshot_job/builders.rs | 37 +- .../operation/delete_resource_snapshot_job.rs | 11 + .../_get_opportunity_output.rs | 10 - .../_get_resource_snapshot_output.rs | 30 +- .../_get_resource_snapshot_job_output.rs | 60 +- .../_list_engagement_members_input.rs | 10 +- .../list_engagement_members/builders.rs | 8 +- ..._engagement_resource_associations_input.rs | 50 +- .../builders.rs | 30 +- .../operation/list_engagements/builders.rs | 2 +- .../operation/list_resource_snapshot_jobs.rs | 11 + .../_list_resource_snapshots_input.rs | 10 +- .../list_resource_snapshots/builders.rs | 20 +- .../src/operation/list_tags_for_resource.rs | 411 +++++++++ .../_list_tags_for_resource_input.rs | 53 ++ .../_list_tags_for_resource_output.rs | 83 ++ .../list_tags_for_resource/builders.rs | 125 +++ .../operation/reject_engagement_invitation.rs | 11 + ...ment_by_accepting_invitation_task_input.rs | 30 + ...ent_by_accepting_invitation_task_output.rs | 10 +- .../builders.rs | 19 + ..._engagement_from_opportunity_task_input.rs | 30 + ...engagement_from_opportunity_task_output.rs | 30 +- .../builders.rs | 19 + .../_start_resource_snapshot_job_input.rs | 40 +- .../start_resource_snapshot_job/builders.rs | 24 +- .../_stop_resource_snapshot_job_input.rs | 40 +- .../stop_resource_snapshot_job/builders.rs | 24 +- .../_submit_opportunity_input.rs | 130 ++- .../operation/submit_opportunity/builders.rs | 80 +- .../src/operation/tag_resource.rs | 414 +++++++++ .../tag_resource/_tag_resource_input.rs | 80 ++ .../tag_resource/_tag_resource_output.rs | 42 + .../src/operation/tag_resource/builders.rs | 144 +++ .../src/operation/untag_resource.rs | 420 +++++++++ .../untag_resource/_untag_resource_input.rs | 82 ++ .../untag_resource/_untag_resource_output.rs | 42 + .../src/operation/untag_resource/builders.rs | 144 +++ .../_update_opportunity_input.rs | 10 - .../operation/update_opportunity/builders.rs | 6 - .../src/protocol_serde.rs | 16 + .../shape_accept_engagement_invitation.rs | 15 + ...hape_create_resource_snapshot_job_input.rs | 12 + .../shape_delete_resource_snapshot_job.rs | 15 + .../shape_list_resource_snapshot_jobs.rs | 15 + .../shape_list_tags_for_resource.rs | 165 ++++ .../shape_list_tags_for_resource_input.rs | 10 + .../shape_reject_engagement_invitation.rs | 15 + ...ment_by_accepting_invitation_task_input.rs | 12 + ..._engagement_from_opportunity_task_input.rs | 12 + .../src/protocol_serde/shape_tag.rs | 62 ++ .../src/protocol_serde/shape_tag_list.rs | 32 + .../src/protocol_serde/shape_tag_resource.rs | 135 +++ .../shape_tag_resource_input.rs | 22 + .../protocol_serde/shape_untag_resource.rs | 135 +++ .../shape_untag_resource_input.rs | 19 + sdk/partnercentralselling/src/serde_util.rs | 19 + sdk/partnercentralselling/src/types.rs | 4 + ...engagement_resource_association_summary.rs | 10 +- .../src/types/_engagement_summary.rs | 60 +- ...ngagement_from_opportunity_task_summary.rs | 10 +- .../types/_resource_snapshot_job_summary.rs | 55 +- .../src/types/_resource_snapshot_summary.rs | 10 +- sdk/partnercentralselling/src/types/_tag.rs | 86 ++ .../src/types/builders.rs | 2 + sdk/partnercentralselling/src/types/error.rs | 4 +- .../src/types/error/builders.rs | 4 +- .../src/client/complete_multipart_upload.rs | 21 +- sdk/s3/src/client/copy_object.rs | 2 +- sdk/s3/src/client/create_multipart_upload.rs | 6 +- sdk/s3/src/client/create_session.rs | 4 +- sdk/s3/src/client/delete_objects.rs | 2 +- .../get_bucket_lifecycle_configuration.rs | 2 +- sdk/s3/src/client/get_object.rs | 10 +- sdk/s3/src/client/head_object.rs | 10 +- sdk/s3/src/client/list_parts.rs | 1 + sdk/s3/src/client/put_bucket_acl.rs | 2 +- sdk/s3/src/client/put_bucket_cors.rs | 2 +- sdk/s3/src/client/put_bucket_encryption.rs | 2 +- sdk/s3/src/client/put_bucket_policy.rs | 2 +- sdk/s3/src/client/put_bucket_replication.rs | 2 +- .../src/client/put_bucket_request_payment.rs | 2 +- sdk/s3/src/client/put_bucket_tagging.rs | 2 +- sdk/s3/src/client/put_bucket_versioning.rs | 2 +- sdk/s3/src/client/put_bucket_website.rs | 2 +- sdk/s3/src/client/put_object.rs | 29 +- sdk/s3/src/client/put_object_acl.rs | 2 +- sdk/s3/src/client/upload_part.rs | 20 +- .../src/client/write_get_object_response.rs | 9 +- .../abort_multipart_upload/builders.rs | 2 +- .../_complete_multipart_upload_input.rs | 112 ++- .../_complete_multipart_upload_output.rs | 88 +- .../complete_multipart_upload/builders.rs | 68 +- .../copy_object/_copy_object_output.rs | 10 +- sdk/s3/src/operation/copy_object/builders.rs | 2 +- .../src/operation/create_bucket/builders.rs | 2 +- .../_create_multipart_upload_input.rs | 34 +- .../_create_multipart_upload_output.rs | 34 +- .../create_multipart_upload/builders.rs | 22 +- .../create_session/_create_session_input.rs | 10 +- .../create_session/_create_session_output.rs | 10 +- .../src/operation/create_session/builders.rs | 8 +- .../src/operation/delete_bucket/builders.rs | 2 +- .../delete_bucket_lifecycle/builders.rs | 2 +- .../delete_bucket_policy/builders.rs | 2 +- .../src/operation/delete_object/builders.rs | 2 +- .../delete_objects/_delete_objects_input.rs | 60 +- .../src/operation/delete_objects/builders.rs | 38 +- ...t_bucket_lifecycle_configuration_output.rs | 10 +- .../builders.rs | 2 +- .../operation/get_bucket_policy/builders.rs | 2 +- sdk/s3/src/operation/get_object.rs | 2 +- .../get_object/_get_object_output.rs | 88 +- sdk/s3/src/operation/get_object/builders.rs | 2 +- .../get_object_attributes/builders.rs | 2 +- sdk/s3/src/operation/head_bucket/builders.rs | 2 +- .../head_object/_head_object_output.rs | 88 +- sdk/s3/src/operation/head_object/builders.rs | 2 +- .../list_directory_buckets/builders.rs | 2 +- .../list_multipart_uploads/builders.rs | 2 +- .../src/operation/list_objects_v2/builders.rs | 2 +- .../list_parts/_list_parts_output.rs | 22 + sdk/s3/src/operation/list_parts/builders.rs | 2 +- .../put_bucket_acl/_put_bucket_acl_input.rs | 10 +- .../src/operation/put_bucket_acl/builders.rs | 6 +- .../put_bucket_cors/_put_bucket_cors_input.rs | 10 +- .../src/operation/put_bucket_cors/builders.rs | 6 +- .../_put_bucket_encryption_input.rs | 10 +- .../put_bucket_encryption/builders.rs | 8 +- .../builders.rs | 2 +- .../_put_bucket_policy_input.rs | 60 +- .../operation/put_bucket_policy/builders.rs | 38 +- .../_put_bucket_replication_input.rs | 10 +- .../put_bucket_replication/builders.rs | 6 +- .../_put_bucket_request_payment_input.rs | 10 +- .../put_bucket_request_payment/builders.rs | 6 +- .../_put_bucket_tagging_input.rs | 10 +- .../operation/put_bucket_tagging/builders.rs | 6 +- .../_put_bucket_versioning_input.rs | 10 +- .../put_bucket_versioning/builders.rs | 8 +- .../_put_bucket_website_input.rs | 10 +- .../operation/put_bucket_website/builders.rs | 6 +- .../operation/put_object/_put_object_input.rs | 144 +-- .../put_object/_put_object_output.rs | 108 ++- sdk/s3/src/operation/put_object/builders.rs | 88 +- .../put_object_acl/_put_object_acl_input.rs | 10 +- .../src/operation/put_object_acl/builders.rs | 6 +- .../upload_part/_upload_part_input.rs | 74 +- .../upload_part/_upload_part_output.rs | 64 +- sdk/s3/src/operation/upload_part/builders.rs | 46 +- .../operation/upload_part_copy/builders.rs | 2 +- .../_write_get_object_response_input.rs | 64 +- .../write_get_object_response/builders.rs | 38 +- sdk/s3/src/protocol_serde/shape_checksum.rs | 35 +- .../shape_complete_multipart_upload.rs | 142 ++- .../protocol_serde/shape_completed_part.rs | 16 +- .../shape_copy_object_result.rs | 43 +- .../protocol_serde/shape_copy_part_result.rs | 21 +- .../shape_create_multipart_upload.rs | 34 +- .../shape_create_multipart_upload_output.rs | 7 + sdk/s3/src/protocol_serde/shape_get_object.rs | 10 + .../protocol_serde/shape_get_object_output.rs | 14 + .../src/protocol_serde/shape_head_object.rs | 10 + .../shape_head_object_output.rs | 14 + sdk/s3/src/protocol_serde/shape_list_parts.rs | 44 +- .../protocol_serde/shape_multipart_upload.rs | 14 + sdk/s3/src/protocol_serde/shape_object.rs | 30 +- .../src/protocol_serde/shape_object_part.rs | 21 +- .../protocol_serde/shape_object_version.rs | 46 +- sdk/s3/src/protocol_serde/shape_part.rs | 21 +- sdk/s3/src/protocol_serde/shape_put_object.rs | 175 ++-- .../protocol_serde/shape_put_object_output.rs | 14 + .../src/protocol_serde/shape_upload_part.rs | 54 +- .../shape_upload_part_output.rs | 7 + .../shape_write_get_object_response.rs | 159 ++-- sdk/s3/src/types.rs | 4 + sdk/s3/src/types/_checksum.rs | 84 +- sdk/s3/src/types/_checksum_algorithm.rs | 8 +- sdk/s3/src/types/_checksum_type.rs | 108 +++ sdk/s3/src/types/_completed_part.rs | 62 +- sdk/s3/src/types/_copy_object_result.rs | 84 +- sdk/s3/src/types/_copy_part_result.rs | 62 +- .../src/types/_create_bucket_configuration.rs | 35 +- sdk/s3/src/types/_location_info.rs | 2 +- sdk/s3/src/types/_multipart_upload.rs | 22 + sdk/s3/src/types/_object.rs | 22 + sdk/s3/src/types/_object_part.rs | 62 +- sdk/s3/src/types/_object_version.rs | 22 + sdk/s3/src/types/_part.rs | 62 +- sdk/sesv2/src/types/_recommendation_type.rs | 8 +- sdk/workspaces/src/types/_compute.rs | 14 + .../shape_maintenance_window.rs | 38 +- sdk/workspacesthinclient/src/serde_util.rs | 9 + .../src/types/_maintenance_window.rs | 22 +- versions.toml | 34 +- 245 files changed, 7569 insertions(+), 2122 deletions(-) create mode 100644 sdk/partnercentralselling/src/client/list_tags_for_resource.rs create mode 100644 sdk/partnercentralselling/src/client/tag_resource.rs create mode 100644 sdk/partnercentralselling/src/client/untag_resource.rs create mode 100644 sdk/partnercentralselling/src/operation/list_tags_for_resource.rs create mode 100644 sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_input.rs create mode 100644 sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_output.rs create mode 100644 sdk/partnercentralselling/src/operation/list_tags_for_resource/builders.rs create mode 100644 sdk/partnercentralselling/src/operation/tag_resource.rs create mode 100644 sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_input.rs create mode 100644 sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_output.rs create mode 100644 sdk/partnercentralselling/src/operation/tag_resource/builders.rs create mode 100644 sdk/partnercentralselling/src/operation/untag_resource.rs create mode 100644 sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_input.rs create mode 100644 sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_output.rs create mode 100644 sdk/partnercentralselling/src/operation/untag_resource/builders.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource_input.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_tag.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_tag_list.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_tag_resource.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_tag_resource_input.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_untag_resource.rs create mode 100644 sdk/partnercentralselling/src/protocol_serde/shape_untag_resource_input.rs create mode 100644 sdk/partnercentralselling/src/types/_tag.rs create mode 100644 sdk/s3/src/types/_checksum_type.rs diff --git a/aws-models/api-gateway.json b/aws-models/api-gateway.json index 44117eaf165c..f744b3430f49 100644 --- a/aws-models/api-gateway.json +++ b/aws-models/api-gateway.json @@ -2255,7 +2255,7 @@ "domainNameId": { "target": "com.amazonaws.apigateway#String", "traits": { - "smithy.api#documentation": "

The identifier for the domain name resource. Supported only for private custom domain names.

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

The identifier for the domain name resource. Required for private custom domain names.

", "smithy.api#httpQuery": "domainNameId" } }, @@ -6765,7 +6765,7 @@ "domainNameId": { "target": "com.amazonaws.apigateway#String", "traits": { - "smithy.api#documentation": "

\n The identifier for the domain name resource. Supported only for private custom domain names.\n

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

\n The identifier for the domain name resource. Required for private custom domain names.\n

", "smithy.api#httpQuery": "domainNameId" } } diff --git a/aws-models/bedrock-agent-runtime.json b/aws-models/bedrock-agent-runtime.json index 2627baf336f0..471c981fc430 100644 --- a/aws-models/bedrock-agent-runtime.json +++ b/aws-models/bedrock-agent-runtime.json @@ -4657,7 +4657,7 @@ } ], "traits": { - "smithy.api#documentation": "\n

The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeAgent.

\n
\n

Sends a prompt for the agent to process and respond to. Note the following fields for the request:

\n \n

The response is returned in the bytes field of the chunk object.

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

Sends a prompt for the agent to process and respond to. Note the following fields for the request:

\n \n

The response contains both chunk and trace attributes.

\n

The final response is returned in the bytes field of the chunk object. The InvokeAgent returns one chunk for the entire interaction.

\n ", "smithy.api#http": { "code": 200, "method": "POST", @@ -4928,7 +4928,7 @@ } ], "traits": { - "smithy.api#documentation": "

\n Invokes an inline Amazon Bedrock agent using the configurations you provide with the request.\n

\n \n \n

The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeInlineAgent.

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

\n Invokes an inline Amazon Bedrock agent using the configurations you provide with the request.\n

\n \n \n ", "smithy.api#http": { "code": 200, "method": "POST", @@ -5026,6 +5026,12 @@ "traits": { "smithy.api#documentation": "

Model settings for the request.

" } + }, + "streamingConfigurations": { + "target": "com.amazonaws.bedrockagentruntime#StreamingConfigurations", + "traits": { + "smithy.api#documentation": "

\n Specifies the configurations for streaming.\n

\n \n

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

\n
" + } } }, "traits": { diff --git a/aws-models/cognito-identity.json b/aws-models/cognito-identity.json index e5ba8de9ed82..95471907b7bc 100644 --- a/aws-models/cognito-identity.json +++ b/aws-models/cognito-identity.json @@ -297,6 +297,82 @@ } ], "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-east-1" + ] + } + ], + "endpoint": { + "url": "https://cognito-identity-fips.us-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-east-2" + ] + } + ], + "endpoint": { + "url": "https://cognito-identity-fips.us-east-2.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-west-1" + ] + } + ], + "endpoint": { + "url": "https://cognito-identity-fips.us-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-west-2" + ] + } + ], + "endpoint": { + "url": "https://cognito-identity-fips.us-west-2.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [], "endpoint": { @@ -401,6 +477,31 @@ } ], "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://cognito-identity.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [], "endpoint": { @@ -446,237 +547,159 @@ "smithy.rules#endpointTests": { "testCases": [ { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cognito-identity.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cognito-identity.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cognito-identity.ap-south-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cognito-identity.ap-southeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-southeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cognito-identity.ap-southeast-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-southeast-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cognito-identity.ca-central-1.amazonaws.com" + "url": "https://cognito-identity.us-east-1.amazonaws.com" } }, "params": { - "Region": "ca-central-1", + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cognito-identity.eu-central-1.amazonaws.com" + "url": "https://cognito-identity-fips.us-east-1.amazonaws.com" } }, "params": { - "Region": "eu-central-1", - "UseFIPS": false, + "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.eu-north-1.amazonaws.com" + "url": "https://cognito-identity.us-east-1.amazonaws.com" } }, "params": { - "Region": "eu-north-1", + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.eu-west-1.amazonaws.com" + "url": "https://cognito-identity-fips.us-east-1.amazonaws.com" } }, "params": { - "Region": "eu-west-1", - "UseFIPS": false, - "UseDualStack": false + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cognito-identity.eu-west-2.amazonaws.com" + "url": "https://cognito-identity.us-east-2.amazonaws.com" } }, "params": { - "Region": "eu-west-2", + "Region": "us-east-2", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cognito-identity.eu-west-3.amazonaws.com" + "url": "https://cognito-identity-fips.us-east-2.amazonaws.com" } }, "params": { - "Region": "eu-west-3", - "UseFIPS": false, + "Region": "us-east-2", + "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.me-south-1.amazonaws.com" + "url": "https://cognito-identity.us-east-2.amazonaws.com" } }, "params": { - "Region": "me-south-1", + "Region": "us-east-2", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": true } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.sa-east-1.amazonaws.com" + "url": "https://cognito-identity-fips.us-east-2.amazonaws.com" } }, "params": { - "Region": "sa-east-1", - "UseFIPS": false, - "UseDualStack": false + "Region": "us-east-2", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cognito-identity.us-east-1.amazonaws.com" + "url": "https://cognito-identity.us-west-1.amazonaws.com" } }, "params": { - "Region": "us-east-1", + "Region": "us-west-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://cognito-identity-fips.us-east-1.amazonaws.com" + "url": "https://cognito-identity-fips.us-west-1.amazonaws.com" } }, "params": { - "Region": "us-east-1", + "Region": "us-west-1", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.us-east-2.amazonaws.com" + "url": "https://cognito-identity.us-west-1.amazonaws.com" } }, "params": { - "Region": "us-east-2", + "Region": "us-west-1", "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://cognito-identity-fips.us-east-2.amazonaws.com" - } - }, - "params": { - "Region": "us-east-2", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": true } }, { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.us-west-1.amazonaws.com" + "url": "https://cognito-identity-fips.us-west-1.amazonaws.com" } }, "params": { "Region": "us-west-1", - "UseFIPS": false, - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": true } }, { @@ -706,28 +729,28 @@ } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity-fips.us-east-1.api.aws" + "url": "https://cognito-identity.us-west-2.amazonaws.com" } }, "params": { - "Region": "us-east-1", - "UseFIPS": true, + "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://cognito-identity.us-east-1.api.aws" + "url": "https://cognito-identity-fips.us-west-2.amazonaws.com" } }, "params": { - "Region": "us-east-1", - "UseFIPS": false, + "Region": "us-west-2", + "UseFIPS": true, "UseDualStack": true } }, diff --git a/aws-models/partnercentral-selling.json b/aws-models/partnercentral-selling.json index 02fdd1918c6c..e25abe9f00ba 100644 --- a/aws-models/partnercentral-selling.json +++ b/aws-models/partnercentral-selling.json @@ -4,6 +4,17 @@ "com.amazonaws.partnercentralselling#AWSPartnerCentralSelling": { "type": "service", "version": "2022-07-26", + "operations": [ + { + "target": "com.amazonaws.partnercentralselling#ListTagsForResource" + }, + { + "target": "com.amazonaws.partnercentralselling#TagResource" + }, + { + "target": "com.amazonaws.partnercentralselling#UntagResource" + } + ], "resources": [ { "target": "com.amazonaws.partnercentralselling#Engagement" @@ -418,6 +429,9 @@ { "target": "com.amazonaws.partnercentralselling#AccessDeniedException" }, + { + "target": "com.amazonaws.partnercentralselling#ConflictException" + }, { "target": "com.amazonaws.partnercentralselling#InternalServerException" }, @@ -438,7 +452,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to accept Engagement Invitations on AWS Partner Central" }, - "smithy.api#documentation": "

\n Use the AcceptEngagementInvitation action to accept an engagement invitation shared by AWS. \n Accepting the invitation indicates your willingness to participate in the engagement, \n granting you access to all engagement-related data.\n

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

Use the AcceptEngagementInvitation action to accept an engagement\n invitation shared by AWS. Accepting the invitation indicates your willingness to\n participate in the engagement, granting you access to all engagement-related\n data.

", "smithy.api#http": { "method": "POST", "uri": "/AcceptEngagementInvitation", @@ -452,14 +466,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n The CatalogType parameter specifies the catalog associated with the engagement invitation. \n Accepted values are AWS and Sandbox, \n which determine the environment in which the engagement invitation is managed.\n

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

The CatalogType parameter specifies the catalog associated with the\n engagement invitation. Accepted values are AWS and Sandbox,\n which determine the environment in which the engagement invitation is managed.

", "smithy.api#required": {} } }, "Identifier": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationArnOrIdentifier", "traits": { - "smithy.api#documentation": "

\n The Identifier parameter in the AcceptEngagementInvitationRequest specifies the unique \n identifier of the EngagementInvitation to be accepted. \n Providing the correct identifier ensures that the intended invitation is accepted.\n

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

The Identifier parameter in the\n AcceptEngagementInvitationRequest specifies the unique identifier of\n the EngagementInvitation to be accepted. Providing the correct identifier\n ensures that the intended invitation is accepted.

", "smithy.api#required": {} } } @@ -3540,7 +3554,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to creating engagements in AWS Partner Central" }, - "smithy.api#documentation": "

\n The CreateEngagement action allows you to create an Engagement, \n which serves as a collaborative space between different parties such as AWS Partners and AWS Sellers. \n This action automatically adds the caller's AWS account as an active member of the newly created Engagement.\n

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

The CreateEngagement action allows you to create an\n Engagement, which serves as a collaborative space between different\n parties such as AWS Partners and AWS Sellers. This action automatically adds the\n caller's AWS account as an active member of the newly created\n Engagement.

", "smithy.api#http": { "method": "POST", "uri": "/CreateEngagement", @@ -3584,7 +3598,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to creating engagement invitations in AWS Partner Central" }, - "smithy.api#documentation": "

\nThis action creates an invitation from a sender to a single receiver to join an engagement.\n

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

This action creates an invitation from a sender to a single receiver to join an\n engagement.

", "smithy.api#http": { "method": "POST", "uri": "/CreateEngagementInvitation", @@ -3599,14 +3613,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the engagement. \n Accepted values are AWS and Sandbox, \n which determine the environment in which the engagement is managed.\n

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

Specifies the catalog related to the engagement. Accepted values are AWS\n and Sandbox, which determine the environment in which the engagement is\n managed.

", "smithy.api#required": {} } }, "ClientToken": { "target": "com.amazonaws.partnercentralselling#ClientToken", "traits": { - "smithy.api#documentation": "

\n Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. \n This token helps prevent duplicate invitation creations.\n

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

Specifies a unique, client-generated UUID to ensure that the request is handled\n exactly once. This token helps prevent duplicate invitation creations.

", "smithy.api#idempotencyToken": {}, "smithy.api#required": {} } @@ -3614,14 +3628,14 @@ "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the Engagement associated with the invitation. \n This parameter ensures the invitation is created within the correct Engagement context.\n

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

The unique identifier of the Engagement associated with the invitation.\n This parameter ensures the invitation is created within the correct\n Engagement context.

", "smithy.api#required": {} } }, "Invitation": { "target": "com.amazonaws.partnercentralselling#Invitation", "traits": { - "smithy.api#documentation": "

\nThe Invitation object all information necessary to initiate an engagement invitation to a partner. \nIt contains a personalized message from the sender, the invitation's receiver, and a payload. The Payload can \nbe the OpportunityInvitation, which includes detailed structures for sender contacts, partner responsibilities, customer \ninformation, and project details.

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

The Invitation object all information necessary to initiate an\n engagement invitation to a partner. It contains a personalized message from the sender,\n the invitation's receiver, and a payload. The Payload can be the\n OpportunityInvitation, which includes detailed structures for sender\n contacts, partner responsibilities, customer information, and project details.

", "smithy.api#required": {} } } @@ -3636,14 +3650,14 @@ "Id": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationIdentifier", "traits": { - "smithy.api#documentation": "

\n Unique identifier assigned to the newly created engagement invitation.\n

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

Unique identifier assigned to the newly created engagement invitation.

", "smithy.api#required": {} } }, "Arn": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) that uniquely identifies the engagement\n invitation.\n

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

The Amazon Resource Name (ARN) that uniquely identifies the engagement invitation.\n

", "smithy.api#required": {} } } @@ -3658,14 +3672,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n The CreateEngagementRequest$Catalog parameter specifies the catalog related to the engagement. \n Accepted values are AWS and Sandbox, \n which determine the environment in which the engagement is managed.\n

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

The CreateEngagementRequest$Catalog parameter specifies the catalog\n related to the engagement. Accepted values are AWS and\n Sandbox, which determine the environment in which the engagement is\n managed.

", "smithy.api#required": {} } }, "ClientToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The CreateEngagementRequest$ClientToken parameter specifies a unique, case-sensitive identifier to ensure that the request is handled exactly once. \n The value must not exceed sixty-four alphanumeric characters.\n

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

The CreateEngagementRequest$ClientToken parameter specifies a unique,\n case-sensitive identifier to ensure that the request is handled exactly once. The value\n must not exceed sixty-four alphanumeric characters.

", "smithy.api#idempotencyToken": {}, "smithy.api#pattern": "^[!-~]{1,64}$", "smithy.api#required": {} @@ -3674,21 +3688,21 @@ "Title": { "target": "com.amazonaws.partnercentralselling#EngagementTitle", "traits": { - "smithy.api#documentation": "

\nSpecifies the title of the Engagement.\n

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

Specifies the title of the Engagement.

", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.partnercentralselling#EngagementDescription", "traits": { - "smithy.api#documentation": "

\nProvides a description of the Engagement.\n

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

Provides a description of the Engagement.

", "smithy.api#required": {} } }, "Contexts": { "target": "com.amazonaws.partnercentralselling#EngagementContexts", "traits": { - "smithy.api#documentation": "

\n The Contexts field is a required array of objects, with a maximum of 5 contexts allowed, \n specifying detailed information about customer projects associated with the Engagement. \n Each context object contains a Type field indicating the context type, \n which must be CustomerProject in this version, and a Payload field containing the CustomerProject details. The CustomerProject object is composed of two main components: Customer and Project. The Customer object includes information such as CompanyName, WebsiteUrl, Industry, and CountryCode, providing essential details about the customer. The Project object contains Title, BusinessProblem, and TargetCompletionDate, offering insights into the specific project associated with the customer. This structure allows comprehensive context to be included within the Engagement, \n facilitating effective collaboration between parties by providing relevant customer and project information.\n

" + "smithy.api#documentation": "

The Contexts field is a required array of objects, with a maximum of 5\n contexts allowed, specifying detailed information about customer projects associated\n with the Engagement. Each context object contains a Type field indicating\n the context type, which must be CustomerProject in this version, and a\n Payload field containing the CustomerProject details. The\n CustomerProject object is composed of two main components:\n Customer and Project. The Customer object\n includes information such as CompanyName, WebsiteUrl,\n Industry, and CountryCode, providing essential details\n about the customer. The Project object contains Title,\n BusinessProblem, and TargetCompletionDate, offering\n insights into the specific project associated with the customer. This structure allows\n comprehensive context to be included within the Engagement, facilitating effective\n collaboration between parties by providing relevant customer and project\n information.

" } } }, @@ -3702,13 +3716,13 @@ "Id": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\nUnique identifier assigned to the newly created engagement.\n

" + "smithy.api#documentation": "

Unique identifier assigned to the newly created engagement.

" } }, "Arn": { "target": "com.amazonaws.partnercentralselling#EngagementArn", "traits": { - "smithy.api#documentation": "

\nThe Amazon Resource Name (ARN) that identifies the engagement.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that identifies the engagement.

" } } }, @@ -3751,7 +3765,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to create new Opportunities on AWS Partner Central" }, - "smithy.api#documentation": "

Creates an Opportunity record in Partner Central. Use this operation to\n create a potential business opportunity for submission to Amazon Web Services. Creating\n an opportunity sets Lifecycle.ReviewStatus to Pending\n Submission.

\n

To submit an opportunity, follow these steps:

\n
    \n
  1. \n

    To create the opportunity, use CreateOpportunity.

    \n
  2. \n
  3. \n

    To associate a solution with the opportunity, use\n AssociateOpportunity.

    \n
  4. \n
  5. \n

    To submit the opportunity, use\n StartEngagementFromOpportunityTask.

    \n
  6. \n
\n

After submission, you can't edit the opportunity until the review is complete. But\n opportunities in the Pending Submission state must have complete details.\n You can update the opportunity while it's in the Pending Submission\n state.

\n

There's a set of mandatory fields to create opportunities, but consider providing\n optional fields to enrich the opportunity record.

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

Creates an Opportunity record in Partner Central. Use this operation to\n create a potential business opportunity for submission to Amazon Web Services. Creating\n an opportunity sets Lifecycle.ReviewStatus to Pending\n Submission.

\n

To submit an opportunity, follow these steps:

\n
    \n
  1. \n

    To create the opportunity, use CreateOpportunity.

    \n
  2. \n
  3. \n

    To associate a solution with the opportunity, use\n AssociateOpportunity.

    \n
  4. \n
  5. \n

    To start the engagement with AWS, use\n StartEngagementFromOpportunity.

    \n
  6. \n
\n

After submission, you can't edit the opportunity until the review is complete. But\n opportunities in the Pending Submission state must have complete details.\n You can update the opportunity while it's in the Pending Submission\n state.

\n

There's a set of mandatory fields to create opportunities, but consider providing\n optional fields to enrich the opportunity record.

", "smithy.api#http": { "method": "POST", "uri": "/CreateOpportunity", @@ -3773,7 +3787,7 @@ "PrimaryNeedsFromAws": { "target": "com.amazonaws.partnercentralselling#PrimaryNeedsFromAws", "traits": { - "smithy.api#documentation": "

Identifies the type of support the partner needs from Amazon Web Services.

\n

Valid values:

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

Identifies the type of support the partner needs from Amazon Web Services.

\n

Valid values:

\n " } }, "NationalSecurity": { @@ -3917,7 +3931,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to creating resource snapshots in AWS Partner Central" }, - "smithy.api#documentation": "

\n This action allows you to create an immutable snapshot of a specific resource, such as an opportunity, \n within the context of an engagement. \n The snapshot captures a subset of the resource's data based on the schema defined by the provided template.

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

This action allows you to create an immutable snapshot of a specific resource, such\n as an opportunity, within the context of an engagement. The snapshot captures a subset\n of the resource's data based on the schema defined by the provided template.

", "smithy.api#http": { "method": "POST", "uri": "/CreateResourceSnapshot", @@ -3958,7 +3972,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to creating resource snapshot jobs in AWS Partner Central" }, - "smithy.api#documentation": "

\n Use this action to create a job to generate a snapshot of the specified resource\n within an engagement. It initiates an asynchronous process to create a resource\n snapshot. The job creates a new snapshot only if the resource state has changed,\n adhering to the same access control and immutability rules as direct snapshot creation.\n

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

Use this action to create a job to generate a snapshot of the specified resource\n within an engagement. It initiates an asynchronous process to create a resource\n snapshot. The job creates a new snapshot only if the resource state has changed,\n adhering to the same access control and immutability rules as direct snapshot\n creation.

", "smithy.api#http": { "method": "POST", "uri": "/CreateResourceSnapshotJob", @@ -3973,14 +3987,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog in which to create the snapshot job. Valid values are\n AWS and Sandbox.\n

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

Specifies the catalog in which to create the snapshot job. Valid values are\n AWS and Sandbox.

", "smithy.api#required": {} } }, "ClientToken": { "target": "com.amazonaws.partnercentralselling#ClientToken", "traits": { - "smithy.api#documentation": "

\n Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. \n This token helps prevent duplicate snapshot job creations.\n

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

A client-generated UUID used for idempotency check. The token helps prevent duplicate\n job creations.

", "smithy.api#idempotencyToken": {}, "smithy.api#pattern": "^[!-~]{1,64}$", "smithy.api#required": {} @@ -3989,30 +4003,36 @@ "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the identifier of the engagement associated with the resource to be\n snapshotted.\n

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

Specifies the identifier of the engagement associated with the resource to be\n snapshotted.

", "smithy.api#required": {} } }, "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n The type of resource for which the snapshot job is being created. Must be one of the\n supported resource types Opportunity.\n

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

The type of resource for which the snapshot job is being created. Must be one of the\n supported resource types i.e. Opportunity\n

", "smithy.api#required": {} } }, "ResourceIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the identifier of the specific resource to be snapshotted. The format\n depends on the ResourceType.\n

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

Specifies the identifier of the specific resource to be snapshotted. The format\n depends on the ResourceType.

", "smithy.api#required": {} } }, "ResourceSnapshotTemplateIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceTemplateName", "traits": { - "smithy.api#documentation": "

\n Specifies the name of the template that defines the schema for the snapshot.\n

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

Specifies the name of the template that defines the schema for the snapshot.

", "smithy.api#required": {} } + }, + "Tags": { + "target": "com.amazonaws.partnercentralselling#TagList", + "traits": { + "smithy.api#documentation": "A list of objects specifying each tag name and value." + } } }, "traits": { @@ -4025,13 +4045,13 @@ "Id": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier for the created snapshot job.\n

" + "smithy.api#documentation": "

The unique identifier for the created snapshot job.

" } }, "Arn": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the created snapshot job.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the created snapshot job.

" } } }, @@ -4045,42 +4065,42 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog where the snapshot is created. Valid values are\n AWS and Sandbox.\n

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

Specifies the catalog where the snapshot is created. Valid values are\n AWS and Sandbox.

", "smithy.api#required": {} } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the engagement associated with this snapshot. This field\n links the snapshot to a specific engagement context.\n

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

The unique identifier of the engagement associated with this snapshot. This field\n links the snapshot to a specific engagement context.

", "smithy.api#required": {} } }, "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n Specifies the type of resource for which the snapshot is being created. This field\n determines the structure and content of the snapshot. Must be one of the supported\n resource types, such as: Opportunity.\n

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

Specifies the type of resource for which the snapshot is being created. This field\n determines the structure and content of the snapshot. Must be one of the supported\n resource types, such as: Opportunity.

", "smithy.api#required": {} } }, "ResourceIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the specific resource to be snapshotted. The format and\n constraints of this identifier depend on the ResourceType specified. For example: For\n Opportunity type, it will be an opportunity ID.\n

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

The unique identifier of the specific resource to be snapshotted. The format and\n constraints of this identifier depend on the ResourceType specified. For\n example: For Opportunity type, it will be an opportunity ID.

", "smithy.api#required": {} } }, "ResourceSnapshotTemplateIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceTemplateName", "traits": { - "smithy.api#documentation": "

\n The name of the template that defines the schema for the snapshot. This template\n determines which subset of the resource data will be included in the snapshot. Must\n correspond to an existing and valid template for the specified ResourceType.\n

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

The name of the template that defines the schema for the snapshot. This template\n determines which subset of the resource data will be included in the snapshot. Must\n correspond to an existing and valid template for the specified\n ResourceType.

", "smithy.api#required": {} } }, "ClientToken": { "target": "com.amazonaws.partnercentralselling#ClientToken", "traits": { - "smithy.api#documentation": "

\n Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. \n This token helps prevent duplicate snapshot creations.\n

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

Specifies a unique, client-generated UUID to ensure that the request is handled\n exactly once. This token helps prevent duplicate snapshot creations.

", "smithy.api#idempotencyToken": {}, "smithy.api#pattern": "^[!-~]{1,64}$", "smithy.api#required": {} @@ -4097,13 +4117,13 @@ "Arn": { "target": "com.amazonaws.partnercentralselling#ResourceArn", "traits": { - "smithy.api#documentation": "

\n Specifies the Amazon Resource Name (ARN) that uniquely identifies the snapshot\n created.\n

" + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) that uniquely identifies the snapshot\n created.

" } }, "Revision": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotRevision", "traits": { - "smithy.api#documentation": "

\n Specifies the revision number of the created snapshot. This field provides important\n information about the snapshot's place in the sequence of snapshots for the given\n resource.\n

" + "smithy.api#documentation": "

Specifies the revision number of the created snapshot. This field provides important\n information about the snapshot's place in the sequence of snapshots for the given\n resource.

" } } }, @@ -5162,12 +5182,12 @@ "Project": { "target": "com.amazonaws.partnercentralselling#EngagementCustomerProjectDetails", "traits": { - "smithy.api#documentation": "

\n Information about the customer project associated with the Engagement.\n

" + "smithy.api#documentation": "

Information about the customer project associated with the Engagement.

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

\n The CustomerProjects structure in Engagements offers a flexible framework for managing\n customer-project relationships. It supports multiple customers per Engagement and\n multiple projects per customer, while also allowing for customers without projects and\n projects without specific customers.\n

\n

All Engagement members have full visibility of customers and their associated\n projects, enabling the capture of relevant context even when project details are not\n fully defined. This structure also facilitates targeted invitations, allowing partners\n to focus on specific customers and their business problems when sending Engagement\n invitations.

" + "smithy.api#documentation": "

The CustomerProjects structure in Engagements offers a flexible framework for managing\n customer-project relationships. It supports multiple customers per Engagement and\n multiple projects per customer, while also allowing for customers without projects and\n projects without specific customers.

\n

All Engagement members have full visibility of customers and their associated\n projects, enabling the capture of relevant context even when project details are not\n fully defined. This structure also facilitates targeted invitations, allowing partners\n to focus on specific customers and their business problems when sending Engagement\n invitations.

" } }, "com.amazonaws.partnercentralselling#CustomerSummary": { @@ -5208,6 +5228,9 @@ { "target": "com.amazonaws.partnercentralselling#AccessDeniedException" }, + { + "target": "com.amazonaws.partnercentralselling#ConflictException" + }, { "target": "com.amazonaws.partnercentralselling#ResourceNotFoundException" }, @@ -5222,7 +5245,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to deleting resource snapshot jobs on AWS Partner Central" }, - "smithy.api#documentation": "

\n Use this action to deletes a previously created resource snapshot job. The job must be\n in a stopped state before it can be deleted.\n

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

Use this action to deletes a previously created resource snapshot job. The job must\n be in a stopped state before it can be deleted.

", "smithy.api#http": { "method": "POST", "uri": "/DeleteResourceSnapshotJob", @@ -5237,14 +5260,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog from which to delete the snapshot job. Valid values are\n AWS and Sandbox. \n

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

Specifies the catalog from which to delete the snapshot job. Valid values are\n AWS and Sandbox.

", "smithy.api#required": {} } }, "ResourceSnapshotJobIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the resource snapshot job to be deleted.\n

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

The unique identifier of the resource snapshot job to be deleted.

", "smithy.api#required": {}, "smithy.api#resourceIdentifier": "Identifier" } @@ -5483,19 +5506,19 @@ "Type": { "target": "com.amazonaws.partnercentralselling#EngagementContextType", "traits": { - "smithy.api#documentation": "

\n Specifies the type of Engagement context. Valid values are \"CustomerProject\" or\n \"Document\", indicating whether the context relates to a customer project or a document\n respectively. \n

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

Specifies the type of Engagement context. Valid values are \"CustomerProject\" or\n \"Document\", indicating whether the context relates to a customer project or a document\n respectively.

", "smithy.api#required": {} } }, "Payload": { "target": "com.amazonaws.partnercentralselling#EngagementContextPayload", "traits": { - "smithy.api#documentation": "

\n Contains the specific details of the Engagement context. The structure of this payload\n varies depending on the Type field. \n

" + "smithy.api#documentation": "

Contains the specific details of the Engagement context. The structure of this payload\n varies depending on the Type field.

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

\n Provides detailed context information for an Engagement. This structure allows for\n specifying the type of context and its associated payload. \n

" + "smithy.api#documentation": "

Provides detailed context information for an Engagement. This structure allows for\n specifying the type of context and its associated payload.

" } }, "com.amazonaws.partnercentralselling#EngagementContextPayload": { @@ -5504,12 +5527,12 @@ "CustomerProject": { "target": "com.amazonaws.partnercentralselling#CustomerProjectsContext", "traits": { - "smithy.api#documentation": "

\n Contains detailed information about a customer project when the context type is\n \"CustomerProject\". This field is present only when the Type in EngagementContextDetails\n is set to \"CustomerProject\".\n

" + "smithy.api#documentation": "

Contains detailed information about a customer project when the context type is\n \"CustomerProject\". This field is present only when the Type in EngagementContextDetails\n is set to \"CustomerProject\".

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

\n Represents the payload of an Engagement context. The structure of this payload varies\n based on the context type specified in the EngagementContextDetails.\n

" + "smithy.api#documentation": "

Represents the payload of an Engagement context. The structure of this payload varies\n based on the context type specified in the EngagementContextDetails.

" } }, "com.amazonaws.partnercentralselling#EngagementContextType": { @@ -5586,28 +5609,28 @@ "Title": { "target": "com.amazonaws.partnercentralselling#EngagementCustomerProjectTitle", "traits": { - "smithy.api#documentation": "

\n The title of the project.\n

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

The title of the project.

", "smithy.api#required": {} } }, "BusinessProblem": { "target": "com.amazonaws.partnercentralselling#EngagementCustomerBusinessProblem", "traits": { - "smithy.api#documentation": "

\n A description of the business problem the project aims to solve.\n

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

A description of the business problem the project aims to solve.

", "smithy.api#required": {} } }, "TargetCompletionDate": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The target completion date for the customer's project.\n

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

The target completion date for the customer's project.

", "smithy.api#pattern": "^[1-9][0-9]{3}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

\n Provides comprehensive details about a customer project associated with an Engagement.\n This may include information such as project goals, timelines, and specific customer\n requirements.\n

" + "smithy.api#documentation": "

Provides comprehensive details about a customer project associated with an Engagement.\n This may include information such as project goals, timelines, and specific customer\n requirements.

" } }, "com.amazonaws.partnercentralselling#EngagementCustomerProjectTitle": { @@ -5793,7 +5816,7 @@ "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the Engagement associated with this invitation. This links the\n invitation to its parent Engagement. \n

" + "smithy.api#documentation": "

The identifier of the Engagement associated with this invitation. This links the\n invitation to its parent Engagement.

" } }, "EngagementTitle": { @@ -5871,24 +5894,24 @@ "CompanyName": { "target": "com.amazonaws.partnercentralselling#MemberCompanyName", "traits": { - "smithy.api#documentation": "

\n The official name of the member's company or organization.\n

" + "smithy.api#documentation": "

The official name of the member's company or organization.

" } }, "WebsiteUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The URL of the member company's website. This offers a way to find more information\n about the member organization and serves as an additional identifier.\n

" + "smithy.api#documentation": "

The URL of the member company's website. This offers a way to find more information\n about the member organization and serves as an additional identifier.

" } }, "AccountId": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

\n This is the unique identifier for the AWS account associated with the member\n organization. It's used for AWS-related operations and identity verification. \n

" + "smithy.api#documentation": "

This is the unique identifier for the AWS account associated with the member\n organization. It's used for AWS-related operations and identity verification.

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

Engagement members are the participants in an Engagement, which is likely a\n collaborative project or business opportunity within the AWS partner network. Members\n can be different partner organizations or AWS accounts that are working together on a\n specific engagement.

\n

Each member is represented by their AWS Account ID, Company Name, and associated\n details. Members have a status within the Engagement (PENDING, ACCEPTED, REJECTED, or\n WITHDRAWN), indicating their current state of participation. Only existing members of an\n Engagement can view the list of other members. This implies a level of privacy and\n access control within the Engagement structure.

" + "smithy.api#documentation": "

Engagement members are the participants in an Engagement, which is likely a\n collaborative project or business opportunity within the AWS partner network. Members\n can be different partner organizations or AWS accounts that are working together on a\n specific engagement.

\n

Each member is represented by their AWS Account ID, Company Name, and associated\n details. Members have a status within the Engagement (PENDING, ACCEPTED, REJECTED, or\n WITHDRAWN), indicating their current state of participation. Only existing members of an\n Engagement can view the list of other members. This implies a level of privacy and\n access control within the Engagement structure.

" } }, "com.amazonaws.partnercentralselling#EngagementMemberSummaries": { @@ -5903,18 +5926,18 @@ "CompanyName": { "target": "com.amazonaws.partnercentralselling#MemberCompanyName", "traits": { - "smithy.api#documentation": "

\n The official name of the member's company or organization.\n

" + "smithy.api#documentation": "

The official name of the member's company or organization.

" } }, "WebsiteUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The URL of the member company's website. This offers a way to find more information\n about the member organization and serves as an additional identifier.\n

" + "smithy.api#documentation": "

The URL of the member company's website. This offers a way to find more information\n about the member organization and serves as an additional identifier.

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

\n The EngagementMemberSummary provides a snapshot of essential information about\n participants in an AWS Partner Central Engagement. This compact data structure\n encapsulates key details of each member, facilitating efficient collaboration and\n management within the Engagement.\n

" + "smithy.api#documentation": "

The EngagementMemberSummary provides a snapshot of essential information about\n participants in an AWS Partner Central Engagement. This compact data structure\n encapsulates key details of each member, facilitating efficient collaboration and\n management within the Engagement.

" } }, "com.amazonaws.partnercentralselling#EngagementMembers": { @@ -5944,37 +5967,37 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Indicates the environment in which the resource and engagement exist.\n

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

Indicates the environment in which the resource and engagement exist.

", "smithy.api#required": {} } }, "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n A unique identifier for the engagement associated with the resource.\n

" + "smithy.api#documentation": "

A unique identifier for the engagement associated with the resource.

" } }, "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n Categorizes the type of resource associated with the engagement.\n

" + "smithy.api#documentation": "

Categorizes the type of resource associated with the engagement.

" } }, "ResourceId": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n A unique identifier for the specific resource. Varies depending on the resource\n type.\n

" + "smithy.api#documentation": "

A unique identifier for the specific resource. Varies depending on the resource type.\n

" } }, "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

\n The AWS account ID of the entity that created the association.\n

" + "smithy.api#documentation": "

The AWS account ID of the entity that owns the resource. Identifies the account\n responsible for or having primary control over the resource.

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

\n This provide a streamlined view of the relationships between engagements and\n resources. These summaries offer a crucial link between collaborative engagements and\n the specific resources involved, such as opportunities.These summaries are particularly\n valuable for partners navigating complex engagements with multiple resources. They\n enable quick insights into resource distribution across engagements, support efficient\n resource management, and help maintain a clear overview of collaborative activities.\n

" + "smithy.api#documentation": "

This provide a streamlined view of the relationships between engagements and\n resources. These summaries offer a crucial link between collaborative engagements and\n the specific resources involved, such as opportunities.These summaries are particularly\n valuable for partners navigating complex engagements with multiple resources. They\n enable quick insights into resource distribution across engagements, support efficient\n resource management, and help maintain a clear overview of collaborative activities.\n

" } }, "com.amazonaws.partnercentralselling#EngagementResourceAssociationSummaryList": { @@ -6012,20 +6035,20 @@ "SortOrder": { "target": "com.amazonaws.partnercentralselling#SortOrder", "traits": { - "smithy.api#documentation": "

\n The order in which to sort the results.\n

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

The order in which to sort the results.

", "smithy.api#required": {} } }, "SortBy": { "target": "com.amazonaws.partnercentralselling#EngagementSortName", "traits": { - "smithy.api#documentation": "

\n The field by which to sort the results.\n

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

The field by which to sort the results.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

\n Specifies the sorting parameters for listing Engagements.\n

" + "smithy.api#documentation": "

Specifies the sorting parameters for listing Engagements.

" } }, "com.amazonaws.partnercentralselling#EngagementSortName": { @@ -6045,42 +6068,42 @@ "Arn": { "target": "com.amazonaws.partnercentralselling#EngagementArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the created engagement.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the created Engagement.

" } }, "Id": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier for the engagement.\n

" + "smithy.api#documentation": "

The unique identifier for the Engagement.

" } }, "Title": { "target": "com.amazonaws.partnercentralselling#EngagementTitle", "traits": { - "smithy.api#documentation": "

\n The title of the engagement.\n

" + "smithy.api#documentation": "

The title of the Engagement.

" } }, "CreatedAt": { "target": "com.amazonaws.partnercentralselling#DateTime", "traits": { - "smithy.api#documentation": "

\n The date and time when the engagement was created.\n

" + "smithy.api#documentation": "

The date and time when the Engagement was created.

" } }, "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

\n The AWS account ID of the engagement creator.\n

" + "smithy.api#documentation": "

The AWS Account ID of the Engagement creator.

" } }, "MemberCount": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

\n The number of members in the engagement.\n

" + "smithy.api#documentation": "

The number of members in the Engagement.

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

\n An object that contains an Engagement's subset of fields.\n

" + "smithy.api#documentation": "

An object that contains an Engagement's subset of fields.

" } }, "com.amazonaws.partnercentralselling#EngagementSummaryList": { @@ -6137,7 +6160,7 @@ "EstimationUrl": { "target": "com.amazonaws.partnercentralselling#WebsiteUrl", "traits": { - "smithy.api#documentation": "

\n A URL providing additional information or context about the spend estimation.\n

" + "smithy.api#documentation": "

A URL providing additional information or context about the spend estimation.

" } } }, @@ -6354,7 +6377,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to retrieval of engagement details in AWS Partner Central" }, - "smithy.api#documentation": "

\n Use this action to retrieve the engagement record for a given\n EngagementIdentifier.\n

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

Use this action to retrieve the engagement record for a given\n EngagementIdentifier.

", "smithy.api#http": { "method": "POST", "uri": "/GetEngagement", @@ -6451,7 +6474,7 @@ "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the engagement associated with this invitation.This ID links the\n invitation to its corresponding engagement.\n

" + "smithy.api#documentation": "

The identifier of the engagement associated with this invitation.This ID links the\n invitation to its corresponding engagement.

" } }, "EngagementTitle": { @@ -6521,19 +6544,19 @@ "InvitationMessage": { "target": "com.amazonaws.partnercentralselling#InvitationMessage", "traits": { - "smithy.api#documentation": "

\n The message sent to the invited partner when the invitation was created.\n

" + "smithy.api#documentation": "

The message sent to the invited partner when the invitation was created.

" } }, "EngagementDescription": { "target": "com.amazonaws.partnercentralselling#EngagementDescription", "traits": { - "smithy.api#documentation": "

\n The description of the engagement associated with this invitation.\n

" + "smithy.api#documentation": "

The description of the engagement associated with this invitation.

" } }, "ExistingMembers": { "target": "com.amazonaws.partnercentralselling#EngagementMemberSummaries", "traits": { - "smithy.api#documentation": "

\n A list of active members currently part of the Engagement. This array contains a\n maximum of 10 members, each represented by an object with the following\n properties.\n

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

A list of active members currently part of the Engagement. This array contains a\n maximum of 10 members, each represented by an object with the following\n properties.

\n " } } }, @@ -6547,14 +6570,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the engagement request. Valid values are\n AWS and Sandbox.\n

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

Specifies the catalog related to the engagement request. Valid values are\n AWS and Sandbox.

", "smithy.api#required": {} } }, "Identifier": { "target": "com.amazonaws.partnercentralselling#EngagementArnOrIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the identifier of the Engagement record to retrieve.\n

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

Specifies the identifier of the Engagement record to retrieve.

", "smithy.api#required": {} } } @@ -6569,49 +6592,49 @@ "Id": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique resource identifier of the engagement retrieved.\n

" + "smithy.api#documentation": "

The unique resource identifier of the engagement retrieved.

" } }, "Arn": { "target": "com.amazonaws.partnercentralselling#EngagementArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the engagement retrieved.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the engagement retrieved.

" } }, "Title": { "target": "com.amazonaws.partnercentralselling#EngagementTitle", "traits": { - "smithy.api#documentation": "

\n The title of the engagement. It provides a brief, descriptive name for the engagement\n that is meaningful and easily recognizable.\n

" + "smithy.api#documentation": "

The title of the engagement. It provides a brief, descriptive name for the engagement\n that is meaningful and easily recognizable.

" } }, "Description": { "target": "com.amazonaws.partnercentralselling#EngagementDescription", "traits": { - "smithy.api#documentation": "

\n A more detailed description of the engagement. This provides additional context or\n information about the engagement's purpose or scope. \n

" + "smithy.api#documentation": "

A more detailed description of the engagement. This provides additional context or\n information about the engagement's purpose or scope.

" } }, "CreatedAt": { "target": "com.amazonaws.partnercentralselling#DateTime", "traits": { - "smithy.api#documentation": "

\n The date and time when the Engagement was created, presented in ISO 8601 format (UTC).\n For example: \"2023-05-01T20:37:46Z\". This timestamp helps track the lifecycle of the\n Engagement.\n

" + "smithy.api#documentation": "

The date and time when the Engagement was created, presented in ISO 8601 format (UTC).\n For example: \"2023-05-01T20:37:46Z\". This timestamp helps track the lifecycle of the\n Engagement.

" } }, "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

\n The AWS account ID of the user who originally created the engagement. This field helps\n in tracking the origin of the engagement.\n

" + "smithy.api#documentation": "

The AWS account ID of the user who originally created the engagement. This field helps\n in tracking the origin of the engagement.

" } }, "MemberCount": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

\n Specifies the current count of members participating in the Engagement. This count\n includes all active members regardless of their roles or permissions within the\n Engagement.\n

" + "smithy.api#documentation": "

Specifies the current count of members participating in the Engagement. This count\n includes all active members regardless of their roles or permissions within the\n Engagement.

" } }, "Contexts": { "target": "com.amazonaws.partnercentralselling#EngagementContexts", "traits": { - "smithy.api#documentation": "

\n A list of context objects associated with the engagement. Each context provides\n additional information related to the Engagement, such as customer projects or\n documents.\n

" + "smithy.api#documentation": "

A list of context objects associated with the engagement. Each context provides\n additional information related to the Engagement, such as customer projects or\n documents.

" } } }, @@ -6695,7 +6718,7 @@ "PrimaryNeedsFromAws": { "target": "com.amazonaws.partnercentralselling#PrimaryNeedsFromAws", "traits": { - "smithy.api#documentation": "

Identifies the type of support the partner needs from Amazon Web Services.

\n

Valid values:

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

Identifies the type of support the partner needs from Amazon Web Services.

\n

Valid values:

\n " } }, "NationalSecurity": { @@ -6861,7 +6884,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to retrieving resource snapshot job details in AWS Partner Central" }, - "smithy.api#documentation": "

\n Use this action to retrieves information about a specific resource snapshot\n job.\n

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

Use this action to retrieves information about a specific resource snapshot\n job.

", "smithy.api#http": { "method": "POST", "uri": "/GetResourceSnapshotJob", @@ -6876,14 +6899,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request. Valid values are:\n

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

Specifies the catalog related to the request. Valid values are:

\n ", "smithy.api#required": {} } }, "ResourceSnapshotJobIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the resource snapshot job to be retrieved. This identifier is\n crucial for pinpointing the specific job you want to query.\n

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

The unique identifier of the resource snapshot job to be retrieved. This identifier is\n crucial for pinpointing the specific job you want to query.

", "smithy.api#required": {}, "smithy.api#resourceIdentifier": "Identifier" } @@ -6899,74 +6922,74 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n The catalog in which the snapshot job was created. This will match the catalog\n specified in the request.\n

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

The catalog in which the snapshot job was created. This will match the Catalog\n specified in the request.

", "smithy.api#required": {} } }, "Id": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the snapshot job. This matches the\n ResourceSnapshotJobIdentifier provided in the request. \n

" + "smithy.api#documentation": "

The unique identifier of the snapshot job. This matches the\n ResourceSnapshotJobIdentifier provided in the request.

" } }, "Arn": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobArn", "traits": { - "smithy.api#documentation": "

\n he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier\n can be used for resource-specific operations across AWS services. \n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier\n can be used for resource-specific operations across AWS services.

" } }, "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the engagement associated with this snapshot job. This links the job\n to a specific engagement context. \n

" + "smithy.api#documentation": "

The identifier of the engagement associated with this snapshot job. This links the job\n to a specific engagement context.

" } }, "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n The type of resource being snapshotted. This would have Opportunity as a value as it\n is dependent on the supported resource type. \n

" + "smithy.api#documentation": "

The type of resource being snapshotted. This would have \"Opportunity\" as a value as it\n is dependent on the supported resource type.

" } }, "ResourceId": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the specific resource being snapshotted. The format may vary\n depending on the ResourceType.\n

" + "smithy.api#documentation": "

The identifier of the specific resource being snapshotted. The format might vary\n depending on the ResourceType.

" } }, "ResourceArn": { "target": "com.amazonaws.partnercentralselling#ResourceArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the resource being snapshotted. This provides a\n globally unique identifier for the resource across AWS.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource being snapshotted. This provides a\n globally unique identifier for the resource across AWS.

" } }, "ResourceSnapshotTemplateName": { "target": "com.amazonaws.partnercentralselling#ResourceTemplateName", "traits": { - "smithy.api#documentation": "

\n The name of the template used for creating the snapshot. This is the same as the\n template name. It defines the structure and content of the snapshot.\n

" + "smithy.api#documentation": "

The name of the template used for creating the snapshot. This is the same as the\n template name. It defines the structure and content of the snapshot.

" } }, "CreatedAt": { "target": "com.amazonaws.partnercentralselling#DateTime", "traits": { - "smithy.api#documentation": "

\n The date and time when the snapshot job was created, in ISO 8601 format (UTC).\n Example: \"2023-05-01T20:37:46Z\"\n

" + "smithy.api#documentation": "

The date and time when the snapshot job was created in ISO 8601 format (UTC).\n Example: \"2023-05-01T20:37:46Z\"

" } }, "Status": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobStatus", "traits": { - "smithy.api#documentation": "

\n The current status of the snapshot job. Valid values:\n

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

The current status of the snapshot job. Valid values:

\n " } }, "LastSuccessfulExecutionDate": { "target": "com.amazonaws.partnercentralselling#DateTime", "traits": { - "smithy.api#documentation": "

\n The date and time of the last successful execution of the job, in ISO 8601 format\n (UTC). Example: \"2023-05-01T20:37:46Z\"\n

" + "smithy.api#documentation": "

The date and time of the last successful execution of the job, in ISO 8601 format\n (UTC). Example: \"2023-05-01T20:37:46Z\"

" } }, "LastFailure": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n If the job has encountered any failures, this field contains the error message from\n the most recent failure. This can be useful for troubleshooting issues with the job.\n

" + "smithy.api#documentation": "

If the job has encountered any failures, this field contains the error message from\n the most recent failure. This can be useful for troubleshooting issues with the job.\n

" } } }, @@ -7036,7 +7059,7 @@ "Arn": { "target": "com.amazonaws.partnercentralselling#ResourceArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be\n used for resource-specific operations across AWS services.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

" } }, "CreatedBy": { @@ -7060,25 +7083,25 @@ "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n The type of the resource that was snapshotted. Matches the ResourceType specified in\n the request.\n

" + "smithy.api#documentation": "

The type of the resource that was snapshotted. Matches the ResourceType specified in\n the request.

" } }, "ResourceId": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the specific resource that was snapshotted. Matches the\n ResourceIdentifier specified in the request.\n

" + "smithy.api#documentation": "

The identifier of the specific resource that was snapshotted. Matches the\n ResourceIdentifier specified in the request.

" } }, "ResourceSnapshotTemplateName": { "target": "com.amazonaws.partnercentralselling#ResourceTemplateName", "traits": { - "smithy.api#documentation": "

\n The name of the view used for this snapshot. This is the same as the template\n name.\n

" + "smithy.api#documentation": "

The name of the view used for this snapshot. This is the same as the template\n name.

" } }, "Revision": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotRevision", "traits": { - "smithy.api#documentation": "

\n The revision number of this snapshot. This is a positive integer that is sequential\n and unique within the context of a resource view.\n

" + "smithy.api#documentation": "

The revision number of this snapshot. This is a positive integer that is sequential\n and unique within the context of a resource view.

" } }, "Payload": { @@ -7118,7 +7141,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to retrieving system settings settings in AWS Partner Central" }, - "smithy.api#documentation": "

Retrieves the currently set system settings, which include the IAM Role used for resource snapshot jobs.

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

Retrieves the currently set system settings, which include the IAM Role used for\n resource snapshot jobs.

", "smithy.api#http": { "method": "POST", "uri": "/GetSellingSystemSettings", @@ -7133,7 +7156,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

Specifies the catalog in which the settings are defined. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

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

Specifies the catalog in which the settings are defined. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

", "smithy.api#required": {} } } @@ -7148,7 +7171,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

Specifies the catalog in which the settings are defined. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

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

Specifies the catalog in which the settings are defined. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

", "smithy.api#required": {} } }, @@ -7355,7 +7378,7 @@ "Message": { "target": "com.amazonaws.partnercentralselling#InvitationMessage", "traits": { - "smithy.api#documentation": "

\n A message accompanying the invitation.\n

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

A message accompanying the invitation.

", "smithy.api#required": {} } }, @@ -7373,7 +7396,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n The Invitation structure represents an invitation exchanged between partners and AWS.\n It includes a message, receiver information, and a payload providing context for the\n invitation.\n

" + "smithy.api#documentation": "

The Invitation structure represents an invitation exchanged between partners and AWS.\n It includes a message, receiver information, and a payload providing context for the\n invitation.

" } }, "com.amazonaws.partnercentralselling#InvitationMessage": { @@ -7558,25 +7581,25 @@ "TargetCloseDate": { "target": "com.amazonaws.partnercentralselling#Date", "traits": { - "smithy.api#documentation": "

\n The projected launch date of the opportunity shared through a snapshot.\n

" + "smithy.api#documentation": "

The projected launch date of the opportunity shared through a snapshot.

" } }, "ReviewStatus": { "target": "com.amazonaws.partnercentralselling#ReviewStatus", "traits": { - "smithy.api#documentation": "

\n Defines the approval status of the opportunity shared through a snapshot.\n

" + "smithy.api#documentation": "

Defines the approval status of the opportunity shared through a snapshot.

" } }, "Stage": { "target": "com.amazonaws.partnercentralselling#Stage", "traits": { - "smithy.api#documentation": "

\n Defines the current stage of the opportunity shared through a snapshot.\n

" + "smithy.api#documentation": "

Defines the current stage of the opportunity shared through a snapshot.

" } }, "NextSteps": { "target": "com.amazonaws.partnercentralselling#PiiString", "traits": { - "smithy.api#documentation": "

\n Describes the next steps for the opportunity shared through a snapshot.\n

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

Describes the next steps for the opportunity shared through a snapshot.

", "smithy.api#length": { "max": 255 } @@ -7584,7 +7607,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Provides the lifecycle view of an opportunity resource shared through a\n snapshot.\n

" + "smithy.api#documentation": "

Provides the lifecycle view of an opportunity resource shared through a snapshot.\n

" } }, "com.amazonaws.partnercentralselling#LifeCycleSummary": { @@ -7652,60 +7675,60 @@ "TaskId": { "target": "com.amazonaws.partnercentralselling#TaskIdentifier", "traits": { - "smithy.api#documentation": "

\n Unique identifier of the task.\n

" + "smithy.api#documentation": "

Unique identifier of the task.

" } }, "TaskArn": { "target": "com.amazonaws.partnercentralselling#TaskArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) that uniquely identifies the task.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the task.

" } }, "StartTime": { "target": "com.amazonaws.partnercentralselling#DateTime", "traits": { - "smithy.api#documentation": "

\n Task start timestamp.\n

" + "smithy.api#documentation": "

Task start timestamp.

" } }, "TaskStatus": { "target": "com.amazonaws.partnercentralselling#TaskStatus", "traits": { - "smithy.api#documentation": "

\n Status of the task.\n

" + "smithy.api#documentation": "

Status of the task.

" } }, "Message": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n Detailed message describing the failure and possible recovery steps.\n

" + "smithy.api#documentation": "

Detailed message describing the failure and possible recovery steps.

" } }, "ReasonCode": { "target": "com.amazonaws.partnercentralselling#ReasonCode", "traits": { - "smithy.api#documentation": "

\n A code pointing to the specific reason for the failure.\n

" + "smithy.api#documentation": "

A code pointing to the specific reason for the failure.

" } }, "OpportunityId": { "target": "com.amazonaws.partnercentralselling#OpportunityIdentifier", "traits": { - "smithy.api#documentation": "

\n Unique identifier of opportunity that was created.\n

" + "smithy.api#documentation": "

Unique identifier of opportunity that was created.

" } }, "ResourceSnapshotJobId": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n Unique identifier of the resource snapshot job that was created.\n

" + "smithy.api#documentation": "

Unique identifier of the resource snapshot job that was created.

" } }, "EngagementInvitationId": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the engagement invitation that was accepted.\n

" + "smithy.api#documentation": "

The unique identifier of the engagement invitation that was accepted.

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

\n Specifies a subset of fields associated with tasks related to accepting an engagement\n invitation.\n

" + "smithy.api#documentation": "

Specifies a subset of fields associated with tasks related to accepting an engagement\n invitation.

" } }, "com.amazonaws.partnercentralselling#ListEngagementByAcceptingInvitationTasks": { @@ -7737,7 +7760,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing engagements by accepting invitation tasks in AWS Partner\nCentral" }, - "smithy.api#documentation": "

\n Lists all in-progress, completed, or failed StartEngagementByAcceptingInvitationTask\n tasks that were initiated by the caller's account. \n

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

Lists all in-progress, completed, or failed StartEngagementByAcceptingInvitationTask\n tasks that were initiated by the caller's account.

", "smithy.api#http": { "method": "POST", "uri": "/ListEngagementByAcceptingInvitationTasks", @@ -7758,7 +7781,7 @@ "MaxResults": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

\n Use this parameter to control the number of items returned in each request, which can\n be useful for performance tuning and managing large result sets.\n

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

Use this parameter to control the number of items returned in each request, which can\n be useful for performance tuning and managing large result sets.

", "smithy.api#range": { "min": 1, "max": 1000 @@ -7768,7 +7791,7 @@ "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n Use this parameter for pagination when the result set spans multiple pages. This value\n is obtained from the NextToken field in the response of a previous call to this API.\n

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

Use this parameter for pagination when the result set spans multiple pages. This\n value is obtained from the NextToken field in the response of a previous call to this\n API.

", "smithy.api#length": { "min": 1, "max": 2048 @@ -7778,38 +7801,38 @@ "Sort": { "target": "com.amazonaws.partnercentralselling#ListTasksSortBase", "traits": { - "smithy.api#documentation": "

\n Specifies the sorting criteria for the returned results. This allows you to order the\n tasks based on specific attributes.\n

" + "smithy.api#documentation": "

Specifies the sorting criteria for the returned results. This allows you to order the\n tasks based on specific attributes.

" } }, "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request. Valid values are:\n

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

Specifies the catalog related to the request. Valid values are:

\n ", "smithy.api#required": {} } }, "TaskStatus": { "target": "com.amazonaws.partnercentralselling#TaskStatuses", "traits": { - "smithy.api#documentation": "

\n Filters the tasks based on their current status. This allows you to focus on tasks in\n specific states.\n

" + "smithy.api#documentation": "

Filters the tasks based on their current status. This allows you to focus on tasks in\n specific states.

" } }, "OpportunityIdentifier": { "target": "com.amazonaws.partnercentralselling#OpportunityIdentifiers", "traits": { - "smithy.api#documentation": "

\n Filters tasks by the identifiers of the opportunities they created or are associated\n with.\n

" + "smithy.api#documentation": "

Filters tasks by the identifiers of the opportunities they created or are associated\n with.

" } }, "EngagementInvitationIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationIdentifiers", "traits": { - "smithy.api#documentation": "

\n Filters tasks by the identifiers of the engagement invitations they are\n processing.\n

" + "smithy.api#documentation": "

Filters tasks by the identifiers of the engagement invitations they are processing.\n

" } }, "TaskIdentifier": { "target": "com.amazonaws.partnercentralselling#TaskIdentifiers", "traits": { - "smithy.api#documentation": "

\n Filters tasks by their unique identifiers. Use this when you want to retrieve\n information about specific tasks. \n

" + "smithy.api#documentation": "

Filters tasks by their unique identifiers. Use this when you want to retrieve\n information about specific tasks.

" } } }, @@ -7823,13 +7846,13 @@ "TaskSummaries": { "target": "com.amazonaws.partnercentralselling#ListEngagementByAcceptingInvitationTaskSummaries", "traits": { - "smithy.api#documentation": "

\n An array of EngagementByAcceptingInvitationTaskSummary objects, each representing a\n task that matches the specified filters. The array may be empty if no tasks match the\n criteria.\n

" + "smithy.api#documentation": "

An array of EngagementByAcceptingInvitationTaskSummary objects, each\n representing a task that matches the specified filters. The array may be empty if no\n tasks match the criteria.

" } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n A token used for pagination to retrieve the next page of results.If there are more\n results available, this field will contain a token that can be used in a subsequent API\n call to retrieve the next page. If there are no more results, this field will be null or\n an empty string.\n

" + "smithy.api#documentation": "

A token used for pagination to retrieve the next page of results.If there are more\n results available, this field will contain a token that can be used in a subsequent API\n call to retrieve the next page. If there are no more results, this field will be null or\n an empty string.

" } } }, @@ -7849,66 +7872,66 @@ "TaskId": { "target": "com.amazonaws.partnercentralselling#TaskIdentifier", "traits": { - "smithy.api#documentation": "

\n A unique identifier for a specific task.\n

" + "smithy.api#documentation": "

A unique identifier for a specific task.

" } }, "TaskArn": { "target": "com.amazonaws.partnercentralselling#TaskArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) uniquely identifying this task within AWS. This ARN can\n be used for referencing the task in other AWS services or APIs.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) uniquely identifying this task within AWS. This ARN\n can be used for referencing the task in other AWS services or APIs.

" } }, "StartTime": { "target": "com.amazonaws.partnercentralselling#DateTime", "traits": { - "smithy.api#documentation": "

\n The timestamp indicating when the task was initiated, in RFC 3339 5.6 date-time\n format.\n

" + "smithy.api#documentation": "

The timestamp indicating when the task was initiated, in RFC 3339 5.6 date-time\n format.

" } }, "TaskStatus": { "target": "com.amazonaws.partnercentralselling#TaskStatus", "traits": { - "smithy.api#documentation": "

\n The current status of the task.\n

" + "smithy.api#documentation": "

The current status of the task.

" } }, "Message": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n A detailed message providing additional information about the task, especially useful\n in case of failures. This field may contain error details or other relevant information\n about the task's execution\n

" + "smithy.api#documentation": "

A detailed message providing additional information about the task, especially useful\n in case of failures. This field may contain error details or other relevant information\n about the task's execution

" } }, "ReasonCode": { "target": "com.amazonaws.partnercentralselling#ReasonCode", "traits": { - "smithy.api#documentation": "

\n A code indicating the specific reason for a task failure. This field is populated when\n the task status is FAILED and provides a categorized reason for the failure.\n

" + "smithy.api#documentation": "

A code indicating the specific reason for a task failure. This field is populated\n when the task status is FAILED and provides a categorized reason for the failure.\n

" } }, "OpportunityId": { "target": "com.amazonaws.partnercentralselling#OpportunityIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the original Opportunity from which the Engagement is being\n created. This field helps track the source of the Engagement creation task. \n

" + "smithy.api#documentation": "

The unique identifier of the original Opportunity from which the Engagement is being\n created. This field helps track the source of the Engagement creation task.

" } }, "ResourceSnapshotJobId": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the resource snapshot job associated with this task, if a snapshot\n was created as part of the Engagement creation process.\n

" + "smithy.api#documentation": "

The identifier of the resource snapshot job associated with this task, if a snapshot\n was created as part of the Engagement creation process.

" } }, "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the engagement created as a result of the task. This field is\n populated when the task is completed successfully. \n

" + "smithy.api#documentation": "

The unique identifier of the engagement created as a result of the task. This field\n is populated when the task is completed successfully.

" } }, "EngagementInvitationId": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the engagement identifier created as a result of the task. This field is\n populated when the task is completed successfully.\n

" + "smithy.api#documentation": "

The unique identifier of the Engagement Invitation.

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

\n Provides a summary of a task related to creating an engagement from an opportunity.\n This structure contains key information about the task's status, associated identifiers,\n and any failure details.\n

" + "smithy.api#documentation": "

Provides a summary of a task related to creating an engagement from an opportunity.\n This structure contains key information about the task's status, associated identifiers,\n and any failure details.

" } }, "com.amazonaws.partnercentralselling#ListEngagementFromOpportunityTasks": { @@ -7940,7 +7963,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing engagements from opportunity tasks in AWS Partner Central" }, - "smithy.api#documentation": "

\n Lists all in-progress, completed, or failed EngagementFromOpportunity tasks that were\n initiated by the caller's account.\n

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

Lists all in-progress, completed, or failed EngagementFromOpportunity\n tasks that were initiated by the caller's account.

", "smithy.api#http": { "method": "POST", "uri": "/ListEngagementFromOpportunityTasks", @@ -7961,7 +7984,7 @@ "MaxResults": { "target": "smithy.api#Integer", "traits": { - "smithy.api#documentation": "

\n Specifies the maximum number of results to return in a single page of the response.Use\n this parameter to control the number of items returned in each request, which can be\n useful for performance tuning and managing large result sets. \n

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

Specifies the maximum number of results to return in a single page of the\n response.Use this parameter to control the number of items returned in each request,\n which can be useful for performance tuning and managing large result sets.

", "smithy.api#range": { "min": 1, "max": 1000 @@ -7971,7 +7994,7 @@ "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token for requesting the next page of results. This value is obtained from the\n NextToken field in the response of a previous call to this API. Use this parameter for\n pagination when the result set spans multiple pages.\n

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

The token for requesting the next page of results. This value is obtained from the\n NextToken field in the response of a previous call to this API. Use this parameter for\n pagination when the result set spans multiple pages.

", "smithy.api#length": { "min": 1, "max": 2048 @@ -7981,38 +8004,38 @@ "Sort": { "target": "com.amazonaws.partnercentralselling#ListTasksSortBase", "traits": { - "smithy.api#documentation": "

\n Specifies the sorting criteria for the returned results. This allows you to order the\n tasks based on specific attributes. \n

" + "smithy.api#documentation": "

Specifies the sorting criteria for the returned results. This allows you to order the\n tasks based on specific attributes.

" } }, "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request. Valid values are:\n

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

Specifies the catalog related to the request. Valid values are:

\n ", "smithy.api#required": {} } }, "TaskStatus": { "target": "com.amazonaws.partnercentralselling#TaskStatuses", "traits": { - "smithy.api#documentation": "

\n Filters the tasks based on their current status. This allows you to focus on tasks in\n specific states.\n

" + "smithy.api#documentation": "

Filters the tasks based on their current status. This allows you to focus on tasks in\n specific states.

" } }, "TaskIdentifier": { "target": "com.amazonaws.partnercentralselling#TaskIdentifiers", "traits": { - "smithy.api#documentation": "

\n Filters tasks by their unique identifiers. Use this when you want to retrieve\n information about specific tasks. \n

" + "smithy.api#documentation": "

Filters tasks by their unique identifiers. Use this when you want to retrieve\n information about specific tasks.

" } }, "OpportunityIdentifier": { "target": "com.amazonaws.partnercentralselling#OpportunityIdentifiers", "traits": { - "smithy.api#documentation": "

\n The identifier of the original opportunity associated with this task.\n

" + "smithy.api#documentation": "

The identifier of the original opportunity associated with this task.

" } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifiers", "traits": { - "smithy.api#documentation": "

\n Filters tasks by the identifiers of the engagements they created or are associated\n with.\n

" + "smithy.api#documentation": "

Filters tasks by the identifiers of the engagements they created or are associated\n with.

" } } }, @@ -8026,13 +8049,13 @@ "TaskSummaries": { "target": "com.amazonaws.partnercentralselling#ListEngagementFromOpportunityTaskSummaries", "traits": { - "smithy.api#documentation": "

\n TaskSummaries An array of TaskSummary objects containing details about each\n task.\n

" + "smithy.api#documentation": "

TaskSummaries An array of TaskSummary objects containing details about each task.\n

" } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n A token used for pagination to retrieve the next page of results. If there are more\n results available, this field will contain a token that can be used in a subsequent API\n call to retrieve the next page. If there are no more results, this field will be null or\n an empty string.\n

" + "smithy.api#documentation": "

A token used for pagination to retrieve the next page of results. If there are more\n results available, this field will contain a token that can be used in a subsequent API\n call to retrieve the next page. If there are no more results, this field will be null or\n an empty string.

" } } }, @@ -8131,19 +8154,19 @@ "Status": { "target": "com.amazonaws.partnercentralselling#InvitationStatusList", "traits": { - "smithy.api#documentation": "

\n Status values to filter the invitations.\n

" + "smithy.api#documentation": "

Status values to filter the invitations.

" } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifiers", "traits": { - "smithy.api#documentation": "

\n Retrieves a list of engagement invitation summaries based on specified filters. The\n ListEngagementInvitations operation allows you to view all invitations that you have\n sent or received. You must specify the ParticipantType to filter invitations where you\n are either the SENDER or the RECEIVER. Invitations will automatically expire if not\n accepted within 15 days.\n

" + "smithy.api#documentation": "

Retrieves a list of engagement invitation summaries based on specified filters. The\n ListEngagementInvitations operation allows you to view all invitations that you have\n sent or received. You must specify the ParticipantType to filter invitations where you\n are either the SENDER or the RECEIVER. Invitations will automatically expire if not\n accepted within 15 days.

" } }, "SenderAwsAccountId": { "target": "com.amazonaws.partnercentralselling#AwsAccountIdOrAliasList", "traits": { - "smithy.api#documentation": "

\n List of sender AWS account IDs to filter the invitations.\n

" + "smithy.api#documentation": "

List of sender AWS account IDs to filter the invitations.

" } } }, @@ -8200,7 +8223,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing engagement members in AWS Partner Central" }, - "smithy.api#documentation": "

\n Retrieves the details of member partners in an engagement. This operation can only be\n invoked by members of the engagement. The ListEngagementMembers operation allows you to\n fetch information about the members of a specific engagement. This action is restricted\n to members of the engagement being queried.\n

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

Retrieves the details of member partners in an Engagement. This operation can only be\n invoked by members of the Engagement. The ListEngagementMembers operation\n allows you to fetch information about the members of a specific Engagement. This action\n is restricted to members of the Engagement being queried.

", "smithy.api#http": { "method": "POST", "uri": "/ListEngagementMembers", @@ -8221,14 +8244,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n The catalog related to the request. \n

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

The catalog related to the request.

", "smithy.api#required": {} } }, "Identifier": { "target": "com.amazonaws.partnercentralselling#EngagementArnOrIdentifier", "traits": { - "smithy.api#documentation": "

\n Identifier of the engagement record to retrieve members from.\n

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

Identifier of the Engagement record to retrieve members from.

", "smithy.api#required": {} } }, @@ -8236,13 +8259,13 @@ "target": "com.amazonaws.partnercentralselling#MemberPageSize", "traits": { "smithy.api#default": 5, - "smithy.api#documentation": "

\n The maximum number of results to return in a single call.\n

" + "smithy.api#documentation": "

The maximum number of results to return in a single call.

" } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results.\n

" + "smithy.api#documentation": "

The token for the next set of results.

" } } }, @@ -8256,14 +8279,14 @@ "EngagementMemberList": { "target": "com.amazonaws.partnercentralselling#EngagementMembers", "traits": { - "smithy.api#documentation": "

\nProvides a list of engagement members.\n

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

Provides a list of engagement members.

", "smithy.api#required": {} } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n A pagination token used to retrieve the next set of results. If there are more results\n available than can be returned in a single response, this token will be present. Use\n this token in a subsequent request to retrieve the next page of results. If there are no\n more results, this value will be null.\n

" + "smithy.api#documentation": "

A pagination token used to retrieve the next set of results. If there are more results\n available than can be returned in a single response, this token will be present. Use\n this token in a subsequent request to retrieve the next page of results. If there are no\n more results, this value will be null.

" } } }, @@ -8300,7 +8323,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing engagement resource associations in AWS Partner Central" }, - "smithy.api#documentation": "

\n Lists the associations between resources and engagements where the caller is a member\n and has at least one snapshot in the engagement. \n

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

Lists the associations between resources and engagements where the caller is a member\n and has at least one snapshot in the engagement.

", "smithy.api#http": { "method": "POST", "uri": "/ListEngagementResourceAssociations", @@ -8321,7 +8344,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog in which to search for engagement-resource associations.\n

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

Specifies the catalog in which to search for engagement-resource associations. Valid\n Values: \"AWS\" or \"Sandbox\"

\n ", "smithy.api#required": {} } }, @@ -8329,7 +8352,7 @@ "target": "com.amazonaws.partnercentralselling#PageSize", "traits": { "smithy.api#default": 100, - "smithy.api#documentation": "

\n Limits the number of results returned in a single call. Use this to control the number\n of results returned, especially useful for pagination.\n

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

Limits the number of results returned in a single call. Use this to control the number\n of results returned, especially useful for pagination.

", "smithy.api#range": { "min": 1, "max": 1000 @@ -8339,31 +8362,31 @@ "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n A token used for pagination of results. Include this token in subsequent requests to\n retrieve the next set of results.\n

" + "smithy.api#documentation": "

A token used for pagination of results. Include this token in subsequent requests to\n retrieve the next set of results.

" } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n Filters the results to include only associations related to the specified engagement.\n Use this when you want to find all resources associated with a specific engagement.\n

" + "smithy.api#documentation": "

Filters the results to include only associations related to the specified engagement.\n Use this when you want to find all resources associated with a specific\n engagement.

" } }, "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n Filters the results to include only associations with resources of the specified type.\n

" + "smithy.api#documentation": "

Filters the results to include only associations with resources of the specified\n type.

" } }, "ResourceIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n Filters the results to include only associations with the specified resource. Varies\n depending on the resource type. Use this when you want to find all engagements\n associated with a specific resource.\n

" + "smithy.api#documentation": "

Filters the results to include only associations with the specified resource. Varies\n depending on the resource type. Use this when you want to find all engagements\n associated with a specific resource.

" } }, "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

\n Filters the results to include only associations with resources owned by the specified\n AWS account. Use this when you want to find associations related to resources owned by a\n particular account.\n

" + "smithy.api#documentation": "

Filters the response to include only snapshots of resources owned by the specified\n AWS account ID. Use this when you want to find associations related to resources owned\n by a particular account.

" } } }, @@ -8377,14 +8400,14 @@ "EngagementResourceAssociationSummaries": { "target": "com.amazonaws.partnercentralselling#EngagementResourceAssociationSummaryList", "traits": { - "smithy.api#documentation": "

\n A list of engagement-resource association summaries.\n

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

A list of engagement-resource association summaries.

", "smithy.api#required": {} } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n A token to retrieve the next set of results. Use this token in a subsequent request to\n retrieve additional results if the response was truncated.\n

" + "smithy.api#documentation": "

A token to retrieve the next set of results. Use this token in a subsequent request\n to retrieve additional results if the response was truncated.

" } } }, @@ -8421,7 +8444,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing engagements in AWS Partner Central" }, - "smithy.api#documentation": "

\n This action allows users to retrieve a list of engagement records from Partner\n Central. This action can be used to manage and track various engagements across\n different stages of the partner selling process.\n

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

This action allows users to retrieve a list of Engagement records from Partner\n Central. This action can be used to manage and track various engagements across\n different stages of the partner selling process.

", "smithy.api#http": { "method": "POST", "uri": "/ListEngagements", @@ -8442,45 +8465,45 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request.\n

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

Specifies the catalog related to the request.

", "smithy.api#required": {} } }, "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccountList", "traits": { - "smithy.api#documentation": "

\n A list of AWS account IDs. When specified, the response includes engagements created\n by these accounts. This filter is useful for finding engagements created by specific\n team members.\n

" + "smithy.api#documentation": "

A list of AWS account IDs. When specified, the response includes engagements created\n by these accounts. This filter is useful for finding engagements created by specific\n team members.

" } }, "ExcludeCreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccountList", "traits": { - "smithy.api#documentation": "

\n An array of strings representing AWS Account IDs. Use this to exclude engagements\n created by specific users.\n

" + "smithy.api#documentation": "

An array of strings representing AWS Account IDs. Use this to exclude engagements\n created by specific users.

" } }, "Sort": { "target": "com.amazonaws.partnercentralselling#EngagementSort", "traits": { - "smithy.api#documentation": "

\n An object that specifies the sort order of the results.\n

" + "smithy.api#documentation": "

\n An object that specifies the sort order of the results.\n

" } }, "MaxResults": { "target": "com.amazonaws.partnercentralselling#EngagementPageSize", "traits": { "smithy.api#default": 20, - "smithy.api#documentation": "

\n The maximum number of results to return in a single call.\n

" + "smithy.api#documentation": "

The maximum number of results to return in a single call.

" } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results. This value is returned from a previous\n call.\n

" + "smithy.api#documentation": "

The token for the next set of results. This value is returned from a previous\n call.

" } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifiers", "traits": { - "smithy.api#documentation": "

\n An array of strings representing engagement identifiers to retrieve.\n

" + "smithy.api#documentation": "

An array of strings representing engagement identifiers to retrieve.

" } } }, @@ -8494,14 +8517,14 @@ "EngagementSummaryList": { "target": "com.amazonaws.partnercentralselling#EngagementSummaryList", "traits": { - "smithy.api#documentation": "

\n An array of engagement summary objects.\n

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

An array of engagement summary objects.

", "smithy.api#required": {} } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token to retrieve the next set of results. This field will be null if there are no\n more results.\n

" + "smithy.api#documentation": "

The token to retrieve the next set of results. This field will be null if there are no\n more results.

" } } }, @@ -8564,6 +8587,10 @@ "failure": { "errorId": "com.amazonaws.partnercentralselling#ValidationException" } + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "vendorParams": { + "region": "us-east-1" } } ] @@ -8677,6 +8704,9 @@ { "target": "com.amazonaws.partnercentralselling#AccessDeniedException" }, + { + "target": "com.amazonaws.partnercentralselling#ResourceNotFoundException" + }, { "target": "com.amazonaws.partnercentralselling#ThrottlingException" }, @@ -8691,7 +8721,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing resource snapshot jobs in AWS Partner Central" }, - "smithy.api#documentation": "

\n Lists resource snapshot jobs owned by the customer. This operation supports various\n filtering scenarios, including listing all jobs owned by the caller, jobs for a specific\n engagement, jobs with a specific status, or any combination of these filters.\n

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

Lists resource snapshot jobs owned by the customer. This operation supports various\n filtering scenarios, including listing all jobs owned by the caller, jobs for a specific\n engagement, jobs with a specific status, or any combination of these filters.

", "smithy.api#http": { "method": "POST", "uri": "/ListResourceSnapshotJobs", @@ -8712,7 +8742,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request.\n

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

Specifies the catalog related to the request.

", "smithy.api#required": {} } }, @@ -8720,7 +8750,7 @@ "target": "com.amazonaws.partnercentralselling#PageSize", "traits": { "smithy.api#default": 100, - "smithy.api#documentation": "

\n The maximum number of results to return in a single call. If omitted, defaults to\n 50.\n

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

The maximum number of results to return in a single call. If omitted, defaults to 50.\n

", "smithy.api#range": { "min": 1, "max": 1000 @@ -8730,25 +8760,25 @@ "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results.\n

" + "smithy.api#documentation": "

The token for the next set of results.

" } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the engagement to filter the response.\n

" + "smithy.api#documentation": "

The identifier of the engagement to filter the response.

" } }, "Status": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobStatus", "traits": { - "smithy.api#documentation": "

\n The status of the jobs to filter the response.\n

" + "smithy.api#documentation": "

The status of the jobs to filter the response.

" } }, "Sort": { "target": "com.amazonaws.partnercentralselling#SortObject", "traits": { - "smithy.api#documentation": "

\n Configures the sorting of the response. If omitted, results are sorted by CreatedDate\n in descending order.\n

" + "smithy.api#documentation": "

Configures the sorting of the response. If omitted, results are sorted by\n CreatedDate in descending order.

" } } }, @@ -8762,14 +8792,14 @@ "ResourceSnapshotJobSummaries": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobSummaryList", "traits": { - "smithy.api#documentation": "

\n An array of resource snapshot job summary objects.\n

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

An array of resource snapshot job summary objects.

", "smithy.api#required": {} } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token to retrieve the next set of results. If there are no additional results,\n this value is null. \n

" + "smithy.api#documentation": "

The token to retrieve the next set of results. If there are no additional results,\n this value is null.

" } } }, @@ -8806,7 +8836,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to listing resource snapshots in AWS Partner Central" }, - "smithy.api#documentation": "

\n Retrieves a list of resource view snapshots based on specified criteria. \n

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

Retrieves a list of resource view snapshots based on specified criteria. This\n operation supports various use cases, including:

\n ", "smithy.api#http": { "method": "POST", "uri": "/ListResourceSnapshots", @@ -8827,7 +8857,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request.\n

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

Specifies the catalog related to the request.

", "smithy.api#required": {} } }, @@ -8835,7 +8865,7 @@ "target": "com.amazonaws.partnercentralselling#PageSize", "traits": { "smithy.api#default": 100, - "smithy.api#documentation": "

\n The maximum number of results to return in a single call.\n

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

The maximum number of results to return in a single call.

", "smithy.api#range": { "min": 1, "max": 1000 @@ -8845,38 +8875,38 @@ "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token for the next set of results.\n

" + "smithy.api#documentation": "

The token for the next set of results.

" } }, "EngagementIdentifier": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier of the engagement associated with the snapshots.\n

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

The unique identifier of the engagement associated with the snapshots.

", "smithy.api#required": {} } }, "ResourceType": { "target": "com.amazonaws.partnercentralselling#ResourceType", "traits": { - "smithy.api#documentation": "

\n Filters the response to include only snapshots of the specified resource type.\n

" + "smithy.api#documentation": "

Filters the response to include only snapshots of the specified resource type.\n

" } }, "ResourceIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

\n Filters the response to include only snapshots of the specified resource.\n

" + "smithy.api#documentation": "

Filters the response to include only snapshots of the specified resource.

" } }, "ResourceSnapshotTemplateIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceTemplateName", "traits": { - "smithy.api#documentation": "

\n Filters the response to include only snapshots created using the specified\n template.\n

" + "smithy.api#documentation": "

Filters the response to include only snapshots created using the specified\n template.

" } }, "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

\n Filters the response to include only snapshots of resources created by the specified AWS\n account.\n

" + "smithy.api#documentation": "

Filters the response to include only snapshots of resources owned by the specified\n AWS account.

" } } }, @@ -8890,14 +8920,14 @@ "ResourceSnapshotSummaries": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotSummaryList", "traits": { - "smithy.api#documentation": "

\n An array of resource snapshot summary objects.\n

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

An array of resource snapshot summary objects.

", "smithy.api#required": {} } }, "NextToken": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n The token to retrieve the next set of results. If there are no additional results,\n this value is null. \n

" + "smithy.api#documentation": "

The token to retrieve the next set of results. If there are no additional results,\n this value is null.

" } } }, @@ -9030,26 +9060,91 @@ "smithy.api#output": {} } }, + "com.amazonaws.partnercentralselling#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.partnercentralselling#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.partnercentralselling#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.partnercentralselling#AccessDeniedException" + }, + { + "target": "com.amazonaws.partnercentralselling#InternalServerException" + }, + { + "target": "com.amazonaws.partnercentralselling#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.partnercentralselling#ThrottlingException" + }, + { + "target": "com.amazonaws.partnercentralselling#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of tags for a resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/ListTagsForResource", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.partnercentralselling#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.partnercentralselling#TaggableResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource for which you want to retrieve\n tags.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.partnercentralselling#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "Tags": { + "target": "com.amazonaws.partnercentralselling#TagList", + "traits": { + "smithy.api#documentation": "

A map of the key-value pairs for the tag or tags assigned to the specified resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.partnercentralselling#ListTasksSortBase": { "type": "structure", "members": { "SortOrder": { "target": "com.amazonaws.partnercentralselling#SortOrder", "traits": { - "smithy.api#documentation": "

\n Determines the order in which the sorted results are presented.\n

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

Determines the order in which the sorted results are presented.

", "smithy.api#required": {} } }, "SortBy": { "target": "com.amazonaws.partnercentralselling#ListTasksSortName", "traits": { - "smithy.api#documentation": "

\n Specifies the field by which the task list should be sorted.\n

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

Specifies the field by which the task list should be sorted.

", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "

\n Defines the sorting parameters for listing tasks. This structure allows for specifying\n the field to sort by and the order of sorting.\n

" + "smithy.api#documentation": "

Defines the sorting parameters for listing tasks. This structure allows for\n specifying the field to sort by and the order of sorting.

" } }, "com.amazonaws.partnercentralselling#ListTasksSortName": { @@ -9443,7 +9538,7 @@ "Arn": { "target": "com.amazonaws.partnercentralselling#OpportunityArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) for the opportunity. This globally unique identifier\n can be used for IAM policies and cross-service references. \n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the opportunity. This globally unique identifier\n can be used for IAM policies and cross-service references.

" } }, "PartnerOpportunityIdentifier": { @@ -9499,25 +9594,25 @@ "OpportunityType": { "target": "com.amazonaws.partnercentralselling#OpportunityType", "traits": { - "smithy.api#documentation": "

\n Specifies the opportunity type.\n

" + "smithy.api#documentation": "

Specifies the opportunity type.

" } }, "Lifecycle": { "target": "com.amazonaws.partnercentralselling#LifeCycleForView", "traits": { - "smithy.api#documentation": "

\n Contains information about the opportunity's lifecycle, including its current stage,\n status, and important dates such as creation and last modification times.\n

" + "smithy.api#documentation": "

Contains information about the opportunity's lifecycle, including its current stage,\n status, and important dates such as creation and last modification times.

" } }, "OpportunityTeam": { "target": "com.amazonaws.partnercentralselling#PartnerOpportunityTeamMembersList", "traits": { - "smithy.api#documentation": "

\n Represents the internal team handling the opportunity. Specify the members involved in\n collaborating on an opportunity within the partner's organization. \n

" + "smithy.api#documentation": "

Represents the internal team handling the opportunity. Specify the members involved\n in collaborating on an opportunity within the partner's organization.

" } }, "PrimaryNeedsFromAws": { "target": "com.amazonaws.partnercentralselling#PrimaryNeedsFromAws", "traits": { - "smithy.api#documentation": "

\n Identifies the type of support the partner needs from AWS.\n

" + "smithy.api#documentation": "

Identifies the type of support the partner needs from AWS.

" } }, "Customer": { @@ -9526,7 +9621,7 @@ "Project": { "target": "com.amazonaws.partnercentralselling#ProjectView", "traits": { - "smithy.api#documentation": "

\n Contains summary information about the project associated with the opportunity,\n including project name, description, timeline, and other relevant details.\n

" + "smithy.api#documentation": "

Contains summary information about the project associated with the opportunity,\n including project name, description, timeline, and other relevant details.

" } }, "RelatedEntityIdentifiers": { @@ -9534,7 +9629,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Provides a comprehensive view of an opportunity summary, including lifecycle\n information, team details, opportunity type, primary needs from AWS, and associated\n project information.\n

" + "smithy.api#documentation": "

Provides a comprehensive view of an opportunity summary, including lifecycle\n information, team details, opportunity type, primary needs from AWS, and associated\n project information.

" } }, "com.amazonaws.partnercentralselling#OpportunityType": { @@ -9888,31 +9983,31 @@ "DeliveryModels": { "target": "com.amazonaws.partnercentralselling#DeliveryModels", "traits": { - "smithy.api#documentation": "

\n Describes the deployment or consumption model for the partner solution or offering.\n This field indicates how the project's solution will be delivered or implemented for the\n customer.\n

" + "smithy.api#documentation": "

Describes the deployment or consumption model for the partner solution or offering.\n This field indicates how the project's solution will be delivered or implemented for the\n customer.

" } }, "ExpectedCustomerSpend": { "target": "com.amazonaws.partnercentralselling#ExpectedCustomerSpendList", "traits": { - "smithy.api#documentation": "

\n Provides information about the anticipated customer spend related to this project.\n This may include details such as amount, frequency, and currency of expected\n expenditure.\n

" + "smithy.api#documentation": "

Provides information about the anticipated customer spend related to this project.\n This may include details such as amount, frequency, and currency of expected\n expenditure.

" } }, "CustomerUseCase": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

\n Specifies the proposed solution focus or type of workload for the project.\n

" + "smithy.api#documentation": "

Specifies the proposed solution focus or type of workload for the project.

" } }, "SalesActivities": { "target": "com.amazonaws.partnercentralselling#SalesActivities", "traits": { - "smithy.api#documentation": "

\n Lists the pre-sales activities that have occurred with the end-customer related to the\n opportunity. This field is conditionally mandatory when the project is qualified for\n Co-Sell and helps drive assignment priority on the AWS side. It provides insight into\n the engagement level with the customer. \n

" + "smithy.api#documentation": "

Lists the pre-sales activities that have occurred with the end-customer related to\n the opportunity. This field is conditionally mandatory when the project is qualified for\n Co-Sell and helps drive assignment priority on the AWS side. It provides insight into\n the engagement level with the customer.

" } }, "OtherSolutionDescription": { "target": "com.amazonaws.partnercentralselling#PiiString", "traits": { - "smithy.api#documentation": "

\n Offers a description of other solutions if the standard solutions do not adequately\n cover the project's scope.\n

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

Offers a description of other solutions if the standard solutions do not adequately\n cover the project's scope.

", "smithy.api#length": { "max": 255 } @@ -9920,7 +10015,7 @@ } }, "traits": { - "smithy.api#documentation": "

\n Provides the project view of an opportunity resource shared through a snapshot.\n

" + "smithy.api#documentation": "

Provides the project view of an opportunity resource shared through a snapshot.\n

" } }, "com.amazonaws.partnercentralselling#PutSellingSystemSettings": { @@ -9949,7 +10044,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to put system settings settings in AWS Partner Central" }, - "smithy.api#documentation": "

Updates the currently set system settings, which include the IAM Role used for resource snapshot jobs.

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

Updates the currently set system settings, which include the IAM Role used for\n resource snapshot jobs.

", "smithy.api#http": { "method": "POST", "uri": "/PutSellingSystemSettings", @@ -9964,7 +10059,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

Specifies the catalog in which the settings will be updated. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

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

Specifies the catalog in which the settings will be updated. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

", "smithy.api#required": {} } }, @@ -9985,7 +10080,7 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

Specifies the catalog in which the settings are defined. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

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

Specifies the catalog in which the settings are defined. Acceptable values include\n AWS for production and Sandbox for testing\n environments.

", "smithy.api#required": {} } }, @@ -10069,6 +10164,12 @@ "smithy.api#enumValue": "EngagementInvitationConflict" } }, + "INTERNAL_ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "InternalError" + } + }, "OPPORTUNITY_VALIDATION_FAILED": { "target": "smithy.api#Unit", "traits": { @@ -10099,12 +10200,6 @@ "smithy.api#enumValue": "ResourceSnapshotConflict" } }, - "INTERNAL_ERROR": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "InternalError" - } - }, "SERVICE_QUOTA_EXCEEDED": { "target": "smithy.api#Unit", "traits": { @@ -10210,6 +10305,9 @@ { "target": "com.amazonaws.partnercentralselling#AccessDeniedException" }, + { + "target": "com.amazonaws.partnercentralselling#ConflictException" + }, { "target": "com.amazonaws.partnercentralselling#InternalServerException" }, @@ -10471,30 +10569,30 @@ "Id": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier for the resource snapshot job within the AWS Partner Central\n system. This ID is used for direct references to the job within the service.\n

" + "smithy.api#documentation": "

The unique identifier for the resource snapshot job within the AWS Partner Central\n system. This ID is used for direct references to the job within the service.

" } }, "Arn": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) for the resource snapshot job.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the resource snapshot job.

" } }, "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The unique identifier for the engagement within the AWS Partner Central\n system. This ID is used for direct references to the engagement within the service.\n

" + "smithy.api#documentation": "

The unique identifier of the Engagement.

" } }, "Status": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobStatus", "traits": { - "smithy.api#documentation": "

\n Represents the current status of the resource snapshot job.\n

" + "smithy.api#documentation": "

The current status of the snapshot job.

\n

Valid values:

\n " } } }, "traits": { - "smithy.api#documentation": "

\n An object that contains a Resource Snapshot Job's subset of fields.\n

" + "smithy.api#documentation": "

An object that contains a Resource Snapshot Job's subset of fields.\n

" } }, "com.amazonaws.partnercentralselling#ResourceSnapshotJobSummaryList": { @@ -10509,12 +10607,12 @@ "OpportunitySummary": { "target": "com.amazonaws.partnercentralselling#OpportunitySummaryView", "traits": { - "smithy.api#documentation": "

\n An object that contains an opportunity's subset of fields. \n

" + "smithy.api#documentation": "

An object that contains an opportunity's subset of fields.

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

\n Represents the payload of a resource snapshot. This structure is designed to\n accommodate different types of resource snapshots, currently supporting opportunity\n summaries.\n

" + "smithy.api#documentation": "

Represents the payload of a resource snapshot. This structure is designed to\n accommodate different types of resource snapshots, currently supporting opportunity\n summaries.

" } }, "com.amazonaws.partnercentralselling#ResourceSnapshotRevision": { @@ -10531,13 +10629,13 @@ "Arn": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotArn", "traits": { - "smithy.api#documentation": "

\n The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be\n used for cross-service references and in IAM policies.\n

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can\n be used for cross-service references and in IAM policies.

" } }, "Revision": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotRevision", "traits": { - "smithy.api#documentation": "

\n The revision number of the snapshot. This integer value is incremented each time the\n snapshot is updated, allowing for version tracking of the resource snapshot.\n

" + "smithy.api#documentation": "

The revision number of the snapshot. This integer value is incremented each time the\n snapshot is updated, allowing for version tracking of the resource snapshot.

" } }, "ResourceType": { @@ -10549,7 +10647,7 @@ "ResourceId": { "target": "com.amazonaws.partnercentralselling#ResourceIdentifier", "traits": { - "smithy.api#documentation": "

The identifier of the specific resource snapshotted. The format might vary depending\n on the ResourceType.

" + "smithy.api#documentation": "

The identifier of the specific resource snapshotted. The format might vary depending\n on the ResourceType.

" } }, "ResourceSnapshotTemplateName": { @@ -10561,12 +10659,12 @@ "CreatedBy": { "target": "com.amazonaws.partnercentralselling#AwsAccount", "traits": { - "smithy.api#documentation": "

The AWS account ID of the principal (user or role) who created the snapshot. This\n helps in tracking the origin of the snapshot.

" + "smithy.api#documentation": "

The AWS account ID of the entity that owns the resource from which the snapshot was\n created.

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

\n Provides a concise summary of a resource snapshot, including its unique identifier and\n version information. This structure is used to quickly reference and identify specific\n versions of resource snapshots. \n

" + "smithy.api#documentation": "

Provides a concise summary of a resource snapshot, including its unique identifier\n and version information. This structure is used to quickly reference and identify\n specific versions of resource snapshots.

" } }, "com.amazonaws.partnercentralselling#ResourceSnapshotSummaryList": { @@ -10913,7 +11011,7 @@ "Arn": { "target": "com.amazonaws.partnercentralselling#SolutionArn", "traits": { - "smithy.api#documentation": "

\n The SolutionBase structure provides essential information about a solution.\n

" + "smithy.api#documentation": "

The SolutionBase structure provides essential information about a solution.

" } }, "Name": { @@ -11064,18 +11162,18 @@ "SortBy": { "target": "com.amazonaws.partnercentralselling#SortBy", "traits": { - "smithy.api#documentation": "

\n Specifies the field by which to sort the resource snapshot jobs.\n

" + "smithy.api#documentation": "

Specifies the field by which to sort the resource snapshot jobs.

" } }, "SortOrder": { "target": "com.amazonaws.partnercentralselling#SortOrder", "traits": { - "smithy.api#documentation": "

\n Determines the order in which the sorted results are presented.\n

" + "smithy.api#documentation": "

Determines the order in which the sorted results are presented.

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

\n Defines the sorting parameters for listing resource snapshot jobs. This structure\n allows you to specify the field to sort by and the order of sorting. \n

" + "smithy.api#documentation": "

Defines the sorting parameters for listing resource snapshot jobs. This structure\n allows you to specify the field to sort by and the order of sorting.

" } }, "com.amazonaws.partnercentralselling#SortOrder": { @@ -11223,6 +11321,12 @@ "smithy.api#documentation": "

Specifies the unique identifier of the EngagementInvitation to be\n accepted. Providing the correct identifier helps ensure that the correct engagement is\n processed.

", "smithy.api#required": {} } + }, + "Tags": { + "target": "com.amazonaws.partnercentralselling#TagList", + "traits": { + "smithy.api#documentation": "A list of objects specifying each tag name and value." + } } }, "traits": { @@ -11277,7 +11381,7 @@ "ResourceSnapshotJobId": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the resource snapshot job created as part of this task.\n

" + "smithy.api#documentation": "

The identifier of the Resource Snapshot Job created as part of this task.

" } }, "EngagementInvitationId": { @@ -11378,6 +11482,12 @@ "traits": { "smithy.api#required": {} } + }, + "Tags": { + "target": "com.amazonaws.partnercentralselling#TagList", + "traits": { + "smithy.api#documentation": "A list of objects specifying each tag name and value." + } } }, "traits": { @@ -11432,19 +11542,19 @@ "ResourceSnapshotJobId": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the resource snapshot job created to add the opportunity resource\n snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.\n

" + "smithy.api#documentation": "

The identifier of the resource snapshot job created to add the opportunity resource\n snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

" } }, "EngagementId": { "target": "com.amazonaws.partnercentralselling#EngagementIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the newly created engagement. Only populated if TaskStatus is\n COMPLETE.\n

" + "smithy.api#documentation": "

The identifier of the newly created Engagement. Only populated if TaskStatus is\n COMPLETE.

" } }, "EngagementInvitationId": { "target": "com.amazonaws.partnercentralselling#EngagementInvitationIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the new engagement invitation. Only populated if TaskStatus is\n COMPLETE.\n

" + "smithy.api#documentation": "

The identifier of the new Engagement invitation. Only populated if TaskStatus is\n COMPLETE.

" } } }, @@ -11478,7 +11588,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to starting resource snapshot jobs in AWS Partner Central" }, - "smithy.api#documentation": "

\n Starts a resource snapshot job that has been previously created.\n

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

Starts a resource snapshot job that has been previously created.

", "smithy.api#http": { "method": "POST", "uri": "/StartResourceSnapshotJob", @@ -11493,14 +11603,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request.\n

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

Specifies the catalog related to the request. Valid values are:

\n ", "smithy.api#required": {} } }, "ResourceSnapshotJobIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the resource snapshot job to start.\n

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

The identifier of the resource snapshot job to start.

", "smithy.api#required": {}, "smithy.api#resourceIdentifier": "Identifier" } @@ -11536,7 +11646,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to stopping resource snapshot jobs in AWS Partner Central" }, - "smithy.api#documentation": "

\n Stops a resource snapshot job. The job must be started prior to being stopped.\n

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

Stops a resource snapshot job. The job must be started prior to being stopped.

", "smithy.api#http": { "method": "POST", "uri": "/StopResourceSnapshotJob", @@ -11551,14 +11661,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request. \n

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

Specifies the catalog related to the request. Valid values are:

\n ", "smithy.api#required": {} } }, "ResourceSnapshotJobIdentifier": { "target": "com.amazonaws.partnercentralselling#ResourceSnapshotJobIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the job to stop.\n

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

The identifier of the job to stop.

", "smithy.api#required": {}, "smithy.api#resourceIdentifier": "Identifier" } @@ -11606,7 +11716,7 @@ "aws.iam#iamAction": { "documentation": "Grants permission to submit Opportunities on AWS Partner Central" }, - "smithy.api#documentation": "

\n Use this action to submit an opportunity that was previously created by partner for\n AWS review. After you perform this action, the opportunity becomes non-editable until it\n is reviewed by AWS and has LifeCycle.ReviewStatus as either\n Approved or Action Required. \n

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

Use this action to submit an Opportunity that was previously created by partner for\n AWS review. After you perform this action, the Opportunity becomes non-editable until it\n is reviewed by AWS and has LifeCycle.ReviewStatus as either\n Approved or Action Required.

", "smithy.api#http": { "method": "POST", "uri": "/SubmitOpportunity", @@ -11620,14 +11730,14 @@ "Catalog": { "target": "com.amazonaws.partnercentralselling#CatalogIdentifier", "traits": { - "smithy.api#documentation": "

\n Specifies the catalog related to the request. \n

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

Specifies the catalog related to the request. Valid values are:

\n ", "smithy.api#required": {} } }, "Identifier": { "target": "com.amazonaws.partnercentralselling#OpportunityIdentifier", "traits": { - "smithy.api#documentation": "

\n The identifier of the opportunity previously created by partner and needs to be\n submitted.\n

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

The identifier of the Opportunity previously created by partner and needs to be\n submitted.

", "smithy.api#required": {}, "smithy.api#resourceIdentifier": "Identifier" } @@ -11635,14 +11745,133 @@ "InvolvementType": { "target": "com.amazonaws.partnercentralselling#SalesInvolvementType", "traits": { - "smithy.api#documentation": "

\n Specifies the level of AWS sellers' involvement on the opportunity. \n

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

Specifies the level of AWS sellers' involvement on the opportunity. Valid\n values:

\n ", "smithy.api#required": {} } }, "Visibility": { "target": "com.amazonaws.partnercentralselling#Visibility", "traits": { - "smithy.api#documentation": "

\n Determines whether to restrict visibility of the opportunity from AWS sales. Default\n value is Full. \n

" + "smithy.api#documentation": "

Determines whether to restrict visibility of the opportunity from AWS sales. Default\n value is Full. Valid values:

\n " + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.partnercentralselling#Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.partnercentralselling#TagKey", + "traits": { + "smithy.api#documentation": "

The key in the tag.

", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.partnercentralselling#TagValue", + "traits": { + "smithy.api#documentation": "

The value in the tag.

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

The key-value pair assigned to a specified resource.

" + } + }, + "com.amazonaws.partnercentralselling#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.partnercentralselling#TagKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.partnercentralselling#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.partnercentralselling#TagList": { + "type": "list", + "member": { + "target": "com.amazonaws.partnercentralselling#Tag" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 200 + } + } + }, + "com.amazonaws.partnercentralselling#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.partnercentralselling#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.partnercentralselling#TagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.partnercentralselling#AccessDeniedException" + }, + { + "target": "com.amazonaws.partnercentralselling#ConflictException" + }, + { + "target": "com.amazonaws.partnercentralselling#InternalServerException" + }, + { + "target": "com.amazonaws.partnercentralselling#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.partnercentralselling#ThrottlingException" + }, + { + "target": "com.amazonaws.partnercentralselling#ValidationException" + } + ], + "traits": { + "aws.iam#iamAction": { + "documentation": "Allows users to add new tags to a resource. Supported resource: ResourceSnapshotJob" + }, + "smithy.api#documentation": "

Assigns one or more tags (key-value pairs) to the specified resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/TagResource", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.partnercentralselling#TagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.partnercentralselling#TaggableResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource that you want to tag.

", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.partnercentralselling#TagList", + "traits": { + "smithy.api#documentation": "

A map of the key-value pairs of the tag or tags to assign to the resource.

", + "smithy.api#required": {} } } }, @@ -11650,6 +11879,32 @@ "smithy.api#input": {} } }, + "com.amazonaws.partnercentralselling#TagResourceResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.partnercentralselling#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "max": 256 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.partnercentralselling#TaggableResourceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1000 + }, + "smithy.api#pattern": "^arn:[\\w+=/,.@-]+:partnercentral:[\\w+=/,.@-]*:[0-9]{12}:catalog/([a-zA-Z]+)/[\\w+=,.@-]+(/[\\w+=,.@-]+)*$" + } + }, "com.amazonaws.partnercentralselling#TaskArn": { "type": "string", "traits": { @@ -11728,6 +11983,73 @@ "smithy.api#httpError": 429 } }, + "com.amazonaws.partnercentralselling#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.partnercentralselling#UntagResourceRequest" + }, + "output": { + "target": "com.amazonaws.partnercentralselling#UntagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.partnercentralselling#AccessDeniedException" + }, + { + "target": "com.amazonaws.partnercentralselling#ConflictException" + }, + { + "target": "com.amazonaws.partnercentralselling#InternalServerException" + }, + { + "target": "com.amazonaws.partnercentralselling#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.partnercentralselling#ThrottlingException" + }, + { + "target": "com.amazonaws.partnercentralselling#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "

Removes a tag or tags from a resource.

", + "smithy.api#http": { + "method": "POST", + "uri": "/UntagResource", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.partnercentralselling#UntagResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.partnercentralselling#TaggableResourceArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the resource that you want to untag.

", + "smithy.api#required": {} + } + }, + "TagKeys": { + "target": "com.amazonaws.partnercentralselling#TagKeyList", + "traits": { + "smithy.api#documentation": "

The keys of the key-value pairs for the tag or tags you want to remove from the\n specified resource.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.partnercentralselling#UntagResourceResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.partnercentralselling#UpdateOpportunity": { "type": "operation", "input": { @@ -11784,7 +12106,7 @@ "PrimaryNeedsFromAws": { "target": "com.amazonaws.partnercentralselling#PrimaryNeedsFromAws", "traits": { - "smithy.api#documentation": "

Identifies the type of support the partner needs from Amazon Web Services.

\n

Valid values:

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

Identifies the type of support the partner needs from Amazon Web Services.

\n

Valid values:

\n " } }, "NationalSecurity": { diff --git a/aws-models/s3.json b/aws-models/s3.json index 611979516c70..faff31ddabb6 100644 --- a/aws-models/s3.json +++ b/aws-models/s3.json @@ -60,7 +60,7 @@ } ], "traits": { - "smithy.api#documentation": "

This operation aborts a multipart upload. After a multipart upload is aborted, no\n additional parts can be uploaded using that upload ID. The storage consumed by any\n previously uploaded parts will be freed. However, if any part uploads are currently in\n progress, those part uploads might or might not succeed. As a result, it might be necessary\n to abort a given multipart upload multiple times in order to completely free all storage\n consumed by all parts.

\n

To verify that all parts have been removed and prevent getting charged for the part\n storage, you should call the ListParts API operation and ensure\n that the parts list is empty.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to AbortMultipartUpload:

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

This operation aborts a multipart upload. After a multipart upload is aborted, no\n additional parts can be uploaded using that upload ID. The storage consumed by any\n previously uploaded parts will be freed. However, if any part uploads are currently in\n progress, those part uploads might or might not succeed. As a result, it might be necessary\n to abort a given multipart upload multiple times in order to completely free all storage\n consumed by all parts.

\n

To verify that all parts have been removed and prevent getting charged for the part\n storage, you should call the ListParts API operation and ensure\n that the parts list is empty.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to AbortMultipartUpload:

\n ", "smithy.api#examples": [ { "title": "To abort a multipart upload", @@ -19163,25 +19163,37 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present\n if the object was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a\n checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type that is used to calculate the object’s\n checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } } }, @@ -19215,6 +19227,12 @@ "traits": { "smithy.api#enumValue": "SHA256" } + }, + "CRC64NVME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CRC64NVME" + } } } }, @@ -19230,6 +19248,9 @@ "com.amazonaws.s3#ChecksumCRC32C": { "type": "string" }, + "com.amazonaws.s3#ChecksumCRC64NVME": { + "type": "string" + }, "com.amazonaws.s3#ChecksumMode": { "type": "enum", "members": { @@ -19247,6 +19268,23 @@ "com.amazonaws.s3#ChecksumSHA256": { "type": "string" }, + "com.amazonaws.s3#ChecksumType": { + "type": "enum", + "members": { + "COMPOSITE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPOSITE" + } + }, + "FULL_OBJECT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FULL_OBJECT" + } + } + } + }, "com.amazonaws.s3#Code": { "type": "string" }, @@ -19282,7 +19320,7 @@ "target": "com.amazonaws.s3#CompleteMultipartUploadOutput" }, "traits": { - "smithy.api#documentation": "

Completes a multipart upload by assembling previously uploaded parts.

\n

You first initiate the multipart upload and then upload all parts using the UploadPart\n operation or the UploadPartCopy operation.\n After successfully uploading all relevant parts of an upload, you call this\n CompleteMultipartUpload operation to complete the upload. Upon receiving\n this request, Amazon S3 concatenates all the parts in ascending order by part number to create a\n new object. In the CompleteMultipartUpload request, you must provide the parts list and\n ensure that the parts list is complete. The CompleteMultipartUpload API operation\n concatenates the parts that you provide in the list. For each part in the list, you must\n provide the PartNumber value and the ETag value that are returned\n after that part was uploaded.

\n

The processing of a CompleteMultipartUpload request could take several minutes to\n finalize. After Amazon S3 begins processing the request, it sends an HTTP response header that\n specifies a 200 OK response. While processing is in progress, Amazon S3\n periodically sends white space characters to keep the connection from timing out. A request\n could fail after the initial 200 OK response has been sent. This means that a\n 200 OK response can contain either a success or an error. The error\n response might be embedded in the 200 OK response. If you call this API\n operation directly, make sure to design your application to parse the contents of the\n response and handle it appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition.\n The SDKs detect the embedded error and apply error handling per your configuration settings\n (including automatically retrying the request as appropriate). If the condition persists,\n the SDKs throw an exception (or, for the SDKs that don't use exceptions, they return an\n error).

\n

Note that if CompleteMultipartUpload fails, applications should be prepared\n to retry any failed requests (including 500 error responses). For more information, see\n Amazon S3 Error\n Best Practices.

\n \n

You can't use Content-Type: application/x-www-form-urlencoded for the\n CompleteMultipartUpload requests. Also, if you don't provide a Content-Type\n header, CompleteMultipartUpload can still return a 200 OK\n response.

\n
\n

For more information about multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n

    If you provide an additional checksum\n value in your MultipartUpload requests and the\n object is encrypted with Key Management Service, you must have permission to use the\n kms:Decrypt action for the\n CompleteMultipartUpload request to succeed.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Special errors
\n
\n
    \n
  • \n

    Error Code: EntityTooSmall\n

    \n
      \n
    • \n

      Description: Your proposed upload is smaller than the minimum\n allowed object size. Each part must be at least 5 MB in size, except\n the last part.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: InvalidPart\n

    \n
      \n
    • \n

      Description: One or more of the specified parts could not be found.\n The part might not have been uploaded, or the specified ETag might not\n have matched the uploaded part's ETag.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: InvalidPartOrder\n

    \n
      \n
    • \n

      Description: The list of parts was not in ascending order. The\n parts list must be specified in order by part number.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: NoSuchUpload\n

    \n
      \n
    • \n

      Description: The specified multipart upload does not exist. The\n upload ID might be invalid, or the multipart upload might have been\n aborted or completed.

      \n
    • \n
    • \n

      HTTP Status Code: 404 Not Found

      \n
    • \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CompleteMultipartUpload:

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

Completes a multipart upload by assembling previously uploaded parts.

\n

You first initiate the multipart upload and then upload all parts using the UploadPart\n operation or the UploadPartCopy operation.\n After successfully uploading all relevant parts of an upload, you call this\n CompleteMultipartUpload operation to complete the upload. Upon receiving\n this request, Amazon S3 concatenates all the parts in ascending order by part number to create a\n new object. In the CompleteMultipartUpload request, you must provide the parts list and\n ensure that the parts list is complete. The CompleteMultipartUpload API operation\n concatenates the parts that you provide in the list. For each part in the list, you must\n provide the PartNumber value and the ETag value that are returned\n after that part was uploaded.

\n

The processing of a CompleteMultipartUpload request could take several minutes to\n finalize. After Amazon S3 begins processing the request, it sends an HTTP response header that\n specifies a 200 OK response. While processing is in progress, Amazon S3\n periodically sends white space characters to keep the connection from timing out. A request\n could fail after the initial 200 OK response has been sent. This means that a\n 200 OK response can contain either a success or an error. The error\n response might be embedded in the 200 OK response. If you call this API\n operation directly, make sure to design your application to parse the contents of the\n response and handle it appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition.\n The SDKs detect the embedded error and apply error handling per your configuration settings\n (including automatically retrying the request as appropriate). If the condition persists,\n the SDKs throw an exception (or, for the SDKs that don't use exceptions, they return an\n error).

\n

Note that if CompleteMultipartUpload fails, applications should be prepared\n to retry any failed requests (including 500 error responses). For more information, see\n Amazon S3 Error\n Best Practices.

\n \n

You can't use Content-Type: application/x-www-form-urlencoded for the\n CompleteMultipartUpload requests. Also, if you don't provide a Content-Type\n header, CompleteMultipartUpload can still return a 200 OK\n response.

\n
\n

For more information about multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n

    If you provide an additional checksum\n value in your MultipartUpload requests and the\n object is encrypted with Key Management Service, you must have permission to use the\n kms:Decrypt action for the\n CompleteMultipartUpload request to succeed.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Special errors
\n
\n
    \n
  • \n

    Error Code: EntityTooSmall\n

    \n
      \n
    • \n

      Description: Your proposed upload is smaller than the minimum\n allowed object size. Each part must be at least 5 MB in size, except\n the last part.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: InvalidPart\n

    \n
      \n
    • \n

      Description: One or more of the specified parts could not be found.\n The part might not have been uploaded, or the specified ETag might not\n have matched the uploaded part's ETag.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: InvalidPartOrder\n

    \n
      \n
    • \n

      Description: The list of parts was not in ascending order. The\n parts list must be specified in order by part number.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: NoSuchUpload\n

    \n
      \n
    • \n

      Description: The specified multipart upload does not exist. The\n upload ID might be invalid, or the multipart upload might have been\n aborted or completed.

      \n
    • \n
    • \n

      HTTP Status Code: 404 Not Found

      \n
    • \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CompleteMultipartUpload:

\n ", "smithy.api#examples": [ { "title": "To complete multipart upload", @@ -19356,25 +19394,37 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This header specifies the Base64 encoded, 64-bit\n CRC-64NVME checksum of the object. The CRC-64NVME checksum is\n always a full object checksum. For more information, see Checking object integrity\n in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type, which determines how part-level checksums are combined to create an\n object-level checksum for multipart objects. You can use this header as a data integrity\n check to verify that the checksum type that is received is the same checksum type that was\n specified during the CreateMultipartUpload request. For more information, see\n Checking object integrity\n in the Amazon S3 User Guide.

" } }, "ServerSideEncryption": { @@ -19461,31 +19511,52 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This header specifies the Base64 encoded, 64-bit\n CRC-64NVME checksum of the object. The CRC-64NVME checksum is\n always a full object checksum. For more information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

This header specifies the checksum type of the object, which determines how part-level\n checksums are combined to create an object-level checksum for multipart objects. You can\n use this header as a data integrity check to verify that the checksum type that is received\n is the same checksum that was specified. If the checksum type doesn’t match the checksum\n type that was specified for the object during the CreateMultipartUpload\n request, it’ll result in a BadDigest error. For more information, see Checking\n object integrity in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-type" + } + }, + "MpuObjectSize": { + "target": "com.amazonaws.s3#MpuObjectSize", + "traits": { + "smithy.api#documentation": "

The expected total object size of the multipart upload request. If there’s a mismatch\n between the specified object size value and the actual object size value, it results in an\n HTTP 400 InvalidRequest error.

", + "smithy.api#httpHeader": "x-amz-mp-object-size" + } + }, "RequestPayer": { "target": "com.amazonaws.s3#RequestPayer", "traits": { @@ -19567,25 +19638,31 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present\n if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present\n if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "PartNumber": { @@ -19693,7 +19770,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a copy of an object that is already stored in Amazon S3.

\n \n

You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your\n object up to 5 GB in size in a single atomic action using this API. However, to copy an\n object greater than 5 GB, you must use the multipart upload Upload Part - Copy\n (UploadPartCopy) API. For more information, see Copy Object Using the\n REST Multipart Upload API.

\n
\n

You can copy individual objects between general purpose buckets, between directory buckets,\n and between general purpose buckets and directory buckets.

\n \n \n \n

Both the Region that you want to copy the object from and the Region that you want to\n copy the object to must be enabled for your account. For more information about how to\n enable a Region for your account, see Enable or disable a Region for standalone accounts in the Amazon Web Services\n Account Management Guide.

\n \n

Amazon S3 transfer acceleration does not support cross-Region copies. If you request a\n cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad\n Request error. For more information, see Transfer\n Acceleration.

\n
\n
\n
Authentication and authorization
\n
\n

All CopyObject requests must be authenticated and signed by using\n IAM credentials (access key ID and secret access key for the IAM identities).\n All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed. For more information, see\n REST Authentication.

\n

\n Directory buckets - You must use the\n IAM credentials to authenticate and authorize your access to the\n CopyObject API operation, instead of using the temporary security\n credentials through the CreateSession API operation.

\n

Amazon Web Services CLI or SDKs handles authentication and authorization on your\n behalf.

\n
\n
Permissions
\n
\n

You must have read access to the source object and\n write access to the destination bucket.

\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have permissions in an IAM policy based on the source and destination\n bucket types in a CopyObject operation.

    \n
      \n
    • \n

      If the source object is in a general purpose bucket, you must have\n \n s3:GetObject\n \n permission to read the source object that is being copied.

      \n
    • \n
    • \n

      If the destination bucket is a general purpose bucket, you must have\n \n s3:PutObject\n \n permission to write the object copy to the destination bucket.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have permissions in a bucket policy or an IAM identity-based policy based on the\n source and destination bucket types in a CopyObject\n operation.

    \n
      \n
    • \n

      If the source object that you want to copy is in a\n directory bucket, you must have the \n s3express:CreateSession\n permission in\n the Action element of a policy to read the object. By\n default, the session is in the ReadWrite mode. If you\n want to restrict the access, you can explicitly set the\n s3express:SessionMode condition key to\n ReadOnly on the copy source bucket.

      \n
    • \n
    • \n

      If the copy destination is a directory bucket, you must have the\n \n s3express:CreateSession\n permission in the\n Action element of a policy to write the object to the\n destination. The s3express:SessionMode condition key\n can't be set to ReadOnly on the copy destination bucket.\n

      \n
    • \n
    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n

    For example policies, see Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based policies for\n S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Response and special errors
\n
\n

When the request is an HTTP 1.1 request, the response is chunk encoded. When\n the request is not an HTTP 1.1 request, the response would not contain the\n Content-Length. You always need to read the entire response body\n to check if the copy succeeds.

\n
    \n
  • \n

    If the copy is successful, you receive a response with information about\n the copied object.

    \n
  • \n
  • \n

    A copy request might return an error when Amazon S3 receives the copy request\n or while Amazon S3 is copying the files. A 200 OK response can\n contain either a success or an error.

    \n
      \n
    • \n

      If the error occurs before the copy action starts, you receive a\n standard Amazon S3 error.

      \n
    • \n
    • \n

      If the error occurs during the copy operation, the error response\n is embedded in the 200 OK response. For example, in a\n cross-region copy, you may encounter throttling and receive a\n 200 OK response. For more information, see Resolve the Error 200 response when copying objects to\n Amazon S3. The 200 OK status code means the copy\n was accepted, but it doesn't mean the copy is complete. Another\n example is when you disconnect from Amazon S3 before the copy is complete,\n Amazon S3 might cancel the copy and you may receive a 200 OK\n response. You must stay connected to Amazon S3 until the entire response is\n successfully received and processed.

      \n

      If you call this API operation directly, make sure to design your\n application to parse the content of the response and handle it\n appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition. The\n SDKs detect the embedded error and apply error handling per your\n configuration settings (including automatically retrying the request\n as appropriate). If the condition persists, the SDKs throw an\n exception (or, for the SDKs that don't use exceptions, they return an\n error).

      \n
    • \n
    \n
  • \n
\n
\n
Charge
\n
\n

The copy request charge is based on the storage class and Region that you\n specify for the destination object. The request can also result in a data\n retrieval charge for the source if the source storage class bills for data\n retrieval. If the copy source is in a different region, the data transfer is\n billed to the copy source account. For pricing information, see Amazon S3 pricing.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CopyObject:

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

Creates a copy of an object that is already stored in Amazon S3.

\n \n

You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your\n object up to 5 GB in size in a single atomic action using this API. However, to copy an\n object greater than 5 GB, you must use the multipart upload Upload Part - Copy\n (UploadPartCopy) API. For more information, see Copy Object Using the\n REST Multipart Upload API.

\n
\n

You can copy individual objects between general purpose buckets, between directory buckets,\n and between general purpose buckets and directory buckets.

\n \n \n \n

Both the Region that you want to copy the object from and the Region that you want to\n copy the object to must be enabled for your account. For more information about how to\n enable a Region for your account, see Enable or disable a Region for standalone accounts in the Amazon Web Services\n Account Management Guide.

\n \n

Amazon S3 transfer acceleration does not support cross-Region copies. If you request a\n cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad\n Request error. For more information, see Transfer\n Acceleration.

\n
\n
\n
Authentication and authorization
\n
\n

All CopyObject requests must be authenticated and signed by using\n IAM credentials (access key ID and secret access key for the IAM identities).\n All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed. For more information, see\n REST Authentication.

\n

\n Directory buckets - You must use the\n IAM credentials to authenticate and authorize your access to the\n CopyObject API operation, instead of using the temporary security\n credentials through the CreateSession API operation.

\n

Amazon Web Services CLI or SDKs handles authentication and authorization on your\n behalf.

\n
\n
Permissions
\n
\n

You must have read access to the source object and\n write access to the destination bucket.

\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have permissions in an IAM policy based on the source and destination\n bucket types in a CopyObject operation.

    \n
      \n
    • \n

      If the source object is in a general purpose bucket, you must have\n \n s3:GetObject\n \n permission to read the source object that is being copied.

      \n
    • \n
    • \n

      If the destination bucket is a general purpose bucket, you must have\n \n s3:PutObject\n \n permission to write the object copy to the destination bucket.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have permissions in a bucket policy or an IAM identity-based policy based on the\n source and destination bucket types in a CopyObject\n operation.

    \n
      \n
    • \n

      If the source object that you want to copy is in a\n directory bucket, you must have the \n s3express:CreateSession\n permission in\n the Action element of a policy to read the object. By\n default, the session is in the ReadWrite mode. If you\n want to restrict the access, you can explicitly set the\n s3express:SessionMode condition key to\n ReadOnly on the copy source bucket.

      \n
    • \n
    • \n

      If the copy destination is a directory bucket, you must have the\n \n s3express:CreateSession\n permission in the\n Action element of a policy to write the object to the\n destination. The s3express:SessionMode condition key\n can't be set to ReadOnly on the copy destination bucket.\n

      \n
    • \n
    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n

    For example policies, see Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based policies for\n S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Response and special errors
\n
\n

When the request is an HTTP 1.1 request, the response is chunk encoded. When\n the request is not an HTTP 1.1 request, the response would not contain the\n Content-Length. You always need to read the entire response body\n to check if the copy succeeds.

\n
    \n
  • \n

    If the copy is successful, you receive a response with information about\n the copied object.

    \n
  • \n
  • \n

    A copy request might return an error when Amazon S3 receives the copy request\n or while Amazon S3 is copying the files. A 200 OK response can\n contain either a success or an error.

    \n
      \n
    • \n

      If the error occurs before the copy action starts, you receive a\n standard Amazon S3 error.

      \n
    • \n
    • \n

      If the error occurs during the copy operation, the error response\n is embedded in the 200 OK response. For example, in a\n cross-region copy, you may encounter throttling and receive a\n 200 OK response. For more information, see Resolve the Error 200 response when copying objects to\n Amazon S3. The 200 OK status code means the copy\n was accepted, but it doesn't mean the copy is complete. Another\n example is when you disconnect from Amazon S3 before the copy is complete,\n Amazon S3 might cancel the copy and you may receive a 200 OK\n response. You must stay connected to Amazon S3 until the entire response is\n successfully received and processed.

      \n

      If you call this API operation directly, make sure to design your\n application to parse the content of the response and handle it\n appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition. The\n SDKs detect the embedded error and apply error handling per your\n configuration settings (including automatically retrying the request\n as appropriate). If the condition persists, the SDKs throw an\n exception (or, for the SDKs that don't use exceptions, they return an\n error).

      \n
    • \n
    \n
  • \n
\n
\n
Charge
\n
\n

The copy request charge is based on the storage class and Region that you\n specify for the destination object. The request can also result in a data\n retrieval charge for the source if the source storage class bills for data\n retrieval. If the copy source is in a different region, the data transfer is\n billed to the copy source account. For pricing information, see Amazon S3 pricing.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CopyObject:

\n ", "smithy.api#examples": [ { "title": "To copy an object", @@ -19785,7 +19862,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The\n value of this header is a base64-encoded UTF-8 string holding JSON with the encryption\n context key-value pairs.

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

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The\n value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption\n context key-value pairs.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -20028,7 +20105,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use\n for the destination object encryption. The value of this header is a base64-encoded UTF-8\n string holding JSON with the encryption context key-value pairs.

\n

\n General purpose buckets - This value must be explicitly\n added to specify encryption context for CopyObject requests if you want an\n additional encryption context for your destination object. The additional encryption\n context of the source object won't be copied to the destination object. For more\n information, see Encryption\n context in the Amazon S3 User Guide.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use\n for the destination object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

\n

\n General purpose buckets - This value must be explicitly\n added to specify encryption context for CopyObject requests if you want an\n additional encryption context for your destination object. The additional encryption\n context of the source object won't be copied to the destination object. For more\n information, see Encryption\n context in the Amazon S3 User Guide.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -20128,28 +20205,40 @@ "smithy.api#documentation": "

Creation date of the object.

" } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type that is used to calculate the object’s\n checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } + }, "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present\n if the object being copied was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a\n checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

" } } }, @@ -20175,25 +20264,31 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the part. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the part. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 160-bit SHA-1 checksum of the part. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 256-bit SHA-256 checksum of the part. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" } } }, @@ -20254,7 +20349,7 @@ } ], "traits": { - "smithy.api#documentation": "\n

This action creates an Amazon S3 bucket. To create an Amazon S3 on Outposts bucket, see \n CreateBucket\n .

\n
\n

Creates a new S3 bucket. To create a bucket, you must set up Amazon S3 and have a valid Amazon Web Services\n Access Key ID to authenticate requests. Anonymous requests are never allowed to create\n buckets. By creating the bucket, you become the bucket owner.

\n

There are two types of buckets: general purpose buckets and directory buckets. For more\n information about these bucket types, see Creating, configuring, and\n working with Amazon S3 buckets in the Amazon S3 User Guide.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - In\n addition to the s3:CreateBucket permission, the following\n permissions are required in a policy when your CreateBucket\n request includes specific headers:

    \n
      \n
    • \n

      \n Access control lists (ACLs)\n - In your CreateBucket request, if you specify an\n access control list (ACL) and set it to public-read,\n public-read-write, authenticated-read, or\n if you explicitly specify any other custom ACLs, both\n s3:CreateBucket and s3:PutBucketAcl\n permissions are required. In your CreateBucket request,\n if you set the ACL to private, or if you don't specify\n any ACLs, only the s3:CreateBucket permission is\n required.

      \n
    • \n
    • \n

      \n Object Lock - In your\n CreateBucket request, if you set\n x-amz-bucket-object-lock-enabled to true, the\n s3:PutBucketObjectLockConfiguration and\n s3:PutBucketVersioning permissions are\n required.

      \n
    • \n
    • \n

      \n S3 Object Ownership - If\n your CreateBucket request includes the\n x-amz-object-ownership header, then the\n s3:PutBucketOwnershipControls permission is\n required.

      \n \n

      To set an ACL on a bucket as part of a\n CreateBucket request, you must explicitly set S3\n Object Ownership for the bucket to a different value than the\n default, BucketOwnerEnforced. Additionally, if your\n desired bucket ACL grants public access, you must first create the\n bucket (without the bucket ACL) and then explicitly disable Block\n Public Access on the bucket before using PutBucketAcl\n to set the ACL. If you try to create a bucket with a public ACL,\n the request will fail.

      \n

      For the majority of modern use cases in S3, we recommend that\n you keep all Block Public Access settings enabled and keep ACLs\n disabled. If you would like to share data with users outside of\n your account, you can use bucket policies as needed. For more\n information, see Controlling ownership of objects and disabling ACLs for your\n bucket and Blocking public access to your Amazon S3 storage in\n the Amazon S3 User Guide.

      \n
      \n
    • \n
    • \n

      \n S3 Block Public Access - If\n your specific use case requires granting public access to your S3\n resources, you can disable Block Public Access. Specifically, you can\n create a new bucket with Block Public Access enabled, then separately\n call the \n DeletePublicAccessBlock\n API. To use this operation, you must have the\n s3:PutBucketPublicAccessBlock permission. For more\n information about S3 Block Public Access, see Blocking public access to your Amazon S3 storage in the\n Amazon S3 User Guide.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:CreateBucket permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n \n

    The permissions for ACLs, Object Lock, S3 Object Ownership, and S3\n Block Public Access are not supported for directory buckets. For\n directory buckets, all Block Public Access settings are enabled at the\n bucket level and S3 Object Ownership is set to Bucket owner enforced\n (ACLs disabled). These settings can't be modified.

    \n

    For more information about permissions for creating and working with\n directory buckets, see Directory buckets in the\n Amazon S3 User Guide. For more information about\n supported S3 features for directory buckets, see Features of S3 Express One Zone in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CreateBucket:

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

This action creates an Amazon S3 bucket. To create an Amazon S3 on Outposts bucket, see \n CreateBucket\n .

\n
\n

Creates a new S3 bucket. To create a bucket, you must set up Amazon S3 and have a valid Amazon Web Services\n Access Key ID to authenticate requests. Anonymous requests are never allowed to create\n buckets. By creating the bucket, you become the bucket owner.

\n

There are two types of buckets: general purpose buckets and directory buckets. For more\n information about these bucket types, see Creating, configuring, and\n working with Amazon S3 buckets in the Amazon S3 User Guide.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - In\n addition to the s3:CreateBucket permission, the following\n permissions are required in a policy when your CreateBucket\n request includes specific headers:

    \n
      \n
    • \n

      \n Access control lists (ACLs)\n - In your CreateBucket request, if you specify an\n access control list (ACL) and set it to public-read,\n public-read-write, authenticated-read, or\n if you explicitly specify any other custom ACLs, both\n s3:CreateBucket and s3:PutBucketAcl\n permissions are required. In your CreateBucket request,\n if you set the ACL to private, or if you don't specify\n any ACLs, only the s3:CreateBucket permission is\n required.

      \n
    • \n
    • \n

      \n Object Lock - In your\n CreateBucket request, if you set\n x-amz-bucket-object-lock-enabled to true, the\n s3:PutBucketObjectLockConfiguration and\n s3:PutBucketVersioning permissions are\n required.

      \n
    • \n
    • \n

      \n S3 Object Ownership - If\n your CreateBucket request includes the\n x-amz-object-ownership header, then the\n s3:PutBucketOwnershipControls permission is\n required.

      \n \n

      To set an ACL on a bucket as part of a\n CreateBucket request, you must explicitly set S3\n Object Ownership for the bucket to a different value than the\n default, BucketOwnerEnforced. Additionally, if your\n desired bucket ACL grants public access, you must first create the\n bucket (without the bucket ACL) and then explicitly disable Block\n Public Access on the bucket before using PutBucketAcl\n to set the ACL. If you try to create a bucket with a public ACL,\n the request will fail.

      \n

      For the majority of modern use cases in S3, we recommend that\n you keep all Block Public Access settings enabled and keep ACLs\n disabled. If you would like to share data with users outside of\n your account, you can use bucket policies as needed. For more\n information, see Controlling ownership of objects and disabling ACLs for your\n bucket and Blocking public access to your Amazon S3 storage in\n the Amazon S3 User Guide.

      \n
      \n
    • \n
    • \n

      \n S3 Block Public Access - If\n your specific use case requires granting public access to your S3\n resources, you can disable Block Public Access. Specifically, you can\n create a new bucket with Block Public Access enabled, then separately\n call the \n DeletePublicAccessBlock\n API. To use this operation, you must have the\n s3:PutBucketPublicAccessBlock permission. For more\n information about S3 Block Public Access, see Blocking public access to your Amazon S3 storage in the\n Amazon S3 User Guide.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:CreateBucket permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n \n

    The permissions for ACLs, Object Lock, S3 Object Ownership, and S3\n Block Public Access are not supported for directory buckets. For\n directory buckets, all Block Public Access settings are enabled at the\n bucket level and S3 Object Ownership is set to Bucket owner enforced\n (ACLs disabled). These settings can't be modified.

    \n

    For more information about permissions for creating and working with\n directory buckets, see Directory buckets in the\n Amazon S3 User Guide. For more information about\n supported S3 features for directory buckets, see Features of S3 Express One Zone in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CreateBucket:

\n ", "smithy.api#examples": [ { "title": "To create a bucket in a specific region", @@ -20301,13 +20396,13 @@ "LocationConstraint": { "target": "com.amazonaws.s3#BucketLocationConstraint", "traits": { - "smithy.api#documentation": "

Specifies the Region where the bucket will be created. You might choose a Region to\n optimize latency, minimize costs, or address regulatory requirements. For example, if you\n reside in Europe, you will probably find it advantageous to create buckets in the Europe\n (Ireland) Region.

\n

If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region\n (us-east-1) by default.

\n

For a list of the valid values for all of the Amazon Web Services Regions, see Regions and\n Endpoints.

\n \n

This functionality is not supported for directory buckets.

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

Specifies the Region where the bucket will be created. You might choose a Region to\n optimize latency, minimize costs, or address regulatory requirements. For example, if you\n reside in Europe, you will probably find it advantageous to create buckets in the Europe\n (Ireland) Region. For more information, see Accessing a\n bucket in the Amazon S3 User Guide.

\n

If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region\n (us-east-1) by default.

\n \n

This functionality is not supported for directory buckets.

\n
" } }, "Location": { "target": "com.amazonaws.s3#LocationInfo", "traits": { - "smithy.api#documentation": "

Specifies the location where the bucket will be created.

\n

\n Directory buckets - The location type is Availability Zone or Local Zone. \n To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the \n error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide.\n

\n \n

This functionality is only supported by directory buckets.

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

Specifies the location where the bucket will be created.

\n

\n Directory buckets - The location type is Availability Zone or Local Zone. \n When the location type is Local Zone, your Local Zone must be in opt-in status. Otherwise, you get an HTTP 400 Bad Request error with the \n error code Access denied. To learn more about opt-in Local Zones, see Opt-in Dedicated Local Zonesin the Amazon S3 User Guide.\n

\n \n

This functionality is only supported by directory buckets.

\n
" } }, "Bucket": { @@ -20502,7 +20597,7 @@ "target": "com.amazonaws.s3#CreateMultipartUploadOutput" }, "traits": { - "smithy.api#documentation": "

This action initiates a multipart upload and returns an upload ID. This upload ID is\n used to associate all of the parts in the specific multipart upload. You specify this\n upload ID in each of your subsequent upload part requests (see UploadPart). You also include this\n upload ID in the final request to either complete or abort the multipart upload request.\n For more information about multipart uploads, see Multipart Upload Overview in the\n Amazon S3 User Guide.

\n \n

After you initiate a multipart upload and upload one or more parts, to stop being\n charged for storing the uploaded parts, you must either complete or abort the multipart\n upload. Amazon S3 frees up the space used to store the parts and stops charging you for\n storing them only after you either complete or abort a multipart upload.

\n
\n

If you have configured a lifecycle rule to abort incomplete multipart uploads, the\n created multipart upload must be completed within the number of days specified in the\n bucket lifecycle configuration. Otherwise, the incomplete multipart upload becomes eligible\n for an abort action and Amazon S3 aborts the multipart upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle\n Configuration.

\n \n \n \n
\n
Request signing
\n
\n

For request signing, multipart upload is just a series of regular requests. You\n initiate a multipart upload, send one or more requests to upload parts, and then\n complete the multipart upload process. You sign each request individually. There\n is nothing special about signing multipart upload requests. For more information\n about signing, see Authenticating\n Requests (Amazon Web Services Signature Version 4) in the\n Amazon S3 User Guide.

\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n perform a multipart upload with encryption using an Key Management Service (KMS)\n KMS key, the requester must have permission to the\n kms:Decrypt and kms:GenerateDataKey actions on\n the key. The requester must also have permissions for the\n kms:GenerateDataKey action for the\n CreateMultipartUpload API. Then, the requester needs\n permissions for the kms:Decrypt action on the\n UploadPart and UploadPartCopy APIs. These\n permissions are required because Amazon S3 must decrypt and read data from the\n encrypted file parts before it completes the multipart upload. For more\n information, see Multipart upload API and permissions and Protecting data\n using server-side encryption with Amazon Web Services KMS in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Encryption
\n
\n
    \n
  • \n

    \n General purpose buckets - Server-side\n encryption is for data encryption at rest. Amazon S3 encrypts your data as it\n writes it to disks in its data centers and decrypts it when you access it.\n Amazon S3 automatically encrypts all new objects that are uploaded to an S3\n bucket. When doing a multipart upload, if you don't specify encryption\n information in your request, the encryption setting of the uploaded parts is\n set to the default encryption configuration of the destination bucket. By\n default, all buckets have a base level of encryption configuration that uses\n server-side encryption with Amazon S3 managed keys (SSE-S3). If the destination\n bucket has a default encryption configuration that uses server-side\n encryption with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided\n encryption key (SSE-C), Amazon S3 uses the corresponding KMS key, or a\n customer-provided key to encrypt the uploaded parts. When you perform a\n CreateMultipartUpload operation, if you want to use a different type of\n encryption setting for the uploaded parts, you can request that Amazon S3\n encrypts the object with a different encryption key (such as an Amazon S3 managed\n key, a KMS key, or a customer-provided key). When the encryption setting\n in your request is different from the default encryption configuration of\n the destination bucket, the encryption setting in your request takes\n precedence. If you choose to provide your own encryption key, the request\n headers you provide in UploadPart and\n UploadPartCopy\n requests must match the headers you used in the\n CreateMultipartUpload request.

    \n
      \n
    • \n

      Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key\n (aws/s3) and KMS customer managed keys stored in Key Management Service\n (KMS) – If you want Amazon Web Services to manage the keys used to encrypt data,\n specify the following headers in the request.

      \n
        \n
      • \n

        \n x-amz-server-side-encryption\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-aws-kms-key-id\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-context\n

        \n
      • \n
      \n \n
        \n
      • \n

        If you specify\n x-amz-server-side-encryption:aws:kms, but\n don't provide\n x-amz-server-side-encryption-aws-kms-key-id,\n Amazon S3 uses the Amazon Web Services managed key (aws/s3 key) in\n KMS to protect the data.

        \n
      • \n
      • \n

        To perform a multipart upload with encryption by using an\n Amazon Web Services KMS key, the requester must have permission to the\n kms:Decrypt and\n kms:GenerateDataKey* actions on the key.\n These permissions are required because Amazon S3 must decrypt and\n read data from the encrypted file parts before it completes\n the multipart upload. For more information, see Multipart upload API and permissions and Protecting data using server-side encryption with Amazon Web Services\n KMS in the\n Amazon S3 User Guide.

        \n
      • \n
      • \n

        If your Identity and Access Management (IAM) user or role is in the same\n Amazon Web Services account as the KMS key, then you must have these\n permissions on the key policy. If your IAM user or role is\n in a different account from the key, then you must have the\n permissions on both the key policy and your IAM user or\n role.

        \n
      • \n
      • \n

        All GET and PUT requests for an\n object protected by KMS fail if you don't make them by\n using Secure Sockets Layer (SSL), Transport Layer Security\n (TLS), or Signature Version 4. For information about\n configuring any of the officially supported Amazon Web Services SDKs and\n Amazon Web Services CLI, see Specifying the Signature Version in\n Request Authentication in the\n Amazon S3 User Guide.

        \n
      • \n
      \n
      \n

      For more information about server-side encryption with KMS keys\n (SSE-KMS), see Protecting\n Data Using Server-Side Encryption with KMS keys in the\n Amazon S3 User Guide.

      \n
    • \n
    • \n

      Use customer-provided encryption keys (SSE-C) – If you want to\n manage your own encryption keys, provide all the following headers in\n the request.

      \n
        \n
      • \n

        \n x-amz-server-side-encryption-customer-algorithm\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-customer-key\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-customer-key-MD5\n

        \n
      • \n
      \n

      For more information about server-side encryption with\n customer-provided encryption keys (SSE-C), see Protecting data using server-side encryption with\n customer-provided encryption keys (SSE-C) in the\n Amazon S3 User Guide.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your \n CreateSession requests or PUT object requests. Then, new objects \n are automatically encrypted with the desired encryption settings. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide. For more information about the encryption overriding behaviors in directory buckets, see Specifying server-side encryption with KMS for new object uploads.

    \n

    In the Zonal endpoint API calls (except CopyObject and UploadPartCopy) using the REST API, the encryption request headers must match the encryption settings that are specified in the CreateSession request. \n You can't override the values of the encryption settings (x-amz-server-side-encryption, x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and x-amz-server-side-encryption-bucket-key-enabled) that are specified in the CreateSession request. \n You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and \n Amazon S3 will use the encryption settings values from the CreateSession request to protect new objects in the directory bucket. \n

    \n \n

    When you use the CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the \n CreateSession request. It's not supported to override the encryption settings values in the CreateSession request. \n So in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), \n the encryption request headers must match the default encryption configuration of the directory bucket.\n\n

    \n
    \n \n

    For directory buckets, when you perform a\n CreateMultipartUpload operation and an\n UploadPartCopy operation, the request headers you provide\n in the CreateMultipartUpload request must match the default\n encryption configuration of the destination bucket.

    \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CreateMultipartUpload:

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

This action initiates a multipart upload and returns an upload ID. This upload ID is\n used to associate all of the parts in the specific multipart upload. You specify this\n upload ID in each of your subsequent upload part requests (see UploadPart). You also include this\n upload ID in the final request to either complete or abort the multipart upload request.\n For more information about multipart uploads, see Multipart Upload Overview in the\n Amazon S3 User Guide.

\n \n

After you initiate a multipart upload and upload one or more parts, to stop being\n charged for storing the uploaded parts, you must either complete or abort the multipart\n upload. Amazon S3 frees up the space used to store the parts and stops charging you for\n storing them only after you either complete or abort a multipart upload.

\n
\n

If you have configured a lifecycle rule to abort incomplete multipart uploads, the\n created multipart upload must be completed within the number of days specified in the\n bucket lifecycle configuration. Otherwise, the incomplete multipart upload becomes eligible\n for an abort action and Amazon S3 aborts the multipart upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle\n Configuration.

\n \n \n \n
\n
Request signing
\n
\n

For request signing, multipart upload is just a series of regular requests. You\n initiate a multipart upload, send one or more requests to upload parts, and then\n complete the multipart upload process. You sign each request individually. There\n is nothing special about signing multipart upload requests. For more information\n about signing, see Authenticating\n Requests (Amazon Web Services Signature Version 4) in the\n Amazon S3 User Guide.

\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n perform a multipart upload with encryption using an Key Management Service (KMS)\n KMS key, the requester must have permission to the\n kms:Decrypt and kms:GenerateDataKey actions on\n the key. The requester must also have permissions for the\n kms:GenerateDataKey action for the\n CreateMultipartUpload API. Then, the requester needs\n permissions for the kms:Decrypt action on the\n UploadPart and UploadPartCopy APIs. These\n permissions are required because Amazon S3 must decrypt and read data from the\n encrypted file parts before it completes the multipart upload. For more\n information, see Multipart upload API and permissions and Protecting data\n using server-side encryption with Amazon Web Services KMS in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Encryption
\n
\n
    \n
  • \n

    \n General purpose buckets - Server-side\n encryption is for data encryption at rest. Amazon S3 encrypts your data as it\n writes it to disks in its data centers and decrypts it when you access it.\n Amazon S3 automatically encrypts all new objects that are uploaded to an S3\n bucket. When doing a multipart upload, if you don't specify encryption\n information in your request, the encryption setting of the uploaded parts is\n set to the default encryption configuration of the destination bucket. By\n default, all buckets have a base level of encryption configuration that uses\n server-side encryption with Amazon S3 managed keys (SSE-S3). If the destination\n bucket has a default encryption configuration that uses server-side\n encryption with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided\n encryption key (SSE-C), Amazon S3 uses the corresponding KMS key, or a\n customer-provided key to encrypt the uploaded parts. When you perform a\n CreateMultipartUpload operation, if you want to use a different type of\n encryption setting for the uploaded parts, you can request that Amazon S3\n encrypts the object with a different encryption key (such as an Amazon S3 managed\n key, a KMS key, or a customer-provided key). When the encryption setting\n in your request is different from the default encryption configuration of\n the destination bucket, the encryption setting in your request takes\n precedence. If you choose to provide your own encryption key, the request\n headers you provide in UploadPart and\n UploadPartCopy\n requests must match the headers you used in the\n CreateMultipartUpload request.

    \n
      \n
    • \n

      Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key\n (aws/s3) and KMS customer managed keys stored in Key Management Service\n (KMS) – If you want Amazon Web Services to manage the keys used to encrypt data,\n specify the following headers in the request.

      \n
        \n
      • \n

        \n x-amz-server-side-encryption\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-aws-kms-key-id\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-context\n

        \n
      • \n
      \n \n
        \n
      • \n

        If you specify\n x-amz-server-side-encryption:aws:kms, but\n don't provide\n x-amz-server-side-encryption-aws-kms-key-id,\n Amazon S3 uses the Amazon Web Services managed key (aws/s3 key) in\n KMS to protect the data.

        \n
      • \n
      • \n

        To perform a multipart upload with encryption by using an\n Amazon Web Services KMS key, the requester must have permission to the\n kms:Decrypt and\n kms:GenerateDataKey* actions on the key.\n These permissions are required because Amazon S3 must decrypt and\n read data from the encrypted file parts before it completes\n the multipart upload. For more information, see Multipart upload API and permissions and Protecting data using server-side encryption with Amazon Web Services\n KMS in the\n Amazon S3 User Guide.

        \n
      • \n
      • \n

        If your Identity and Access Management (IAM) user or role is in the same\n Amazon Web Services account as the KMS key, then you must have these\n permissions on the key policy. If your IAM user or role is\n in a different account from the key, then you must have the\n permissions on both the key policy and your IAM user or\n role.

        \n
      • \n
      • \n

        All GET and PUT requests for an\n object protected by KMS fail if you don't make them by\n using Secure Sockets Layer (SSL), Transport Layer Security\n (TLS), or Signature Version 4. For information about\n configuring any of the officially supported Amazon Web Services SDKs and\n Amazon Web Services CLI, see Specifying the Signature Version in\n Request Authentication in the\n Amazon S3 User Guide.

        \n
      • \n
      \n
      \n

      For more information about server-side encryption with KMS keys\n (SSE-KMS), see Protecting\n Data Using Server-Side Encryption with KMS keys in the\n Amazon S3 User Guide.

      \n
    • \n
    • \n

      Use customer-provided encryption keys (SSE-C) – If you want to\n manage your own encryption keys, provide all the following headers in\n the request.

      \n
        \n
      • \n

        \n x-amz-server-side-encryption-customer-algorithm\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-customer-key\n

        \n
      • \n
      • \n

        \n x-amz-server-side-encryption-customer-key-MD5\n

        \n
      • \n
      \n

      For more information about server-side encryption with\n customer-provided encryption keys (SSE-C), see Protecting data using server-side encryption with\n customer-provided encryption keys (SSE-C) in the\n Amazon S3 User Guide.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your \n CreateSession requests or PUT object requests. Then, new objects \n are automatically encrypted with the desired encryption settings. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide. For more information about the encryption overriding behaviors in directory buckets, see Specifying server-side encryption with KMS for new object uploads.

    \n

    In the Zonal endpoint API calls (except CopyObject and UploadPartCopy) using the REST API, the encryption request headers must match the encryption settings that are specified in the CreateSession request. \n You can't override the values of the encryption settings (x-amz-server-side-encryption, x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and x-amz-server-side-encryption-bucket-key-enabled) that are specified in the CreateSession request. \n You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and \n Amazon S3 will use the encryption settings values from the CreateSession request to protect new objects in the directory bucket. \n

    \n \n

    When you use the CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the \n CreateSession request. It's not supported to override the encryption settings values in the CreateSession request. \n So in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), \n the encryption request headers must match the default encryption configuration of the directory bucket.\n\n

    \n
    \n \n

    For directory buckets, when you perform a\n CreateMultipartUpload operation and an\n UploadPartCopy operation, the request headers you provide\n in the CreateMultipartUpload request must match the default\n encryption configuration of the destination bucket.

    \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to CreateMultipartUpload:

\n ", "smithy.api#examples": [ { "title": "To initiate a multipart upload", @@ -20592,7 +20687,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

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

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -20615,6 +20710,13 @@ "smithy.api#documentation": "

The algorithm that was used to create a checksum of the object.

", "smithy.api#httpHeader": "x-amz-checksum-algorithm" } + }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

Indicates the checksum type that you want Amazon S3 to use to calculate the object’s\n checksum value. For more information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-type" + } } }, "traits": { @@ -20783,7 +20885,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -20841,6 +20943,13 @@ "smithy.api#documentation": "

Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see\n Checking object integrity in\n the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-algorithm" } + }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

Indicates the checksum type that you want Amazon S3 to use to calculate the object’s\n checksum value. For more information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-type" + } } }, "traits": { @@ -20861,7 +20970,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a session that establishes temporary security credentials to support fast\n authentication and authorization for the Zonal endpoint API operations on directory buckets. For more\n information about Zonal endpoint API operations that include the Availability Zone in the request endpoint, see S3 Express One Zone\n APIs in the Amazon S3 User Guide.

\n

To make Zonal endpoint API requests on a directory bucket, use the CreateSession\n API operation. Specifically, you grant s3express:CreateSession permission to a\n bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the\n CreateSession API request on the bucket, which returns temporary security\n credentials that include the access key ID, secret access key, session token, and\n expiration. These credentials have associated permissions to access the Zonal endpoint API operations. After\n the session is created, you don’t need to use other policies to grant permissions to each\n Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your requests by\n applying the temporary security credentials of the session to the request headers and\n following the SigV4 protocol for authentication. You also apply the session token to the\n x-amz-s3session-token request header for authorization. Temporary security\n credentials are scoped to the bucket and expire after 5 minutes. After the expiration time,\n any calls that you make with those credentials will fail. You must use IAM credentials\n again to make a CreateSession API request that generates a new set of\n temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond\n the original specified interval.

\n

If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid\n service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to\n initiate and manage requests to the CreateSession API. For more information, see Performance guidelines and design patterns in the\n Amazon S3 User Guide.

\n \n \n \n
\n
Permissions
\n
\n

To obtain temporary security credentials, you must create\n a bucket policy or an IAM identity-based policy that grants s3express:CreateSession\n permission to the bucket. In a policy, you can have the\n s3express:SessionMode condition key to control who can create a\n ReadWrite or ReadOnly session. For more information\n about ReadWrite or ReadOnly sessions, see \n x-amz-create-session-mode\n . For example policies, see\n Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based policies for\n S3 Express One Zone in the Amazon S3 User Guide.

\n

To grant cross-account access to Zonal endpoint API operations, the bucket policy should also\n grant both accounts the s3express:CreateSession permission.

\n

If you want to encrypt objects with SSE-KMS, you must also have the\n kms:GenerateDataKey and the kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the target KMS\n key.

\n
\n
Encryption
\n
\n

For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your \n CreateSession requests or PUT object requests. Then, new objects \n are automatically encrypted with the desired encryption settings. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide. For more information about the encryption overriding behaviors in directory buckets, see Specifying server-side encryption with KMS for new object uploads.

\n

For Zonal endpoint (object-level) API operations except CopyObject and UploadPartCopy, \nyou authenticate and authorize requests through CreateSession for low latency. \n To encrypt new objects in a directory bucket with SSE-KMS, you must specify SSE-KMS as the directory bucket's default encryption configuration with a KMS key (specifically, a customer managed key). Then, when a session is created for Zonal endpoint API operations, new objects are automatically encrypted and decrypted with SSE-KMS and S3 Bucket Keys during the session.

\n \n

\n Only 1 customer managed key is supported per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported. \n After you specify SSE-KMS as your bucket's default encryption configuration with a customer managed key, you can't change the customer managed key for the bucket's SSE-KMS configuration.\n

\n
\n

In the Zonal endpoint API calls (except CopyObject and UploadPartCopy) using the REST API, \n you can't override the values of the encryption settings (x-amz-server-side-encryption, x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and x-amz-server-side-encryption-bucket-key-enabled) from the CreateSession request. \n You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and \n Amazon S3 will use the encryption settings values from the CreateSession request to protect new objects in the directory bucket. \n

\n \n

When you use the CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the \n CreateSession request. It's not supported to override the encryption settings values in the CreateSession request. \n Also, in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), \n it's not supported to override the values of the encryption settings from the CreateSession request. \n\n

\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

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

Creates a session that establishes temporary security credentials to support fast\n authentication and authorization for the Zonal endpoint API operations on directory buckets. For more\n information about Zonal endpoint API operations that include the Availability Zone in the request endpoint, see S3 Express One Zone\n APIs in the Amazon S3 User Guide.

\n

To make Zonal endpoint API requests on a directory bucket, use the CreateSession\n API operation. Specifically, you grant s3express:CreateSession permission to a\n bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the\n CreateSession API request on the bucket, which returns temporary security\n credentials that include the access key ID, secret access key, session token, and\n expiration. These credentials have associated permissions to access the Zonal endpoint API operations. After\n the session is created, you don’t need to use other policies to grant permissions to each\n Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your requests by\n applying the temporary security credentials of the session to the request headers and\n following the SigV4 protocol for authentication. You also apply the session token to the\n x-amz-s3session-token request header for authorization. Temporary security\n credentials are scoped to the bucket and expire after 5 minutes. After the expiration time,\n any calls that you make with those credentials will fail. You must use IAM credentials\n again to make a CreateSession API request that generates a new set of\n temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond\n the original specified interval.

\n

If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid\n service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to\n initiate and manage requests to the CreateSession API. For more information, see Performance guidelines and design patterns in the\n Amazon S3 User Guide.

\n \n \n \n
\n
Permissions
\n
\n

To obtain temporary security credentials, you must create\n a bucket policy or an IAM identity-based policy that grants s3express:CreateSession\n permission to the bucket. In a policy, you can have the\n s3express:SessionMode condition key to control who can create a\n ReadWrite or ReadOnly session. For more information\n about ReadWrite or ReadOnly sessions, see \n x-amz-create-session-mode\n . For example policies, see\n Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based policies for\n S3 Express One Zone in the Amazon S3 User Guide.

\n

To grant cross-account access to Zonal endpoint API operations, the bucket policy should also\n grant both accounts the s3express:CreateSession permission.

\n

If you want to encrypt objects with SSE-KMS, you must also have the\n kms:GenerateDataKey and the kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the target KMS\n key.

\n
\n
Encryption
\n
\n

For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your \n CreateSession requests or PUT object requests. Then, new objects \n are automatically encrypted with the desired encryption settings. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide. For more information about the encryption overriding behaviors in directory buckets, see Specifying server-side encryption with KMS for new object uploads.

\n

For Zonal endpoint (object-level) API operations except CopyObject and UploadPartCopy, \nyou authenticate and authorize requests through CreateSession for low latency. \n To encrypt new objects in a directory bucket with SSE-KMS, you must specify SSE-KMS as the directory bucket's default encryption configuration with a KMS key (specifically, a customer managed key). Then, when a session is created for Zonal endpoint API operations, new objects are automatically encrypted and decrypted with SSE-KMS and S3 Bucket Keys during the session.

\n \n

\n Only 1 customer managed key is supported per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported. \n After you specify SSE-KMS as your bucket's default encryption configuration with a customer managed key, you can't change the customer managed key for the bucket's SSE-KMS configuration.\n

\n
\n

In the Zonal endpoint API calls (except CopyObject and UploadPartCopy) using the REST API, \n you can't override the values of the encryption settings (x-amz-server-side-encryption, x-amz-server-side-encryption-aws-kms-key-id, x-amz-server-side-encryption-context, and x-amz-server-side-encryption-bucket-key-enabled) from the CreateSession request. \n You don't need to explicitly specify these encryption settings values in Zonal endpoint API calls, and \n Amazon S3 will use the encryption settings values from the CreateSession request to protect new objects in the directory bucket. \n

\n \n

When you use the CLI or the Amazon Web Services SDKs, for CreateSession, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon Web Services SDKs use the bucket's default encryption configuration for the \n CreateSession request. It's not supported to override the encryption settings values in the CreateSession request. \n Also, in the Zonal endpoint API calls (except CopyObject and UploadPartCopy), \n it's not supported to override the values of the encryption settings from the CreateSession request. \n\n

\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}?session", @@ -20894,7 +21003,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets\n passed on to Amazon Web Services KMS for future GetObject \n operations on this object.

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

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets\n passed on to Amazon Web Services KMS for future GetObject \n operations on this object.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -20957,7 +21066,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of\n this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets passed on\n to Amazon Web Services KMS for future GetObject operations on\n this object.

\n

\n General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of\n this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets passed on\n to Amazon Web Services KMS for future GetObject operations on\n this object.

\n

\n General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -21063,7 +21172,7 @@ "target": "smithy.api#Unit" }, "traits": { - "smithy.api#documentation": "

Deletes the S3 bucket. All objects (including all object versions and delete markers) in\n the bucket must be deleted before the bucket itself can be deleted.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have the s3:DeleteBucket permission on the specified\n bucket in a policy.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:DeleteBucket permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to DeleteBucket:

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

Deletes the S3 bucket. All objects (including all object versions and delete markers) in\n the bucket must be deleted before the bucket itself can be deleted.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have the s3:DeleteBucket permission on the specified\n bucket in a policy.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:DeleteBucket permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to DeleteBucket:

\n ", "smithy.api#examples": [ { "title": "To delete a bucket", @@ -21360,7 +21469,7 @@ "target": "smithy.api#Unit" }, "traits": { - "smithy.api#documentation": "

Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the\n lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your\n objects never expire, and Amazon S3 no longer automatically deletes any objects on the basis of\n rules contained in the deleted lifecycle configuration.

\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - By\n default, all Amazon S3 resources are private, including buckets, objects, and\n related subresources (for example, lifecycle configuration and website\n configuration). Only the resource owner (that is, the Amazon Web Services account that\n created it) can access the resource. The resource owner can optionally grant\n access permissions to others by writing an access policy. For this\n operation, a user must have the s3:PutLifecycleConfiguration\n permission.

    \n

    For more information about permissions, see Managing Access\n Permissions to Your Amazon S3 Resources.

    \n
  • \n
\n
    \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:PutLifecycleConfiguration\n permission in an IAM identity-based policy to use this operation.\n Cross-account access to this API operation isn't supported. The resource\n owner can optionally grant access permissions to others by creating a role\n or user for them as long as they are within the same account as the owner\n and resource.

    \n

    For more information about directory bucket policies and permissions, see\n Authorizing Regional endpoint APIs with IAM in the\n Amazon S3 User Guide.

    \n \n

    \n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n
\n
\n

For more information about the object expiration, see Elements to Describe Lifecycle Actions.

\n

Related actions include:

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

Deletes the lifecycle configuration from the specified bucket. Amazon S3 removes all the\n lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your\n objects never expire, and Amazon S3 no longer automatically deletes any objects on the basis of\n rules contained in the deleted lifecycle configuration.

\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - By\n default, all Amazon S3 resources are private, including buckets, objects, and\n related subresources (for example, lifecycle configuration and website\n configuration). Only the resource owner (that is, the Amazon Web Services account that\n created it) can access the resource. The resource owner can optionally grant\n access permissions to others by writing an access policy. For this\n operation, a user must have the s3:PutLifecycleConfiguration\n permission.

    \n

    For more information about permissions, see Managing Access\n Permissions to Your Amazon S3 Resources.

    \n
  • \n
\n
    \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:PutLifecycleConfiguration\n permission in an IAM identity-based policy to use this operation.\n Cross-account access to this API operation isn't supported. The resource\n owner can optionally grant access permissions to others by creating a role\n or user for them as long as they are within the same account as the owner\n and resource.

    \n

    For more information about directory bucket policies and permissions, see\n Authorizing Regional endpoint APIs with IAM in the\n Amazon S3 User Guide.

    \n \n

    \n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n
\n
\n

For more information about the object expiration, see Elements to Describe Lifecycle Actions.

\n

Related actions include:

\n ", "smithy.api#examples": [ { "title": "To delete lifecycle configuration on a bucket.", @@ -21569,7 +21678,7 @@ "target": "smithy.api#Unit" }, "traits": { - "smithy.api#documentation": "

Deletes the policy of a specified bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

If you are using an identity other than the root user of the Amazon Web Services account that\n owns the bucket, the calling identity must both have the\n DeleteBucketPolicy permissions on the specified bucket and belong\n to the bucket owner's account in order to use this operation.

\n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but\n you're not using an identity that belongs to the bucket owner's account, Amazon S3\n returns a 405 Method Not Allowed error.

\n \n

To ensure that bucket owners don't inadvertently lock themselves out of\n their own buckets, the root principal in a bucket owner's Amazon Web Services account can\n perform the GetBucketPolicy, PutBucketPolicy, and\n DeleteBucketPolicy API actions, even if their bucket policy\n explicitly denies the root principal's access. Bucket owner root principals can\n only be blocked from performing these API actions by VPC endpoint policies and\n Amazon Web Services Organizations policies.

\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:DeleteBucketPolicy permission is required in a policy.\n For more information about general purpose buckets bucket policies, see Using Bucket Policies and User Policies in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:DeleteBucketPolicy permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to DeleteBucketPolicy\n

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

Deletes the policy of a specified bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

If you are using an identity other than the root user of the Amazon Web Services account that\n owns the bucket, the calling identity must both have the\n DeleteBucketPolicy permissions on the specified bucket and belong\n to the bucket owner's account in order to use this operation.

\n

If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but\n you're not using an identity that belongs to the bucket owner's account, Amazon S3\n returns a 405 Method Not Allowed error.

\n \n

To ensure that bucket owners don't inadvertently lock themselves out of\n their own buckets, the root principal in a bucket owner's Amazon Web Services account can\n perform the GetBucketPolicy, PutBucketPolicy, and\n DeleteBucketPolicy API actions, even if their bucket policy\n explicitly denies the root principal's access. Bucket owner root principals can\n only be blocked from performing these API actions by VPC endpoint policies and\n Amazon Web Services Organizations policies.

\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:DeleteBucketPolicy permission is required in a policy.\n For more information about general purpose buckets bucket policies, see Using Bucket Policies and User Policies in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:DeleteBucketPolicy permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to DeleteBucketPolicy\n

\n ", "smithy.api#examples": [ { "title": "To delete bucket policy", @@ -21904,7 +22013,7 @@ "target": "com.amazonaws.s3#DeleteObjectOutput" }, "traits": { - "smithy.api#documentation": "

Removes an object from a bucket. The behavior depends on the bucket's versioning state:

\n \n \n \n \n

To remove a specific version, you must use the versionId query parameter. Using this\n query parameter permanently deletes the version. If the object deleted is a delete marker, Amazon S3\n sets the response header x-amz-delete-marker to true.

\n

If the object you want to delete is in a bucket where the bucket versioning\n configuration is MFA Delete enabled, you must include the x-amz-mfa request\n header in the DELETE versionId request. Requests that include\n x-amz-mfa must use HTTPS. For more information about MFA Delete, see Using MFA Delete in the Amazon S3\n User Guide. To see sample\n requests that use versioning, see Sample\n Request.

\n \n

\n Directory buckets - MFA delete is not supported by directory buckets.

\n
\n

You can delete objects by explicitly calling DELETE Object or calling \n (PutBucketLifecycle) to enable Amazon S3 to remove them for you. If you want to block\n users or accounts from removing or deleting objects from your bucket, you must deny them\n the s3:DeleteObject, s3:DeleteObjectVersion, and\n s3:PutLifeCycleConfiguration actions.

\n \n

\n Directory buckets - S3 Lifecycle is not supported by directory buckets.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The following permissions are required in your policies when your \n DeleteObjects request includes specific headers.

    \n
      \n
    • \n

      \n \n s3:DeleteObject\n - To delete an object from a bucket, you must always have the s3:DeleteObject permission.

      \n
    • \n
    • \n

      \n \n s3:DeleteObjectVersion\n - To delete a specific version of an object from a versioning-enabled bucket, you must have the s3:DeleteObjectVersion permission.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following action is related to DeleteObject:

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

Removes an object from a bucket. The behavior depends on the bucket's versioning state:

\n \n \n \n \n

To remove a specific version, you must use the versionId query parameter. Using this\n query parameter permanently deletes the version. If the object deleted is a delete marker, Amazon S3\n sets the response header x-amz-delete-marker to true.

\n

If the object you want to delete is in a bucket where the bucket versioning\n configuration is MFA Delete enabled, you must include the x-amz-mfa request\n header in the DELETE versionId request. Requests that include\n x-amz-mfa must use HTTPS. For more information about MFA Delete, see Using MFA Delete in the Amazon S3\n User Guide. To see sample\n requests that use versioning, see Sample\n Request.

\n \n

\n Directory buckets - MFA delete is not supported by directory buckets.

\n
\n

You can delete objects by explicitly calling DELETE Object or calling \n (PutBucketLifecycle) to enable Amazon S3 to remove them for you. If you want to block\n users or accounts from removing or deleting objects from your bucket, you must deny them\n the s3:DeleteObject, s3:DeleteObjectVersion, and\n s3:PutLifeCycleConfiguration actions.

\n \n

\n Directory buckets - S3 Lifecycle is not supported by directory buckets.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The following permissions are required in your policies when your \n DeleteObjects request includes specific headers.

    \n
      \n
    • \n

      \n \n s3:DeleteObject\n - To delete an object from a bucket, you must always have the s3:DeleteObject permission.

      \n
    • \n
    • \n

      \n \n s3:DeleteObjectVersion\n - To delete a specific version of an object from a versioning-enabled bucket, you must have the s3:DeleteObjectVersion permission.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following action is related to DeleteObject:

\n ", "smithy.api#examples": [ { "title": "To delete an object (from a non-versioned bucket)", @@ -22155,7 +22264,7 @@ "requestAlgorithmMember": "ChecksumAlgorithm", "requestChecksumRequired": true }, - "smithy.api#documentation": "

This operation enables you to delete multiple objects from a bucket using a single HTTP\n request. If you know the object keys that you want to delete, then this operation provides\n a suitable alternative to sending individual delete requests, reducing per-request\n overhead.

\n

The request can contain a list of up to 1000 keys that you want to delete. In the XML,\n you provide the object key names, and optionally, version IDs if you want to delete a\n specific version of the object from a versioning-enabled bucket. For each key, Amazon S3\n performs a delete operation and returns the result of that delete, success or failure, in\n the response. Note that if the object specified in the request is not found, Amazon S3 returns\n the result as deleted.

\n \n \n \n

The operation supports two modes for the response: verbose and quiet. By default, the\n operation uses verbose mode in which the response includes the result of deletion of each\n key in your request. In quiet mode the response includes only keys where the delete\n operation encountered an error. For a successful deletion in a quiet mode, the operation\n does not return any information about the delete in the response body.

\n

When performing this action on an MFA Delete enabled bucket, that attempts to delete any\n versioned objects, you must include an MFA token. If you do not provide one, the entire\n request will fail, even if there are non-versioned objects you are trying to delete. If you\n provide an invalid token, whether there are versioned keys in the request or not, the\n entire Multi-Object Delete request will fail. For information about MFA Delete, see MFA\n Delete in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n MFA delete is not supported by directory buckets.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n following permissions are required in your policies when your\n DeleteObjects request includes specific headers.

    \n
      \n
    • \n

      \n \n s3:DeleteObject\n \n - To delete an object from a bucket, you must always specify\n the s3:DeleteObject permission.

      \n
    • \n
    • \n

      \n \n s3:DeleteObjectVersion\n - To delete a specific version of an object from a\n versioning-enabled bucket, you must specify the\n s3:DeleteObjectVersion permission.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Content-MD5 request header
\n
\n
    \n
  • \n

    \n General purpose bucket - The Content-MD5\n request header is required for all Multi-Object Delete requests. Amazon S3 uses\n the header value to ensure that your request body has not been altered in\n transit.

    \n
  • \n
  • \n

    \n Directory bucket - The\n Content-MD5 request header or a additional checksum request header\n (including x-amz-checksum-crc32,\n x-amz-checksum-crc32c, x-amz-checksum-sha1, or\n x-amz-checksum-sha256) is required for all Multi-Object\n Delete requests.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to DeleteObjects:

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

This operation enables you to delete multiple objects from a bucket using a single HTTP\n request. If you know the object keys that you want to delete, then this operation provides\n a suitable alternative to sending individual delete requests, reducing per-request\n overhead.

\n

The request can contain a list of up to 1000 keys that you want to delete. In the XML,\n you provide the object key names, and optionally, version IDs if you want to delete a\n specific version of the object from a versioning-enabled bucket. For each key, Amazon S3\n performs a delete operation and returns the result of that delete, success or failure, in\n the response. Note that if the object specified in the request is not found, Amazon S3 returns\n the result as deleted.

\n \n \n \n

The operation supports two modes for the response: verbose and quiet. By default, the\n operation uses verbose mode in which the response includes the result of deletion of each\n key in your request. In quiet mode the response includes only keys where the delete\n operation encountered an error. For a successful deletion in a quiet mode, the operation\n does not return any information about the delete in the response body.

\n

When performing this action on an MFA Delete enabled bucket, that attempts to delete any\n versioned objects, you must include an MFA token. If you do not provide one, the entire\n request will fail, even if there are non-versioned objects you are trying to delete. If you\n provide an invalid token, whether there are versioned keys in the request or not, the\n entire Multi-Object Delete request will fail. For information about MFA Delete, see MFA\n Delete in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n MFA delete is not supported by directory buckets.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n following permissions are required in your policies when your\n DeleteObjects request includes specific headers.

    \n
      \n
    • \n

      \n \n s3:DeleteObject\n \n - To delete an object from a bucket, you must always specify\n the s3:DeleteObject permission.

      \n
    • \n
    • \n

      \n \n s3:DeleteObjectVersion\n - To delete a specific version of an object from a\n versioning-enabled bucket, you must specify the\n s3:DeleteObjectVersion permission.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Content-MD5 request header
\n
\n
    \n
  • \n

    \n General purpose bucket - The Content-MD5\n request header is required for all Multi-Object Delete requests. Amazon S3 uses\n the header value to ensure that your request body has not been altered in\n transit.

    \n
  • \n
  • \n

    \n Directory bucket - The\n Content-MD5 request header or a additional checksum request header\n (including x-amz-checksum-crc32,\n x-amz-checksum-crc32c, x-amz-checksum-sha1, or\n x-amz-checksum-sha256) is required for all Multi-Object\n Delete requests.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to DeleteObjects:

\n ", "smithy.api#examples": [ { "title": "To delete multiple object versions from a versioned bucket", @@ -22312,7 +22421,7 @@ "ChecksumAlgorithm": { "target": "com.amazonaws.s3#ChecksumAlgorithm", "traits": { - "smithy.api#documentation": "

Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any\n additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm\n or\n x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

\n

For the x-amz-checksum-algorithm\n header, replace \n algorithm\n with the supported algorithm from the following list:

\n \n

For more\n information, see Checking object integrity in\n the Amazon S3 User Guide.

\n

If the individual checksum value you provide through x-amz-checksum-algorithm\n doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided\n ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm\n .

\n

If you provide an individual checksum, Amazon S3 ignores any provided\n ChecksumAlgorithm parameter.

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

Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any\n additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm\n or\n x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

\n

For the x-amz-checksum-algorithm\n header, replace \n algorithm\n with the supported algorithm from the following list:

\n \n

For more\n information, see Checking object integrity in\n the Amazon S3 User Guide.

\n

If the individual checksum value you provide through x-amz-checksum-algorithm\n doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

\n

If you provide an individual checksum, Amazon S3 ignores any provided\n ChecksumAlgorithm parameter.

", "smithy.api#httpHeader": "x-amz-sdk-checksum-algorithm" } } @@ -23492,7 +23601,7 @@ "target": "com.amazonaws.s3#GetBucketLifecycleConfigurationOutput" }, "traits": { - "smithy.api#documentation": "

Returns the lifecycle configuration information set on the bucket. For information about\n lifecycle configuration, see Object Lifecycle\n Management.

\n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an object\n key name prefix, one or more object tags, object size, or any combination of these.\n Accordingly, this section describes the latest API, which is compatible with the new\n functionality. The previous version of the API supported filtering based only on an object\n key name prefix, which is supported for general purpose buckets for backward compatibility.\n For the related API description, see GetBucketLifecycle.

\n \n

Lifecyle configurations for directory buckets only support expiring objects and\n cancelling multipart uploads. Expiring of versioned objects, transitions and tag filters\n are not supported.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - By\n default, all Amazon S3 resources are private, including buckets, objects, and\n related subresources (for example, lifecycle configuration and website\n configuration). Only the resource owner (that is, the Amazon Web Services account that\n created it) can access the resource. The resource owner can optionally grant\n access permissions to others by writing an access policy. For this\n operation, a user must have the s3:GetLifecycleConfiguration\n permission.

    \n

    For more information about permissions, see Managing Access\n Permissions to Your Amazon S3 Resources.

    \n
  • \n
\n
    \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:GetLifecycleConfiguration\n permission in an IAM identity-based policy to use this operation.\n Cross-account access to this API operation isn't supported. The resource\n owner can optionally grant access permissions to others by creating a role\n or user for them as long as they are within the same account as the owner\n and resource.

    \n

    For more information about directory bucket policies and permissions, see\n Authorizing Regional endpoint APIs with IAM in the\n Amazon S3 User Guide.

    \n \n

    \n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n
\n
\n

\n GetBucketLifecycleConfiguration has the following special error:

\n \n

The following operations are related to\n GetBucketLifecycleConfiguration:

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

Returns the lifecycle configuration information set on the bucket. For information about\n lifecycle configuration, see Object Lifecycle\n Management.

\n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an object\n key name prefix, one or more object tags, object size, or any combination of these.\n Accordingly, this section describes the latest API, which is compatible with the new\n functionality. The previous version of the API supported filtering based only on an object\n key name prefix, which is supported for general purpose buckets for backward compatibility.\n For the related API description, see GetBucketLifecycle.

\n \n

Lifecyle configurations for directory buckets only support expiring objects and\n cancelling multipart uploads. Expiring of versioned objects, transitions and tag filters\n are not supported.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - By\n default, all Amazon S3 resources are private, including buckets, objects, and\n related subresources (for example, lifecycle configuration and website\n configuration). Only the resource owner (that is, the Amazon Web Services account that\n created it) can access the resource. The resource owner can optionally grant\n access permissions to others by writing an access policy. For this\n operation, a user must have the s3:GetLifecycleConfiguration\n permission.

    \n

    For more information about permissions, see Managing Access\n Permissions to Your Amazon S3 Resources.

    \n
  • \n
\n
    \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:GetLifecycleConfiguration\n permission in an IAM identity-based policy to use this operation.\n Cross-account access to this API operation isn't supported. The resource\n owner can optionally grant access permissions to others by creating a role\n or user for them as long as they are within the same account as the owner\n and resource.

    \n

    For more information about directory bucket policies and permissions, see\n Authorizing Regional endpoint APIs with IAM in the\n Amazon S3 User Guide.

    \n \n

    \n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n
\n
\n

\n GetBucketLifecycleConfiguration has the following special error:

\n \n

The following operations are related to\n GetBucketLifecycleConfiguration:

\n ", "smithy.api#examples": [ { "title": "To get lifecycle configuration on a bucket", @@ -23543,7 +23652,7 @@ "TransitionDefaultMinimumObjectSize": { "target": "com.amazonaws.s3#TransitionDefaultMinimumObjectSize", "traits": { - "smithy.api#documentation": "

Indicates which default minimum object size behavior is applied to the lifecycle\n configuration.

\n \n

This parameter applies to general purpose buckets only. It is not supported for\n directory bucket lifecycle configurations.

\n
\n \n

To customize the minimum object size for any transition you can add a filter that\n specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in\n the body of your transition rule. Custom filters always take precedence over the default\n transition behavior.

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

Indicates which default minimum object size behavior is applied to the lifecycle\n configuration.

\n \n

This parameter applies to general purpose buckets only. It isn't supported for\n directory bucket lifecycle configurations.

\n
\n \n

To customize the minimum object size for any transition you can add a filter that\n specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in\n the body of your transition rule. Custom filters always take precedence over the default\n transition behavior.

", "smithy.api#httpHeader": "x-amz-transition-default-minimum-object-size" } } @@ -23997,7 +24106,7 @@ "target": "com.amazonaws.s3#GetBucketPolicyOutput" }, "traits": { - "smithy.api#documentation": "

Returns the policy of a specified bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

If you are using an identity other than the root user of the Amazon Web Services account that\n owns the bucket, the calling identity must both have the\n GetBucketPolicy permissions on the specified bucket and belong to\n the bucket owner's account in order to use this operation.

\n

If you don't have GetBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but\n you're not using an identity that belongs to the bucket owner's account, Amazon S3\n returns a 405 Method Not Allowed error.

\n \n

To ensure that bucket owners don't inadvertently lock themselves out of\n their own buckets, the root principal in a bucket owner's Amazon Web Services account can\n perform the GetBucketPolicy, PutBucketPolicy, and\n DeleteBucketPolicy API actions, even if their bucket policy\n explicitly denies the root principal's access. Bucket owner root principals can\n only be blocked from performing these API actions by VPC endpoint policies and\n Amazon Web Services Organizations policies.

\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:GetBucketPolicy permission is required in a policy. For\n more information about general purpose buckets bucket policies, see Using Bucket Policies and User Policies in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:GetBucketPolicy permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Example bucket policies
\n
\n

\n General purpose buckets example bucket policies\n - See Bucket policy\n examples in the Amazon S3 User Guide.

\n

\n Directory bucket example bucket policies\n - See Example bucket policies for S3 Express One Zone in the\n Amazon S3 User Guide.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following action is related to GetBucketPolicy:

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

Returns the policy of a specified bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

If you are using an identity other than the root user of the Amazon Web Services account that\n owns the bucket, the calling identity must both have the\n GetBucketPolicy permissions on the specified bucket and belong to\n the bucket owner's account in order to use this operation.

\n

If you don't have GetBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but\n you're not using an identity that belongs to the bucket owner's account, Amazon S3\n returns a 405 Method Not Allowed error.

\n \n

To ensure that bucket owners don't inadvertently lock themselves out of\n their own buckets, the root principal in a bucket owner's Amazon Web Services account can\n perform the GetBucketPolicy, PutBucketPolicy, and\n DeleteBucketPolicy API actions, even if their bucket policy\n explicitly denies the root principal's access. Bucket owner root principals can\n only be blocked from performing these API actions by VPC endpoint policies and\n Amazon Web Services Organizations policies.

\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:GetBucketPolicy permission is required in a policy. For\n more information about general purpose buckets bucket policies, see Using Bucket Policies and User Policies in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:GetBucketPolicy permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Example bucket policies
\n
\n

\n General purpose buckets example bucket policies\n - See Bucket policy\n examples in the Amazon S3 User Guide.

\n

\n Directory bucket example bucket policies\n - See Example bucket policies for S3 Express One Zone in the\n Amazon S3 User Guide.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following action is related to GetBucketPolicy:

\n ", "smithy.api#examples": [ { "title": "To get bucket policy", @@ -24573,13 +24682,14 @@ "aws.protocols#httpChecksum": { "requestValidationModeMember": "ChecksumMode", "responseAlgorithms": [ + "CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1" ] }, - "smithy.api#documentation": "

Retrieves an object from Amazon S3.

\n

In the GetObject request, specify the full key name for the object.

\n

\n General purpose buckets - Both the virtual-hosted-style\n requests and the path-style requests are supported. For a virtual hosted-style request\n example, if you have the object photos/2006/February/sample.jpg, specify the\n object key name as /photos/2006/February/sample.jpg. For a path-style request\n example, if you have the object photos/2006/February/sample.jpg in the bucket\n named examplebucket, specify the object key name as\n /examplebucket/photos/2006/February/sample.jpg. For more information about\n request types, see HTTP Host\n Header Bucket Specification in the Amazon S3 User Guide.

\n

\n Directory buckets -\n Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket--use1-az5--x-s3, specify the object key name as /photos/2006/February/sample.jpg. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have the required permissions in a policy. To use\n GetObject, you must have the READ access to the\n object (or version). If you grant READ access to the anonymous\n user, the GetObject operation returns the object without using\n an authorization header. For more information, see Specifying permissions in a policy in the\n Amazon S3 User Guide.

    \n

    If you include a versionId in your request header, you must\n have the s3:GetObjectVersion permission to access a specific\n version of an object. The s3:GetObject permission is not\n required in this scenario.

    \n

    If you request the current version of an object without a specific\n versionId in the request header, only the\n s3:GetObject permission is required. The\n s3:GetObjectVersion permission is not required in this\n scenario.

    \n

    If the object that you request doesn’t exist, the error that Amazon S3 returns\n depends on whether you also have the s3:ListBucket\n permission.

    \n
      \n
    • \n

      If you have the s3:ListBucket permission on the\n bucket, Amazon S3 returns an HTTP status code 404 Not Found\n error.

      \n
    • \n
    • \n

      If you don’t have the s3:ListBucket permission, Amazon S3\n returns an HTTP status code 403 Access Denied\n error.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If\n the\n object is encrypted using SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Storage classes
\n
\n

If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval\n storage class, the S3 Glacier Deep Archive storage class, the\n S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier,\n before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an\n InvalidObjectState error. For information about restoring archived\n objects, see Restoring Archived\n Objects in the Amazon S3 User Guide.

\n

\n Directory buckets -\n For directory buckets, only the S3 Express One Zone storage class is supported to store newly created objects. \nUnsupported storage class values won't write a destination object and will respond with the HTTP status code 400 Bad Request.

\n
\n
Encryption
\n
\n

Encryption request headers, like x-amz-server-side-encryption,\n should not be sent for the GetObject requests, if your object uses\n server-side encryption with Amazon S3 managed encryption keys (SSE-S3), server-side\n encryption with Key Management Service (KMS) keys (SSE-KMS), or dual-layer server-side\n encryption with Amazon Web Services KMS keys (DSSE-KMS). If you include the header in your\n GetObject requests for the object that uses these types of keys,\n you’ll get an HTTP 400 Bad Request error.

\n

\n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide.

\n
\n
Overriding response header values through the request
\n
\n

There are times when you want to override certain response header values of a\n GetObject response. For example, you might override the\n Content-Disposition response header value through your\n GetObject request.

\n

You can override values for a set of response headers. These modified response\n header values are included only in a successful response, that is, when the HTTP\n status code 200 OK is returned. The headers you can override using\n the following query parameters in the request are a subset of the headers that\n Amazon S3 accepts when you create an object.

\n

The response headers that you can override for the GetObject\n response are Cache-Control, Content-Disposition,\n Content-Encoding, Content-Language,\n Content-Type, and Expires.

\n

To override values for a set of response headers in the GetObject\n response, you can use the following query parameters in the request.

\n
    \n
  • \n

    \n response-cache-control\n

    \n
  • \n
  • \n

    \n response-content-disposition\n

    \n
  • \n
  • \n

    \n response-content-encoding\n

    \n
  • \n
  • \n

    \n response-content-language\n

    \n
  • \n
  • \n

    \n response-content-type\n

    \n
  • \n
  • \n

    \n response-expires\n

    \n
  • \n
\n \n

When you use these parameters, you must sign the request by using either an\n Authorization header or a presigned URL. These parameters cannot be used with\n an unsigned (anonymous) request.

\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to GetObject:

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

Retrieves an object from Amazon S3.

\n

In the GetObject request, specify the full key name for the object.

\n

\n General purpose buckets - Both the virtual-hosted-style\n requests and the path-style requests are supported. For a virtual hosted-style request\n example, if you have the object photos/2006/February/sample.jpg, specify the\n object key name as /photos/2006/February/sample.jpg. For a path-style request\n example, if you have the object photos/2006/February/sample.jpg in the bucket\n named examplebucket, specify the object key name as\n /examplebucket/photos/2006/February/sample.jpg. For more information about\n request types, see HTTP Host\n Header Bucket Specification in the Amazon S3 User Guide.

\n

\n Directory buckets -\n Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket--use1-az5--x-s3, specify the object key name as /photos/2006/February/sample.jpg. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have the required permissions in a policy. To use\n GetObject, you must have the READ access to the\n object (or version). If you grant READ access to the anonymous\n user, the GetObject operation returns the object without using\n an authorization header. For more information, see Specifying permissions in a policy in the\n Amazon S3 User Guide.

    \n

    If you include a versionId in your request header, you must\n have the s3:GetObjectVersion permission to access a specific\n version of an object. The s3:GetObject permission is not\n required in this scenario.

    \n

    If you request the current version of an object without a specific\n versionId in the request header, only the\n s3:GetObject permission is required. The\n s3:GetObjectVersion permission is not required in this\n scenario.

    \n

    If the object that you request doesn’t exist, the error that Amazon S3 returns\n depends on whether you also have the s3:ListBucket\n permission.

    \n
      \n
    • \n

      If you have the s3:ListBucket permission on the\n bucket, Amazon S3 returns an HTTP status code 404 Not Found\n error.

      \n
    • \n
    • \n

      If you don’t have the s3:ListBucket permission, Amazon S3\n returns an HTTP status code 403 Access Denied\n error.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If\n the\n object is encrypted using SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Storage classes
\n
\n

If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval\n storage class, the S3 Glacier Deep Archive storage class, the\n S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier,\n before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an\n InvalidObjectState error. For information about restoring archived\n objects, see Restoring Archived\n Objects in the Amazon S3 User Guide.

\n

\n Directory buckets -\n For directory buckets, only the S3 Express One Zone storage class is supported to store newly created objects. \nUnsupported storage class values won't write a destination object and will respond with the HTTP status code 400 Bad Request.

\n
\n
Encryption
\n
\n

Encryption request headers, like x-amz-server-side-encryption,\n should not be sent for the GetObject requests, if your object uses\n server-side encryption with Amazon S3 managed encryption keys (SSE-S3), server-side\n encryption with Key Management Service (KMS) keys (SSE-KMS), or dual-layer server-side\n encryption with Amazon Web Services KMS keys (DSSE-KMS). If you include the header in your\n GetObject requests for the object that uses these types of keys,\n you’ll get an HTTP 400 Bad Request error.

\n

\n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide.

\n
\n
Overriding response header values through the request
\n
\n

There are times when you want to override certain response header values of a\n GetObject response. For example, you might override the\n Content-Disposition response header value through your\n GetObject request.

\n

You can override values for a set of response headers. These modified response\n header values are included only in a successful response, that is, when the HTTP\n status code 200 OK is returned. The headers you can override using\n the following query parameters in the request are a subset of the headers that\n Amazon S3 accepts when you create an object.

\n

The response headers that you can override for the GetObject\n response are Cache-Control, Content-Disposition,\n Content-Encoding, Content-Language,\n Content-Type, and Expires.

\n

To override values for a set of response headers in the GetObject\n response, you can use the following query parameters in the request.

\n
    \n
  • \n

    \n response-cache-control\n

    \n
  • \n
  • \n

    \n response-content-disposition\n

    \n
  • \n
  • \n

    \n response-content-encoding\n

    \n
  • \n
  • \n

    \n response-content-language\n

    \n
  • \n
  • \n

    \n response-content-type\n

    \n
  • \n
  • \n

    \n response-expires\n

    \n
  • \n
\n \n

When you use these parameters, you must sign the request by using either an\n Authorization header or a presigned URL. These parameters cannot be used with\n an unsigned (anonymous) request.

\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to GetObject:

\n ", "smithy.api#examples": [ { "title": "To retrieve a byte range of an object ", @@ -24790,7 +24900,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves all the metadata from an object without returning the object itself. This\n operation is useful if you're interested only in an object's metadata.

\n

\n GetObjectAttributes combines the functionality of HeadObject\n and ListParts. All of the data returned with each of those individual calls\n can be returned with a single call to GetObjectAttributes.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n use GetObjectAttributes, you must have READ access to the\n object. The permissions that you need to use this operation depend on\n whether the bucket is versioned. If the bucket is versioned, you need both\n the s3:GetObjectVersion and\n s3:GetObjectVersionAttributes permissions for this\n operation. If the bucket is not versioned, you need the\n s3:GetObject and s3:GetObjectAttributes\n permissions. For more information, see Specifying\n Permissions in a Policy in the\n Amazon S3 User Guide. If the object that you request does\n not exist, the error Amazon S3 returns depends on whether you also have the\n s3:ListBucket permission.

    \n
      \n
    • \n

      If you have the s3:ListBucket permission on the\n bucket, Amazon S3 returns an HTTP status code 404 Not Found\n (\"no such key\") error.

      \n
    • \n
    • \n

      If you don't have the s3:ListBucket permission, Amazon S3\n returns an HTTP status code 403 Forbidden (\"access\n denied\") error.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If\n the\n object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Encryption
\n
\n \n

Encryption request headers, like x-amz-server-side-encryption,\n should not be sent for HEAD requests if your object uses\n server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer\n server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side\n encryption with Amazon S3 managed encryption keys (SSE-S3). The\n x-amz-server-side-encryption header is used when you\n PUT an object to S3 and want to specify the encryption method.\n If you include this header in a GET request for an object that\n uses these types of keys, you’ll get an HTTP 400 Bad Request\n error. It's because the encryption method can't be changed when you retrieve\n the object.

\n
\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve\n the metadata from the object, you must use the following headers to provide the\n encryption key for the server to be able to retrieve the object's metadata. The\n headers are:

\n
    \n
  • \n

    \n x-amz-server-side-encryption-customer-algorithm\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key-MD5\n

    \n
  • \n
\n

For more information about SSE-C, see Server-Side\n Encryption (Using Customer-Provided Encryption Keys) in the\n Amazon S3 User Guide.

\n \n

\n Directory bucket permissions -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your \n CreateSession requests or PUT object requests. Then, new objects \n are automatically encrypted with the desired encryption settings. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide. For more information about the encryption overriding behaviors in directory buckets, see Specifying server-side encryption with KMS for new object uploads.

\n
\n
\n
Versioning
\n
\n

\n Directory buckets -\n S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the null value of the version ID is supported by directory buckets. You can only specify null to the\n versionId query parameter in the request.

\n
\n
Conditional request headers
\n
\n

Consider the following when using request headers:

\n
    \n
  • \n

    If both of the If-Match and If-Unmodified-Since\n headers are present in the request as follows, then Amazon S3 returns the HTTP\n status code 200 OK and the data requested:

    \n
      \n
    • \n

      \n If-Match condition evaluates to\n true.

      \n
    • \n
    • \n

      \n If-Unmodified-Since condition evaluates to\n false.

      \n
    • \n
    \n

    For more information about conditional requests, see RFC 7232.

    \n
  • \n
  • \n

    If both of the If-None-Match and\n If-Modified-Since headers are present in the request as\n follows, then Amazon S3 returns the HTTP status code 304 Not\n Modified:

    \n
      \n
    • \n

      \n If-None-Match condition evaluates to\n false.

      \n
    • \n
    • \n

      \n If-Modified-Since condition evaluates to\n true.

      \n
    • \n
    \n

    For more information about conditional requests, see RFC 7232.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following actions are related to GetObjectAttributes:

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

Retrieves all the metadata from an object without returning the object itself. This\n operation is useful if you're interested only in an object's metadata.

\n

\n GetObjectAttributes combines the functionality of HeadObject\n and ListParts. All of the data returned with each of those individual calls\n can be returned with a single call to GetObjectAttributes.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n use GetObjectAttributes, you must have READ access to the\n object. The permissions that you need to use this operation depend on\n whether the bucket is versioned. If the bucket is versioned, you need both\n the s3:GetObjectVersion and\n s3:GetObjectVersionAttributes permissions for this\n operation. If the bucket is not versioned, you need the\n s3:GetObject and s3:GetObjectAttributes\n permissions. For more information, see Specifying\n Permissions in a Policy in the\n Amazon S3 User Guide. If the object that you request does\n not exist, the error Amazon S3 returns depends on whether you also have the\n s3:ListBucket permission.

    \n
      \n
    • \n

      If you have the s3:ListBucket permission on the\n bucket, Amazon S3 returns an HTTP status code 404 Not Found\n (\"no such key\") error.

      \n
    • \n
    • \n

      If you don't have the s3:ListBucket permission, Amazon S3\n returns an HTTP status code 403 Forbidden (\"access\n denied\") error.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If\n the\n object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Encryption
\n
\n \n

Encryption request headers, like x-amz-server-side-encryption,\n should not be sent for HEAD requests if your object uses\n server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer\n server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side\n encryption with Amazon S3 managed encryption keys (SSE-S3). The\n x-amz-server-side-encryption header is used when you\n PUT an object to S3 and want to specify the encryption method.\n If you include this header in a GET request for an object that\n uses these types of keys, you’ll get an HTTP 400 Bad Request\n error. It's because the encryption method can't be changed when you retrieve\n the object.

\n
\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve\n the metadata from the object, you must use the following headers to provide the\n encryption key for the server to be able to retrieve the object's metadata. The\n headers are:

\n
    \n
  • \n

    \n x-amz-server-side-encryption-customer-algorithm\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key-MD5\n

    \n
  • \n
\n

For more information about SSE-C, see Server-Side\n Encryption (Using Customer-Provided Encryption Keys) in the\n Amazon S3 User Guide.

\n \n

\n Directory bucket permissions -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default encryption in your \n CreateSession requests or PUT object requests. Then, new objects \n are automatically encrypted with the desired encryption settings. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide. For more information about the encryption overriding behaviors in directory buckets, see Specifying server-side encryption with KMS for new object uploads.

\n
\n
\n
Versioning
\n
\n

\n Directory buckets -\n S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the null value of the version ID is supported by directory buckets. You can only specify null to the\n versionId query parameter in the request.

\n
\n
Conditional request headers
\n
\n

Consider the following when using request headers:

\n
    \n
  • \n

    If both of the If-Match and If-Unmodified-Since\n headers are present in the request as follows, then Amazon S3 returns the HTTP\n status code 200 OK and the data requested:

    \n
      \n
    • \n

      \n If-Match condition evaluates to\n true.

      \n
    • \n
    • \n

      \n If-Unmodified-Since condition evaluates to\n false.

      \n
    • \n
    \n

    For more information about conditional requests, see RFC 7232.

    \n
  • \n
  • \n

    If both of the If-None-Match and\n If-Modified-Since headers are present in the request as\n follows, then Amazon S3 returns the HTTP status code 304 Not\n Modified:

    \n
      \n
    • \n

      \n If-None-Match condition evaluates to\n false.

      \n
    • \n
    • \n

      \n If-Modified-Since condition evaluates to\n true.

      \n
    • \n
    \n

    For more information about conditional requests, see RFC 7232.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following actions are related to GetObjectAttributes:

\n ", "smithy.api#http": { "method": "GET", "uri": "/{Bucket}/{Key+}?attributes", @@ -25202,31 +25312,45 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more\n information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. For more information, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type, which determines how part-level checksums are combined to create an\n object-level checksum for multipart objects. You can use this header response to verify\n that the checksum type that is received is the same checksum type that was specified in the\n CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-type" + } + }, "MissingMeta": { "target": "com.amazonaws.s3#MissingMeta", "traits": { @@ -26043,7 +26167,7 @@ } ], "traits": { - "smithy.api#documentation": "

You can use this operation to determine if a bucket exists and if you have permission to\n access it. The action returns a 200 OK if the bucket exists and you have\n permission to access it.

\n \n

If the bucket does not exist or you do not have permission to access it, the\n HEAD request returns a generic 400 Bad Request, 403\n Forbidden or 404 Not Found code. A message body is not included,\n so you cannot determine the exception beyond these HTTP response codes.

\n
\n
\n
Authentication and authorization
\n
\n

\n General purpose buckets - Request to public\n buckets that grant the s3:ListBucket permission publicly do not need to be signed.\n All other HeadBucket requests must be authenticated and signed by\n using IAM credentials (access key ID and secret access key for the IAM\n identities). All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed. For more information, see\n REST Authentication.

\n

\n Directory buckets - You must use IAM\n credentials to authenticate and authorize your access to the\n HeadBucket API operation, instead of using the temporary security\n credentials through the CreateSession API operation.

\n

Amazon Web Services CLI or SDKs handles authentication and authorization on your\n behalf.

\n
\n
Permissions
\n
\n

\n \n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n \n

You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

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

You can use this operation to determine if a bucket exists and if you have permission to\n access it. The action returns a 200 OK if the bucket exists and you have\n permission to access it.

\n \n

If the bucket does not exist or you do not have permission to access it, the\n HEAD request returns a generic 400 Bad Request, 403\n Forbidden or 404 Not Found code. A message body is not included,\n so you cannot determine the exception beyond these HTTP response codes.

\n
\n
\n
Authentication and authorization
\n
\n

\n General purpose buckets - Request to public\n buckets that grant the s3:ListBucket permission publicly do not need to be signed.\n All other HeadBucket requests must be authenticated and signed by\n using IAM credentials (access key ID and secret access key for the IAM\n identities). All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed. For more information, see\n REST Authentication.

\n

\n Directory buckets - You must use IAM\n credentials to authenticate and authorize your access to the\n HeadBucket API operation, instead of using the temporary security\n credentials through the CreateSession API operation.

\n

Amazon Web Services CLI or SDKs handles authentication and authorization on your\n behalf.

\n
\n
Permissions
\n
\n

\n \n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n \n

You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
", "smithy.api#examples": [ { "title": "To determine if bucket exists", @@ -26166,7 +26290,7 @@ } ], "traits": { - "smithy.api#documentation": "

The HEAD operation retrieves metadata from an object without returning the\n object itself. This operation is useful if you're interested only in an object's\n metadata.

\n \n

A HEAD request has the same options as a GET operation on\n an object. The response is identical to the GET response except that there\n is no response body. Because of this, if the HEAD request generates an\n error, it returns a generic code, such as 400 Bad Request, 403\n Forbidden, 404 Not Found, 405 Method Not Allowed,\n 412 Precondition Failed, or 304 Not Modified. It's not\n possible to retrieve the exact exception of these error codes.

\n
\n

Request headers are limited to 8 KB in size. For more information, see Common\n Request Headers.

\n
\n
Permissions
\n
\n

\n
    \n
  • \n

    \n General purpose bucket permissions - To\n use HEAD, you must have the s3:GetObject\n permission. You need the relevant read object (or version) permission for\n this operation. For more information, see Actions, resources, and\n condition keys for Amazon S3 in the Amazon S3 User\n Guide. For more information about the permissions to S3 API\n operations by S3 resource types, see Required permissions for Amazon S3 API operations in the\n Amazon S3 User Guide.

    \n

    If the object you request doesn't exist, the error that Amazon S3 returns\n depends on whether you also have the s3:ListBucket\n permission.

    \n
      \n
    • \n

      If you have the s3:ListBucket permission on the\n bucket, Amazon S3 returns an HTTP status code 404 Not Found\n error.

      \n
    • \n
    • \n

      If you don’t have the s3:ListBucket permission, Amazon S3\n returns an HTTP status code 403 Forbidden error.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If you enable x-amz-checksum-mode in the request and the\n object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must\n also have the kms:GenerateDataKey and kms:Decrypt\n permissions in IAM identity-based policies and KMS key policies for the\n KMS key to retrieve the checksum of the object.

    \n
  • \n
\n
\n
Encryption
\n
\n \n

Encryption request headers, like x-amz-server-side-encryption,\n should not be sent for HEAD requests if your object uses\n server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer\n server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side\n encryption with Amazon S3 managed encryption keys (SSE-S3). The\n x-amz-server-side-encryption header is used when you\n PUT an object to S3 and want to specify the encryption method.\n If you include this header in a HEAD request for an object that\n uses these types of keys, you’ll get an HTTP 400 Bad Request\n error. It's because the encryption method can't be changed when you retrieve\n the object.

\n
\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve\n the metadata from the object, you must use the following headers to provide the\n encryption key for the server to be able to retrieve the object's metadata. The\n headers are:

\n
    \n
  • \n

    \n x-amz-server-side-encryption-customer-algorithm\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key-MD5\n

    \n
  • \n
\n

For more information about SSE-C, see Server-Side\n Encryption (Using Customer-Provided Encryption Keys) in the\n Amazon S3 User Guide.

\n \n

\n Directory bucket -\n For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide.

\n
\n
\n
Versioning
\n
\n
    \n
  • \n

    If the current version of the object is a delete marker, Amazon S3 behaves as\n if the object was deleted and includes x-amz-delete-marker:\n true in the response.

    \n
  • \n
  • \n

    If the specified version is a delete marker, the response returns a\n 405 Method Not Allowed error and the Last-Modified:\n timestamp response header.

    \n
  • \n
\n \n
    \n
  • \n

    \n Directory buckets -\n Delete marker is not supported for directory buckets.

    \n
  • \n
  • \n

    \n Directory buckets -\n S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the null value of the version ID is supported by directory buckets. You can only specify null\n to the versionId query parameter in the request.

    \n
  • \n
\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n \n

For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
\n

The following actions are related to HeadObject:

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

The HEAD operation retrieves metadata from an object without returning the\n object itself. This operation is useful if you're interested only in an object's\n metadata.

\n \n

A HEAD request has the same options as a GET operation on\n an object. The response is identical to the GET response except that there\n is no response body. Because of this, if the HEAD request generates an\n error, it returns a generic code, such as 400 Bad Request, 403\n Forbidden, 404 Not Found, 405 Method Not Allowed,\n 412 Precondition Failed, or 304 Not Modified. It's not\n possible to retrieve the exact exception of these error codes.

\n
\n

Request headers are limited to 8 KB in size. For more information, see Common\n Request Headers.

\n
\n
Permissions
\n
\n

\n
    \n
  • \n

    \n General purpose bucket permissions - To\n use HEAD, you must have the s3:GetObject\n permission. You need the relevant read object (or version) permission for\n this operation. For more information, see Actions, resources, and\n condition keys for Amazon S3 in the Amazon S3 User\n Guide. For more information about the permissions to S3 API\n operations by S3 resource types, see Required permissions for Amazon S3 API operations in the\n Amazon S3 User Guide.

    \n

    If the object you request doesn't exist, the error that Amazon S3 returns\n depends on whether you also have the s3:ListBucket\n permission.

    \n
      \n
    • \n

      If you have the s3:ListBucket permission on the\n bucket, Amazon S3 returns an HTTP status code 404 Not Found\n error.

      \n
    • \n
    • \n

      If you don’t have the s3:ListBucket permission, Amazon S3\n returns an HTTP status code 403 Forbidden error.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If you enable x-amz-checksum-mode in the request and the\n object is encrypted with Amazon Web Services Key Management Service (Amazon Web Services KMS), you must\n also have the kms:GenerateDataKey and kms:Decrypt\n permissions in IAM identity-based policies and KMS key policies for the\n KMS key to retrieve the checksum of the object.

    \n
  • \n
\n
\n
Encryption
\n
\n \n

Encryption request headers, like x-amz-server-side-encryption,\n should not be sent for HEAD requests if your object uses\n server-side encryption with Key Management Service (KMS) keys (SSE-KMS), dual-layer\n server-side encryption with Amazon Web Services KMS keys (DSSE-KMS), or server-side\n encryption with Amazon S3 managed encryption keys (SSE-S3). The\n x-amz-server-side-encryption header is used when you\n PUT an object to S3 and want to specify the encryption method.\n If you include this header in a HEAD request for an object that\n uses these types of keys, you’ll get an HTTP 400 Bad Request\n error. It's because the encryption method can't be changed when you retrieve\n the object.

\n
\n

If you encrypt an object by using server-side encryption with customer-provided\n encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve\n the metadata from the object, you must use the following headers to provide the\n encryption key for the server to be able to retrieve the object's metadata. The\n headers are:

\n
    \n
  • \n

    \n x-amz-server-side-encryption-customer-algorithm\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key\n

    \n
  • \n
  • \n

    \n x-amz-server-side-encryption-customer-key-MD5\n

    \n
  • \n
\n

For more information about SSE-C, see Server-Side\n Encryption (Using Customer-Provided Encryption Keys) in the\n Amazon S3 User Guide.

\n \n

\n Directory bucket -\n For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide.

\n
\n
\n
Versioning
\n
\n
    \n
  • \n

    If the current version of the object is a delete marker, Amazon S3 behaves as\n if the object was deleted and includes x-amz-delete-marker:\n true in the response.

    \n
  • \n
  • \n

    If the specified version is a delete marker, the response returns a\n 405 Method Not Allowed error and the Last-Modified:\n timestamp response header.

    \n
  • \n
\n \n
    \n
  • \n

    \n Directory buckets -\n Delete marker is not supported for directory buckets.

    \n
  • \n
  • \n

    \n Directory buckets -\n S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the null value of the version ID is supported by directory buckets. You can only specify null\n to the versionId query parameter in the request.

    \n
  • \n
\n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n \n

For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
\n

The following actions are related to HeadObject:

\n ", "smithy.api#examples": [ { "title": "To retrieve metadata of an object without returning the object itself", @@ -26278,31 +26402,45 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more\n information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type, which determines how part-level checksums are combined to create an\n object-level checksum for multipart objects. You can use this header response to verify\n that the checksum type that is received is the same checksum type that was specified in\n CreateMultipartUpload request. For more\n information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-type" + } + }, "ETag": { "target": "com.amazonaws.s3#ETag", "traits": { @@ -27991,7 +28129,7 @@ "target": "com.amazonaws.s3#ListDirectoryBucketsOutput" }, "traits": { - "smithy.api#documentation": "

Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the\n request. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

You must have the s3express:ListAllMyDirectoryBuckets permission\n in an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n
\n
\n \n

The BucketRegion response element is not part of the\n ListDirectoryBuckets Response Syntax.

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

Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the\n request. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

You must have the s3express:ListAllMyDirectoryBuckets permission\n in an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n
\n
\n \n

The BucketRegion response element is not part of the\n ListDirectoryBuckets Response Syntax.

\n
", "smithy.api#http": { "method": "GET", "uri": "/?x-id=ListDirectoryBuckets", @@ -28062,7 +28200,7 @@ "target": "com.amazonaws.s3#ListMultipartUploadsOutput" }, "traits": { - "smithy.api#documentation": "

This operation lists in-progress multipart uploads in a bucket. An in-progress multipart\n upload is a multipart upload that has been initiated by the\n CreateMultipartUpload request, but has not yet been completed or\n aborted.

\n \n

\n Directory buckets - If multipart uploads in\n a directory bucket are in progress, you can't delete the bucket until all the\n in-progress multipart uploads are aborted or completed. To delete these in-progress\n multipart uploads, use the ListMultipartUploads operation to list the\n in-progress multipart uploads in the bucket and use the\n AbortMultipartUpload operation to abort all the in-progress multipart\n uploads.

\n
\n

The ListMultipartUploads operation returns a maximum of 1,000 multipart\n uploads in the response. The limit of 1,000 multipart uploads is also the default value.\n You can further limit the number of uploads in a response by specifying the\n max-uploads request parameter. If there are more than 1,000 multipart\n uploads that satisfy your ListMultipartUploads request, the response returns\n an IsTruncated element with the value of true, a\n NextKeyMarker element, and a NextUploadIdMarker element. To\n list the remaining multipart uploads, you need to make subsequent\n ListMultipartUploads requests. In these requests, include two query\n parameters: key-marker and upload-id-marker. Set the value of\n key-marker to the NextKeyMarker value from the previous\n response. Similarly, set the value of upload-id-marker to the\n NextUploadIdMarker value from the previous response.

\n \n

\n Directory buckets - The\n upload-id-marker element and the NextUploadIdMarker element\n aren't supported by directory buckets. To list the additional multipart uploads, you\n only need to set the value of key-marker to the NextKeyMarker\n value from the previous response.

\n
\n

For more information about multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Sorting of multipart uploads in response
\n
\n
    \n
  • \n

    \n General purpose bucket - In the\n ListMultipartUploads response, the multipart uploads are\n sorted based on two criteria:

    \n
      \n
    • \n

      Key-based sorting - Multipart uploads are initially sorted\n in ascending order based on their object keys.

      \n
    • \n
    • \n

      Time-based sorting - For uploads that share the same object\n key, they are further sorted in ascending order based on the upload\n initiation time. Among uploads with the same key, the one that was\n initiated first will appear before the ones that were initiated\n later.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket - In the\n ListMultipartUploads response, the multipart uploads aren't\n sorted lexicographically based on the object keys.\n \n

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to ListMultipartUploads:

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

This operation lists in-progress multipart uploads in a bucket. An in-progress multipart\n upload is a multipart upload that has been initiated by the\n CreateMultipartUpload request, but has not yet been completed or\n aborted.

\n \n

\n Directory buckets - If multipart uploads in\n a directory bucket are in progress, you can't delete the bucket until all the\n in-progress multipart uploads are aborted or completed. To delete these in-progress\n multipart uploads, use the ListMultipartUploads operation to list the\n in-progress multipart uploads in the bucket and use the\n AbortMultipartUpload operation to abort all the in-progress multipart\n uploads.

\n
\n

The ListMultipartUploads operation returns a maximum of 1,000 multipart\n uploads in the response. The limit of 1,000 multipart uploads is also the default value.\n You can further limit the number of uploads in a response by specifying the\n max-uploads request parameter. If there are more than 1,000 multipart\n uploads that satisfy your ListMultipartUploads request, the response returns\n an IsTruncated element with the value of true, a\n NextKeyMarker element, and a NextUploadIdMarker element. To\n list the remaining multipart uploads, you need to make subsequent\n ListMultipartUploads requests. In these requests, include two query\n parameters: key-marker and upload-id-marker. Set the value of\n key-marker to the NextKeyMarker value from the previous\n response. Similarly, set the value of upload-id-marker to the\n NextUploadIdMarker value from the previous response.

\n \n

\n Directory buckets - The\n upload-id-marker element and the NextUploadIdMarker element\n aren't supported by directory buckets. To list the additional multipart uploads, you\n only need to set the value of key-marker to the NextKeyMarker\n value from the previous response.

\n
\n

For more information about multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Sorting of multipart uploads in response
\n
\n
    \n
  • \n

    \n General purpose bucket - In the\n ListMultipartUploads response, the multipart uploads are\n sorted based on two criteria:

    \n
      \n
    • \n

      Key-based sorting - Multipart uploads are initially sorted\n in ascending order based on their object keys.

      \n
    • \n
    • \n

      Time-based sorting - For uploads that share the same object\n key, they are further sorted in ascending order based on the upload\n initiation time. Among uploads with the same key, the one that was\n initiated first will appear before the ones that were initiated\n later.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket - In the\n ListMultipartUploads response, the multipart uploads aren't\n sorted lexicographically based on the object keys.\n \n

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to ListMultipartUploads:

\n ", "smithy.api#examples": [ { "title": "List next set of multipart uploads when previous result is truncated", @@ -28791,7 +28929,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns some or all (up to 1,000) of the objects in a bucket with each request. You can\n use the request parameters as selection criteria to return a subset of the objects in a\n bucket. A 200 OK response can contain valid or invalid XML. Make sure to\n design your application to parse the contents of the response and handle it appropriately.\n For more information about listing objects, see Listing object keys\n programmatically in the Amazon S3 User Guide. To get a list of\n your buckets, see ListBuckets.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n use this operation, you must have READ access to the bucket. You must have\n permission to perform the s3:ListBucket action. The bucket\n owner has this permission by default and can grant this permission to\n others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access\n Permissions to Your Amazon S3 Resources in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Sorting order of returned objects
\n
\n
    \n
  • \n

    \n General purpose bucket - For\n general purpose buckets, ListObjectsV2 returns objects in\n lexicographical order based on their key names.

    \n
  • \n
  • \n

    \n Directory bucket - For\n directory buckets, ListObjectsV2 does not return objects in\n lexicographical order.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n \n

This section describes the latest revision of this action. We recommend that you use\n this revised API operation for application development. For backward compatibility, Amazon S3\n continues to support the prior version of this API operation, ListObjects.

\n
\n

The following operations are related to ListObjectsV2:

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

Returns some or all (up to 1,000) of the objects in a bucket with each request. You can\n use the request parameters as selection criteria to return a subset of the objects in a\n bucket. A 200 OK response can contain valid or invalid XML. Make sure to\n design your application to parse the contents of the response and handle it appropriately.\n For more information about listing objects, see Listing object keys\n programmatically in the Amazon S3 User Guide. To get a list of\n your buckets, see ListBuckets.

\n \n \n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n use this operation, you must have READ access to the bucket. You must have\n permission to perform the s3:ListBucket action. The bucket\n owner has this permission by default and can grant this permission to\n others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access\n Permissions to Your Amazon S3 Resources in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
Sorting order of returned objects
\n
\n
    \n
  • \n

    \n General purpose bucket - For\n general purpose buckets, ListObjectsV2 returns objects in\n lexicographical order based on their key names.

    \n
  • \n
  • \n

    \n Directory bucket - For\n directory buckets, ListObjectsV2 does not return objects in\n lexicographical order.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n \n

This section describes the latest revision of this action. We recommend that you use\n this revised API operation for application development. For backward compatibility, Amazon S3\n continues to support the prior version of this API operation, ListObjects.

\n
\n

The following operations are related to ListObjectsV2:

\n ", "smithy.api#examples": [ { "title": "To get object list", @@ -29028,7 +29166,7 @@ "target": "com.amazonaws.s3#ListPartsOutput" }, "traits": { - "smithy.api#documentation": "

Lists the parts that have been uploaded for a specific multipart upload.

\n

To use this operation, you must provide the upload ID in the request. You\n obtain this uploadID by sending the initiate multipart upload request through CreateMultipartUpload.

\n

The ListParts request returns a maximum of 1,000 uploaded parts. The limit\n of 1,000 parts is also the default value. You can restrict the number of parts in a\n response by specifying the max-parts request parameter. If your multipart\n upload consists of more than 1,000 parts, the response returns an IsTruncated\n field with the value of true, and a NextPartNumberMarker element.\n To list remaining uploaded parts, in subsequent ListParts requests, include\n the part-number-marker query string parameter and set its value to the\n NextPartNumberMarker field value from the previous response.

\n

For more information on multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n

    If the upload was created using server-side encryption with Key Management Service\n (KMS) keys (SSE-KMS) or dual-layer server-side encryption with\n Amazon Web Services KMS keys (DSSE-KMS), you must have permission to the\n kms:Decrypt action for the ListParts request to\n succeed.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to ListParts:

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

Lists the parts that have been uploaded for a specific multipart upload.

\n

To use this operation, you must provide the upload ID in the request. You\n obtain this uploadID by sending the initiate multipart upload request through CreateMultipartUpload.

\n

The ListParts request returns a maximum of 1,000 uploaded parts. The limit\n of 1,000 parts is also the default value. You can restrict the number of parts in a\n response by specifying the max-parts request parameter. If your multipart\n upload consists of more than 1,000 parts, the response returns an IsTruncated\n field with the value of true, and a NextPartNumberMarker element.\n To list remaining uploaded parts, in subsequent ListParts requests, include\n the part-number-marker query string parameter and set its value to the\n NextPartNumberMarker field value from the previous response.

\n

For more information on multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - For\n information about permissions required to use the multipart upload API, see\n Multipart Upload and\n Permissions in the Amazon S3 User Guide.

    \n

    If the upload was created using server-side encryption with Key Management Service\n (KMS) keys (SSE-KMS) or dual-layer server-side encryption with\n Amazon Web Services KMS keys (DSSE-KMS), you must have permission to the\n kms:Decrypt action for the ListParts request to\n succeed.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to ListParts:

\n ", "smithy.api#examples": [ { "title": "To list parts of a multipart upload.", @@ -29174,6 +29312,12 @@ "traits": { "smithy.api#documentation": "

The algorithm that was used to create a checksum of the object.

" } + }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type, which determines how part-level checksums are combined to create an\n object-level checksum for multipart objects. You can use this header response to verify\n that the checksum type that is received is the same checksum type that was specified in\n CreateMultipartUpload request. For more\n information, see Checking object integrity\n in the Amazon S3 User Guide.

" + } } }, "traits": { @@ -29287,7 +29431,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the location where the bucket will be created.

\n

For directory buckets, the location type is Availability Zone or Local Zone. For more information about directory buckets, see \n Working with directory buckets in the Amazon S3 User Guide.

\n \n

This functionality is only supported by directory buckets.

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

Specifies the location where the bucket will be created.

\n

For directory buckets, the location type is Availability Zone or Local Zone. For more information about directory buckets, see \n Directory buckets in the Amazon S3 User Guide.

\n \n

This functionality is only supported by directory buckets.

\n
" } }, "com.amazonaws.s3#LocationNameAsString": { @@ -29639,6 +29783,9 @@ "com.amazonaws.s3#MissingMeta": { "type": "integer" }, + "com.amazonaws.s3#MpuObjectSize": { + "type": "string" + }, "com.amazonaws.s3#MultipartUpload": { "type": "structure", "members": { @@ -29683,6 +29830,12 @@ "traits": { "smithy.api#documentation": "

The algorithm that was used to create a checksum of the object.

" } + }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type that is used to calculate the object’s\n checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } } }, "traits": { @@ -29889,6 +30042,12 @@ "smithy.api#xmlFlattened": {} } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type that is used to calculate the object’s\n checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } + }, "Size": { "target": "com.amazonaws.s3#Size", "traits": { @@ -30269,25 +30428,31 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a\n checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present\n if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present\n if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } } }, @@ -30391,6 +30556,12 @@ "smithy.api#xmlFlattened": {} } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

The checksum type that is used to calculate the object’s\n checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } + }, "Size": { "target": "com.amazonaws.s3#Size", "traits": { @@ -30620,25 +30791,31 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present\n if the object was uploaded with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present\n if the object was uploaded with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" + } + }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present\n if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a\n checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present\n if the object was uploaded with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

" + "smithy.api#documentation": "

The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present\n if the object was uploaded with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

" } } }, @@ -31005,7 +31182,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, go to RFC\n 1864.\n

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, go to RFC\n 1864.\n

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -31223,7 +31400,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, go to RFC\n 1864.\n

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, go to RFC\n 1864.\n

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -31259,7 +31436,7 @@ "requestAlgorithmMember": "ChecksumAlgorithm", "requestChecksumRequired": true }, - "smithy.api#documentation": "

This operation configures default encryption and Amazon S3 Bucket Keys for an existing\n bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n

By default, all buckets have a default encryption configuration that uses server-side\n encryption with Amazon S3 managed keys (SSE-S3).

\n \n \n \n \n

If you're specifying a customer managed KMS key, we recommend using a fully\n qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the\n key within the requester’s account. This behavior can result in data that's encrypted\n with a KMS key that belongs to the requester, and not the bucket owner.

\n

Also, this action requires Amazon Web Services Signature Version 4. For more information, see\n Authenticating\n Requests (Amazon Web Services Signature Version 4).

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:PutEncryptionConfiguration permission is required in a\n policy. The bucket owner has this permission by default. The bucket owner\n can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Operations and Managing Access\n Permissions to Your Amazon S3 Resources in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:PutEncryptionConfiguration permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n

    To set a directory bucket default encryption with SSE-KMS, you must also\n have the kms:GenerateDataKey and the kms:Decrypt\n permissions in IAM identity-based policies and KMS key policies for the\n target KMS key.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to PutBucketEncryption:

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

This operation configures default encryption and Amazon S3 Bucket Keys for an existing\n bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n

By default, all buckets have a default encryption configuration that uses server-side\n encryption with Amazon S3 managed keys (SSE-S3).

\n \n \n \n \n

If you're specifying a customer managed KMS key, we recommend using a fully\n qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the\n key within the requester’s account. This behavior can result in data that's encrypted\n with a KMS key that belongs to the requester, and not the bucket owner.

\n

Also, this action requires Amazon Web Services Signature Version 4. For more information, see\n Authenticating\n Requests (Amazon Web Services Signature Version 4).

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:PutEncryptionConfiguration permission is required in a\n policy. The bucket owner has this permission by default. The bucket owner\n can grant this permission to others. For more information about permissions,\n see Permissions Related to Bucket Operations and Managing Access\n Permissions to Your Amazon S3 Resources in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:PutEncryptionConfiguration permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n

    To set a directory bucket default encryption with SSE-KMS, you must also\n have the kms:GenerateDataKey and the kms:Decrypt\n permissions in IAM identity-based policies and KMS key policies for the\n target KMS key.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to PutBucketEncryption:

\n ", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}?encryption", @@ -31289,7 +31466,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the server-side encryption\n configuration.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

\n \n

This functionality is not supported for directory buckets.

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

The Base64 encoded 128-bit MD5 digest of the server-side encryption\n configuration.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

\n \n

This functionality is not supported for directory buckets.

\n
", "smithy.api#httpHeader": "Content-MD5" } }, @@ -31456,7 +31633,7 @@ "requestAlgorithmMember": "ChecksumAlgorithm", "requestChecksumRequired": true }, - "smithy.api#documentation": "

Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle\n configuration. Keep in mind that this will overwrite an existing lifecycle configuration,\n so if you want to retain any configuration details, they must be included in the new\n lifecycle configuration. For information about lifecycle configuration, see Managing\n your storage lifecycle.

\n \n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an object key name prefix, one or more object tags, object size, or any combination of these. Accordingly, this section describes the latest API. The previous version of the API supported filtering based only on an object key name prefix, which is supported for backward compatibility.\n For the related API description, see PutBucketLifecycle.

\n
\n
\n
Rules
\n
Permissions
\n
HTTP Host header syntax
\n
\n

You specify the lifecycle configuration in your request body. The lifecycle\n configuration is specified as XML consisting of one or more rules. An Amazon S3\n Lifecycle configuration can have up to 1,000 rules. This limit is not\n adjustable.

\n

Bucket lifecycle configuration supports specifying a lifecycle rule using an\n object key name prefix, one or more object tags, object size, or any combination\n of these. Accordingly, this section describes the latest API. The previous version\n of the API supported filtering based only on an object key name prefix, which is\n supported for backward compatibility for general purpose buckets. For the related\n API description, see PutBucketLifecycle.

\n \n

Lifecyle configurations for directory buckets only support expiring objects and\n cancelling multipart uploads. Expiring of versioned objects,transitions and tag\n filters are not supported.

\n
\n

A lifecycle rule consists of the following:

\n
    \n
  • \n

    A filter identifying a subset of objects to which the rule applies. The\n filter can be based on a key name prefix, object tags, object size, or any\n combination of these.

    \n
  • \n
  • \n

    A status indicating whether the rule is in effect.

    \n
  • \n
  • \n

    One or more lifecycle transition and expiration actions that you want\n Amazon S3 to perform on the objects identified by the filter. If the state of\n your bucket is versioning-enabled or versioning-suspended, you can have many\n versions of the same object (one current version and zero or more noncurrent\n versions). Amazon S3 provides predefined actions that you can specify for current\n and noncurrent object versions.

    \n
  • \n
\n

For more information, see Object Lifecycle\n Management and Lifecycle Configuration\n Elements.

\n
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - By\n default, all Amazon S3 resources are private, including buckets, objects, and\n related subresources (for example, lifecycle configuration and website\n configuration). Only the resource owner (that is, the Amazon Web Services account that\n created it) can access the resource. The resource owner can optionally grant\n access permissions to others by writing an access policy. For this\n operation, a user must have the s3:PutLifecycleConfiguration\n permission.

    \n

    You can also explicitly deny permissions. An explicit deny also\n supersedes any other permissions. If you want to block users or accounts\n from removing or deleting objects from your bucket, you must deny them\n permissions for the following actions:

    \n \n
  • \n
\n
    \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:PutLifecycleConfiguration\n permission in an IAM identity-based policy to use this operation.\n Cross-account access to this API operation isn't supported. The resource\n owner can optionally grant access permissions to others by creating a role\n or user for them as long as they are within the same account as the owner\n and resource.

    \n

    For more information about directory bucket policies and permissions, see\n Authorizing Regional endpoint APIs with IAM in the\n Amazon S3 User Guide.

    \n \n

    \n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n

The following operations are related to\n PutBucketLifecycleConfiguration:

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

Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle\n configuration. Keep in mind that this will overwrite an existing lifecycle configuration,\n so if you want to retain any configuration details, they must be included in the new\n lifecycle configuration. For information about lifecycle configuration, see Managing\n your storage lifecycle.

\n \n

Bucket lifecycle configuration now supports specifying a lifecycle rule using an object key name prefix, one or more object tags, object size, or any combination of these. Accordingly, this section describes the latest API. The previous version of the API supported filtering based only on an object key name prefix, which is supported for backward compatibility.\n For the related API description, see PutBucketLifecycle.

\n
\n
\n
Rules
\n
Permissions
\n
HTTP Host header syntax
\n
\n

You specify the lifecycle configuration in your request body. The lifecycle\n configuration is specified as XML consisting of one or more rules. An Amazon S3\n Lifecycle configuration can have up to 1,000 rules. This limit is not\n adjustable.

\n

Bucket lifecycle configuration supports specifying a lifecycle rule using an\n object key name prefix, one or more object tags, object size, or any combination\n of these. Accordingly, this section describes the latest API. The previous version\n of the API supported filtering based only on an object key name prefix, which is\n supported for backward compatibility for general purpose buckets. For the related\n API description, see PutBucketLifecycle.

\n \n

Lifecyle configurations for directory buckets only support expiring objects and\n cancelling multipart uploads. Expiring of versioned objects,transitions and tag\n filters are not supported.

\n
\n

A lifecycle rule consists of the following:

\n
    \n
  • \n

    A filter identifying a subset of objects to which the rule applies. The\n filter can be based on a key name prefix, object tags, object size, or any\n combination of these.

    \n
  • \n
  • \n

    A status indicating whether the rule is in effect.

    \n
  • \n
  • \n

    One or more lifecycle transition and expiration actions that you want\n Amazon S3 to perform on the objects identified by the filter. If the state of\n your bucket is versioning-enabled or versioning-suspended, you can have many\n versions of the same object (one current version and zero or more noncurrent\n versions). Amazon S3 provides predefined actions that you can specify for current\n and noncurrent object versions.

    \n
  • \n
\n

For more information, see Object Lifecycle\n Management and Lifecycle Configuration\n Elements.

\n
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - By\n default, all Amazon S3 resources are private, including buckets, objects, and\n related subresources (for example, lifecycle configuration and website\n configuration). Only the resource owner (that is, the Amazon Web Services account that\n created it) can access the resource. The resource owner can optionally grant\n access permissions to others by writing an access policy. For this\n operation, a user must have the s3:PutLifecycleConfiguration\n permission.

    \n

    You can also explicitly deny permissions. An explicit deny also\n supersedes any other permissions. If you want to block users or accounts\n from removing or deleting objects from your bucket, you must deny them\n permissions for the following actions:

    \n \n
  • \n
\n
    \n
  • \n

    \n Directory bucket permissions -\n You must have the s3express:PutLifecycleConfiguration\n permission in an IAM identity-based policy to use this operation.\n Cross-account access to this API operation isn't supported. The resource\n owner can optionally grant access permissions to others by creating a role\n or user for them as long as they are within the same account as the owner\n and resource.

    \n

    For more information about directory bucket policies and permissions, see\n Authorizing Regional endpoint APIs with IAM in the\n Amazon S3 User Guide.

    \n \n

    \n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

    \n
    \n
  • \n
\n
\n
\n

\n Directory buckets - The HTTP Host\n header syntax is\n s3express-control.region.amazonaws.com.

\n

The following operations are related to\n PutBucketLifecycleConfiguration:

\n \n
\n
", "smithy.api#examples": [ { "title": "Put bucket lifecycle", @@ -31887,7 +32064,7 @@ "requestAlgorithmMember": "ChecksumAlgorithm", "requestChecksumRequired": true }, - "smithy.api#documentation": "

Applies an Amazon S3 bucket policy to an Amazon S3 bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

If you are using an identity other than the root user of the Amazon Web Services account that\n owns the bucket, the calling identity must both have the\n PutBucketPolicy permissions on the specified bucket and belong to\n the bucket owner's account in order to use this operation.

\n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but\n you're not using an identity that belongs to the bucket owner's account, Amazon S3\n returns a 405 Method Not Allowed error.

\n \n

To ensure that bucket owners don't inadvertently lock themselves out of\n their own buckets, the root principal in a bucket owner's Amazon Web Services account can\n perform the GetBucketPolicy, PutBucketPolicy, and\n DeleteBucketPolicy API actions, even if their bucket policy\n explicitly denies the root principal's access. Bucket owner root principals can\n only be blocked from performing these API actions by VPC endpoint policies and\n Amazon Web Services Organizations policies.

\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:PutBucketPolicy permission is required in a policy. For\n more information about general purpose buckets bucket policies, see Using Bucket Policies and User Policies in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:PutBucketPolicy permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Example bucket policies
\n
\n

\n General purpose buckets example bucket policies\n - See Bucket policy\n examples in the Amazon S3 User Guide.

\n

\n Directory bucket example bucket policies\n - See Example bucket policies for S3 Express One Zone in the\n Amazon S3 User Guide.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to PutBucketPolicy:

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

Applies an Amazon S3 bucket policy to an Amazon S3 bucket.

\n \n

\n Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name\n . Virtual-hosted-style requests aren't supported. \nFor more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n

If you are using an identity other than the root user of the Amazon Web Services account that\n owns the bucket, the calling identity must both have the\n PutBucketPolicy permissions on the specified bucket and belong to\n the bucket owner's account in order to use this operation.

\n

If you don't have PutBucketPolicy permissions, Amazon S3 returns a\n 403 Access Denied error. If you have the correct permissions, but\n you're not using an identity that belongs to the bucket owner's account, Amazon S3\n returns a 405 Method Not Allowed error.

\n \n

To ensure that bucket owners don't inadvertently lock themselves out of\n their own buckets, the root principal in a bucket owner's Amazon Web Services account can\n perform the GetBucketPolicy, PutBucketPolicy, and\n DeleteBucketPolicy API actions, even if their bucket policy\n explicitly denies the root principal's access. Bucket owner root principals can\n only be blocked from performing these API actions by VPC endpoint policies and\n Amazon Web Services Organizations policies.

\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n s3:PutBucketPolicy permission is required in a policy. For\n more information about general purpose buckets bucket policies, see Using Bucket Policies and User Policies in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions -\n To grant access to this API operation, you must have the\n s3express:PutBucketPolicy permission in\n an IAM identity-based policy instead of a bucket policy. Cross-account access to this API operation isn't supported. This operation can only be performed by the Amazon Web Services account that owns the resource.\n For more information about directory bucket policies and permissions, see Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Example bucket policies
\n
\n

\n General purpose buckets example bucket policies\n - See Bucket policy\n examples in the Amazon S3 User Guide.

\n

\n Directory bucket example bucket policies\n - See Example bucket policies for S3 Express One Zone in the\n Amazon S3 User Guide.

\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is s3express-control.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to PutBucketPolicy:

\n ", "smithy.api#examples": [ { "title": "Set bucket policy", @@ -31934,7 +32111,7 @@ "ChecksumAlgorithm": { "target": "com.amazonaws.s3#ChecksumAlgorithm", "traits": { - "smithy.api#documentation": "

Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any\n additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm\n or\n x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

\n

For the x-amz-checksum-algorithm\n header, replace \n algorithm\n with the supported algorithm from the following list:

\n \n

For more\n information, see Checking object integrity in\n the Amazon S3 User Guide.

\n

If the individual checksum value you provide through x-amz-checksum-algorithm\n doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided\n ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm\n .

\n \n

For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

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

Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any\n additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm\n or\n x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

\n

For the x-amz-checksum-algorithm\n header, replace \n algorithm\n with the supported algorithm from the following list:

\n \n

For more\n information, see Checking object integrity in\n the Amazon S3 User Guide.

\n

If the individual checksum value you provide through x-amz-checksum-algorithm\n doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

\n \n

For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

\n
", "smithy.api#httpHeader": "x-amz-sdk-checksum-algorithm" } }, @@ -32030,7 +32207,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -32123,7 +32300,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -32219,7 +32396,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -32264,7 +32441,7 @@ "requestAlgorithmMember": "ChecksumAlgorithm", "requestChecksumRequired": true }, - "smithy.api#documentation": "\n

This operation is not supported for directory buckets.

\n
\n \n

When you enable versioning on a bucket for the first time, it might take a short\n amount of time for the change to be fully propagated. While this change is propagating,\n you may encounter intermittent HTTP 404 NoSuchKey errors for requests to\n objects created or updated after enabling versioning. We recommend that you wait for 15\n minutes after enabling versioning before issuing write operations (PUT or\n DELETE) on objects in the bucket.

\n
\n

Sets the versioning state of an existing bucket.

\n

You can set the versioning state with one of the following values:

\n

\n Enabled—Enables versioning for the objects in the\n bucket. All objects added to the bucket receive a unique version ID.

\n

\n Suspended—Disables versioning for the objects in the\n bucket. All objects added to the bucket receive the version ID null.

\n

If the versioning state has never been set on a bucket, it has no versioning state; a\n GetBucketVersioning request does not return a versioning state value.

\n

In order to enable MFA Delete, you must be the bucket owner. If you are the bucket owner\n and want to enable MFA Delete in the bucket versioning configuration, you must include the\n x-amz-mfa request header and the Status and the\n MfaDelete request elements in a request to set the versioning state of the\n bucket.

\n \n

If you have an object expiration lifecycle configuration in your non-versioned bucket\n and you want to maintain the same permanent delete behavior when you enable versioning,\n you must add a noncurrent expiration policy. The noncurrent expiration lifecycle\n configuration will manage the deletes of the noncurrent object versions in the\n version-enabled bucket. (A version-enabled bucket maintains one current and zero or more\n noncurrent object versions.) For more information, see Lifecycle and Versioning.

\n
\n

The following operations are related to PutBucketVersioning:

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

This operation is not supported for directory buckets.

\n
\n \n

When you enable versioning on a bucket for the first time, it might take a short\n amount of time for the change to be fully propagated. While this change is propagating,\n you might encounter intermittent HTTP 404 NoSuchKey errors for requests to\n objects created or updated after enabling versioning. We recommend that you wait for 15\n minutes after enabling versioning before issuing write operations (PUT or\n DELETE) on objects in the bucket.

\n
\n

Sets the versioning state of an existing bucket.

\n

You can set the versioning state with one of the following values:

\n

\n Enabled—Enables versioning for the objects in the\n bucket. All objects added to the bucket receive a unique version ID.

\n

\n Suspended—Disables versioning for the objects in the\n bucket. All objects added to the bucket receive the version ID null.

\n

If the versioning state has never been set on a bucket, it has no versioning state; a\n GetBucketVersioning request does not return a versioning state value.

\n

In order to enable MFA Delete, you must be the bucket owner. If you are the bucket owner\n and want to enable MFA Delete in the bucket versioning configuration, you must include the\n x-amz-mfa request header and the Status and the\n MfaDelete request elements in a request to set the versioning state of the\n bucket.

\n \n

If you have an object expiration lifecycle configuration in your non-versioned bucket\n and you want to maintain the same permanent delete behavior when you enable versioning,\n you must add a noncurrent expiration policy. The noncurrent expiration lifecycle\n configuration will manage the deletes of the noncurrent object versions in the\n version-enabled bucket. (A version-enabled bucket maintains one current and zero or more\n noncurrent object versions.) For more information, see Lifecycle and Versioning.

\n
\n

The following operations are related to PutBucketVersioning:

\n ", "smithy.api#examples": [ { "title": "Set versioning configuration on a bucket", @@ -32307,7 +32484,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a\n message integrity check to verify that the request body was not corrupted in transit. For\n more information, see RFC\n 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

>The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a\n message integrity check to verify that the request body was not corrupted in transit. For\n more information, see RFC\n 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -32407,7 +32584,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, see RFC 1864.

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -32465,7 +32642,7 @@ "aws.protocols#httpChecksum": { "requestAlgorithmMember": "ChecksumAlgorithm" }, - "smithy.api#documentation": "

Adds an object to a bucket.

\n \n \n \n

Amazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. However, Amazon S3 provides\n features that can modify this behavior:

\n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n following permissions are required in your policies when your\n PutObject request includes specific headers.

    \n
      \n
    • \n

      \n \n s3:PutObject\n -\n To successfully complete the PutObject request, you must\n always have the s3:PutObject permission on a bucket to\n add an object to it.

      \n
    • \n
    • \n

      \n \n s3:PutObjectAcl\n - To successfully change the objects ACL of your\n PutObject request, you must have the\n s3:PutObjectAcl.

      \n
    • \n
    • \n

      \n \n s3:PutObjectTagging\n - To successfully set the tag-set with your\n PutObject request, you must have the\n s3:PutObjectTagging.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Data integrity with Content-MD5
\n
\n
    \n
  • \n

    \n General purpose bucket - To ensure that\n data is not corrupted traversing the network, use the\n Content-MD5 header. When you use this header, Amazon S3 checks\n the object against the provided MD5 value and, if they do not match, Amazon S3\n returns an error. Alternatively, when the object's ETag is its MD5 digest,\n you can calculate the MD5 while putting the object to Amazon S3 and compare the\n returned ETag to the calculated MD5 value.

    \n
  • \n
  • \n

    \n Directory bucket -\n This functionality is not supported for directory buckets.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

For more information about related Amazon S3 APIs, see the following:

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

Adds an object to a bucket.

\n \n \n \n

Amazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. However, Amazon S3 provides\n features that can modify this behavior:

\n \n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - The\n following permissions are required in your policies when your\n PutObject request includes specific headers.

    \n
      \n
    • \n

      \n \n s3:PutObject\n -\n To successfully complete the PutObject request, you must\n always have the s3:PutObject permission on a bucket to\n add an object to it.

      \n
    • \n
    • \n

      \n \n s3:PutObjectAcl\n - To successfully change the objects ACL of your\n PutObject request, you must have the\n s3:PutObjectAcl.

      \n
    • \n
    • \n

      \n \n s3:PutObjectTagging\n - To successfully set the tag-set with your\n PutObject request, you must have the\n s3:PutObjectTagging.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Data integrity with Content-MD5
\n
\n
    \n
  • \n

    \n General purpose bucket - To ensure that\n data is not corrupted traversing the network, use the\n Content-MD5 header. When you use this header, Amazon S3 checks\n the object against the provided MD5 value and, if they do not match, Amazon S3\n returns an error. Alternatively, when the object's ETag is its MD5 digest,\n you can calculate the MD5 while putting the object to Amazon S3 and compare the\n returned ETag to the calculated MD5 value.

    \n
  • \n
  • \n

    \n Directory bucket -\n This functionality is not supported for directory buckets.

    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

For more information about related Amazon S3 APIs, see the following:

\n ", "smithy.api#examples": [ { "title": "To create an object.", @@ -32664,7 +32841,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, go to RFC\n 1864.>\n

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message\n integrity check to verify that the request body was not corrupted in transit. For more\n information, go to RFC\n 1864.>\n

\n

For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

", "smithy.api#httpHeader": "Content-MD5" } }, @@ -32966,31 +33143,45 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header\n is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it\n was uploaded without a checksum (and Amazon S3 added the default checksum,\n CRC-64NVME, to the uploaded object). For more information about how\n checksums are calculated with multipart uploads, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, + "ChecksumType": { + "target": "com.amazonaws.s3#ChecksumType", + "traits": { + "smithy.api#documentation": "

This header specifies the checksum type of the object, which determines how part-level\n checksums are combined to create an object-level checksum for multipart objects. For\n PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a\n data integrity check to verify that the checksum type that is received is the same checksum\n that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-type" + } + }, "ServerSideEncryption": { "target": "com.amazonaws.s3#ServerSideEncryption", "traits": { @@ -33029,7 +33220,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets\n passed on to Amazon Web Services KMS for future GetObject \n operations on this object.

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

If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of\n this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets\n passed on to Amazon Web Services KMS for future GetObject \n operations on this object.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -33043,7 +33234,7 @@ "Size": { "target": "com.amazonaws.s3#Size", "traits": { - "smithy.api#documentation": "

\n The size of the object in bytes. This will only be present if you append to an object.\n

\n \n

This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

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

\n The size of the object in bytes. This value is only be present if you append to an object.\n

\n \n

This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

\n
", "smithy.api#httpHeader": "x-amz-object-size" } }, @@ -33125,7 +33316,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the message (without the headers) according to\n RFC 1864. This header can be used as a message integrity check to verify that the data is\n the same data that was originally sent. Although it is optional, we recommend using the\n Content-MD5 mechanism as an end-to-end integrity check. For more information about REST\n request authentication, see REST Authentication.

\n \n

The Content-MD5 or x-amz-sdk-checksum-algorithm header is\n required for any request to upload an object with a retention period configured using\n Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the\n Amazon S3 User Guide.

\n
\n \n

This functionality is not supported for directory buckets.

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

The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to\n RFC 1864. This header can be used as a message integrity check to verify that the data is\n the same data that was originally sent. Although it is optional, we recommend using the\n Content-MD5 mechanism as an end-to-end integrity check. For more information about REST\n request authentication, see REST Authentication.

\n \n

The Content-MD5 or x-amz-sdk-checksum-algorithm header is\n required for any request to upload an object with a retention period configured using\n Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the\n Amazon S3 User Guide.

\n
\n \n

This functionality is not supported for directory buckets.

\n
", "smithy.api#httpHeader": "Content-MD5" } }, @@ -33139,35 +33330,42 @@ "ChecksumAlgorithm": { "target": "com.amazonaws.s3#ChecksumAlgorithm", "traits": { - "smithy.api#documentation": "

Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any\n additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm\n or\n x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

\n

For the x-amz-checksum-algorithm\n header, replace \n algorithm\n with the supported algorithm from the following list:

\n \n

For more\n information, see Checking object integrity in\n the Amazon S3 User Guide.

\n

If the individual checksum value you provide through x-amz-checksum-algorithm\n doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided\n ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm\n .

\n \n

The Content-MD5 or x-amz-sdk-checksum-algorithm header is\n required for any request to upload an object with a retention period configured using\n Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the\n Amazon S3 User Guide.

\n
\n

For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

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

Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any\n additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm\n or\n x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

\n

For the x-amz-checksum-algorithm\n header, replace \n algorithm\n with the supported algorithm from the following list:

\n \n

For more\n information, see Checking object integrity in\n the Amazon S3 User Guide.

\n

If the individual checksum value you provide through x-amz-checksum-algorithm\n doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

\n \n

The Content-MD5 or x-amz-sdk-checksum-algorithm header is\n required for any request to upload an object with a retention period configured using\n Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the\n Amazon S3 User Guide.

\n
\n

For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

", "smithy.api#httpHeader": "x-amz-sdk-checksum-algorithm" } }, "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This header specifies the Base64 encoded, 64-bit\n CRC-64NVME checksum of the object. The CRC-64NVME checksum is\n always a full object checksum. For more information, see Checking object integrity\n in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, @@ -33297,7 +33495,7 @@ "SSEKMSEncryptionContext": { "target": "com.amazonaws.s3#SSEKMSEncryptionContext", "traits": { - "smithy.api#documentation": "

Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of\n this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets passed on\n to Amazon Web Services KMS for future GetObject operations on\n this object.

\n

\n General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of\n this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. \n This value is stored as object metadata and automatically gets passed on\n to Amazon Web Services KMS for future GetObject operations on\n this object.

\n

\n General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

\n

\n Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

", "smithy.api#httpHeader": "x-amz-server-side-encryption-context" } }, @@ -35611,7 +35809,7 @@ "aws.protocols#httpChecksum": { "requestAlgorithmMember": "ChecksumAlgorithm" }, - "smithy.api#documentation": "

Uploads a part in a multipart upload.

\n \n

In this operation, you provide new data as a part of an object in your request.\n However, you have an option to specify your existing Amazon S3 object as a data source for\n the part you are uploading. To upload a part from an existing object, you use the UploadPartCopy operation.

\n
\n

You must initiate a multipart upload (see CreateMultipartUpload)\n before you can upload any part. In response to your initiate request, Amazon S3 returns an\n upload ID, a unique identifier that you must include in your upload part request.

\n

Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely\n identifies a part and also defines its position within the object being created. If you\n upload a new part using the same part number that was used with a previous part, the\n previously uploaded part is overwritten.

\n

For information about maximum and minimum part sizes and other multipart upload\n specifications, see Multipart upload limits in the Amazon S3 User Guide.

\n \n

After you initiate multipart upload and upload one or more parts, you must either\n complete or abort multipart upload in order to stop getting charged for storage of the\n uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up\n the parts storage and stops charging you for the parts storage.

\n
\n

For more information on multipart uploads, go to Multipart Upload Overview in the\n Amazon S3 User Guide .

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n perform a multipart upload with encryption using an Key Management Service key, the\n requester must have permission to the kms:Decrypt and\n kms:GenerateDataKey actions on the key. The requester must\n also have permissions for the kms:GenerateDataKey action for\n the CreateMultipartUpload API. Then, the requester needs\n permissions for the kms:Decrypt action on the\n UploadPart and UploadPartCopy APIs.

    \n

    These permissions are required because Amazon S3 must decrypt and read data\n from the encrypted file parts before it completes the multipart upload. For\n more information about KMS permissions, see Protecting data\n using server-side encryption with KMS in the\n Amazon S3 User Guide. For information about the\n permissions required to use the multipart upload API, see Multipart upload and permissions and Multipart upload API and permissions in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Data integrity
\n
\n

\n General purpose bucket - To ensure that data\n is not corrupted traversing the network, specify the Content-MD5\n header in the upload part request. Amazon S3 checks the part data against the provided\n MD5 value. If they do not match, Amazon S3 returns an error. If the upload request is\n signed with Signature Version 4, then Amazon Web Services S3 uses the\n x-amz-content-sha256 header as a checksum instead of\n Content-MD5. For more information see Authenticating Requests: Using the Authorization Header (Amazon Web Services Signature\n Version 4).

\n \n

\n Directory buckets - MD5 is not supported by directory buckets. You can use checksum algorithms to check object integrity.

\n
\n
\n
Encryption
\n
\n
    \n
  • \n

    \n General purpose bucket - Server-side\n encryption is for data encryption at rest. Amazon S3 encrypts your data as it\n writes it to disks in its data centers and decrypts it when you access it.\n You have mutually exclusive options to protect data using server-side\n encryption in Amazon S3, depending on how you choose to manage the encryption\n keys. Specifically, the encryption key options are Amazon S3 managed keys\n (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and Customer-Provided Keys (SSE-C).\n Amazon S3 encrypts data with server-side encryption using Amazon S3 managed keys\n (SSE-S3) by default. You can optionally tell Amazon S3 to encrypt data at rest\n using server-side encryption with other key options. The option you use\n depends on whether you want to use KMS keys (SSE-KMS) or provide your own\n encryption key (SSE-C).

    \n

    Server-side encryption is supported by the S3 Multipart Upload\n operations. Unless you are using a customer-provided encryption key (SSE-C),\n you don't need to specify the encryption parameters in each UploadPart\n request. Instead, you only need to specify the server-side encryption\n parameters in the initial Initiate Multipart request. For more information,\n see CreateMultipartUpload.

    \n

    If you request server-side encryption using a customer-provided\n encryption key (SSE-C) in your initiate multipart upload request, you must\n provide identical encryption information in each part upload using the\n following request headers.

    \n
      \n
    • \n

      x-amz-server-side-encryption-customer-algorithm

      \n
    • \n
    • \n

      x-amz-server-side-encryption-customer-key

      \n
    • \n
    • \n

      x-amz-server-side-encryption-customer-key-MD5

      \n
    • \n
    \n

    For more information, see Using\n Server-Side Encryption in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms).

    \n
  • \n
\n
\n
Special errors
\n
\n
    \n
  • \n

    Error Code: NoSuchUpload\n

    \n
      \n
    • \n

      Description: The specified multipart upload does not exist. The\n upload ID might be invalid, or the multipart upload might have been\n aborted or completed.

      \n
    • \n
    • \n

      HTTP Status Code: 404 Not Found

      \n
    • \n
    • \n

      SOAP Fault Code Prefix: Client

      \n
    • \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to UploadPart:

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

Uploads a part in a multipart upload.

\n \n

In this operation, you provide new data as a part of an object in your request.\n However, you have an option to specify your existing Amazon S3 object as a data source for\n the part you are uploading. To upload a part from an existing object, you use the UploadPartCopy operation.

\n
\n

You must initiate a multipart upload (see CreateMultipartUpload)\n before you can upload any part. In response to your initiate request, Amazon S3 returns an\n upload ID, a unique identifier that you must include in your upload part request.

\n

Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely\n identifies a part and also defines its position within the object being created. If you\n upload a new part using the same part number that was used with a previous part, the\n previously uploaded part is overwritten.

\n

For information about maximum and minimum part sizes and other multipart upload\n specifications, see Multipart upload limits in the Amazon S3 User Guide.

\n \n

After you initiate multipart upload and upload one or more parts, you must either\n complete or abort multipart upload in order to stop getting charged for storage of the\n uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up\n the parts storage and stops charging you for the parts storage.

\n
\n

For more information on multipart uploads, go to Multipart Upload Overview in the\n Amazon S3 User Guide .

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Permissions
\n
\n
    \n
  • \n

    \n General purpose bucket permissions - To\n perform a multipart upload with encryption using an Key Management Service key, the\n requester must have permission to the kms:Decrypt and\n kms:GenerateDataKey actions on the key. The requester must\n also have permissions for the kms:GenerateDataKey action for\n the CreateMultipartUpload API. Then, the requester needs\n permissions for the kms:Decrypt action on the\n UploadPart and UploadPartCopy APIs.

    \n

    These permissions are required because Amazon S3 must decrypt and read data\n from the encrypted file parts before it completes the multipart upload. For\n more information about KMS permissions, see Protecting data\n using server-side encryption with KMS in the\n Amazon S3 User Guide. For information about the\n permissions required to use the multipart upload API, see Multipart upload and permissions and Multipart upload API and permissions in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory bucket permissions - To grant access to this API operation on a directory bucket, we recommend that you use the \n CreateSession\n API operation for session-based authorization. Specifically, you grant the s3express:CreateSession permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the CreateSession API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another CreateSession API call to generate a new session token for use. \nAmazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see \n CreateSession\n .

    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n
  • \n
\n
\n
Data integrity
\n
\n

\n General purpose bucket - To ensure that data\n is not corrupted traversing the network, specify the Content-MD5\n header in the upload part request. Amazon S3 checks the part data against the provided\n MD5 value. If they do not match, Amazon S3 returns an error. If the upload request is\n signed with Signature Version 4, then Amazon Web Services S3 uses the\n x-amz-content-sha256 header as a checksum instead of\n Content-MD5. For more information see Authenticating Requests: Using the Authorization Header (Amazon Web Services Signature\n Version 4).

\n \n

\n Directory buckets - MD5 is not supported by directory buckets. You can use checksum algorithms to check object integrity.

\n
\n
\n
Encryption
\n
\n
    \n
  • \n

    \n General purpose bucket - Server-side\n encryption is for data encryption at rest. Amazon S3 encrypts your data as it\n writes it to disks in its data centers and decrypts it when you access it.\n You have mutually exclusive options to protect data using server-side\n encryption in Amazon S3, depending on how you choose to manage the encryption\n keys. Specifically, the encryption key options are Amazon S3 managed keys\n (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and Customer-Provided Keys (SSE-C).\n Amazon S3 encrypts data with server-side encryption using Amazon S3 managed keys\n (SSE-S3) by default. You can optionally tell Amazon S3 to encrypt data at rest\n using server-side encryption with other key options. The option you use\n depends on whether you want to use KMS keys (SSE-KMS) or provide your own\n encryption key (SSE-C).

    \n

    Server-side encryption is supported by the S3 Multipart Upload\n operations. Unless you are using a customer-provided encryption key (SSE-C),\n you don't need to specify the encryption parameters in each UploadPart\n request. Instead, you only need to specify the server-side encryption\n parameters in the initial Initiate Multipart request. For more information,\n see CreateMultipartUpload.

    \n

    If you request server-side encryption using a customer-provided\n encryption key (SSE-C) in your initiate multipart upload request, you must\n provide identical encryption information in each part upload using the\n following request headers.

    \n
      \n
    • \n

      x-amz-server-side-encryption-customer-algorithm

      \n
    • \n
    • \n

      x-amz-server-side-encryption-customer-key

      \n
    • \n
    • \n

      x-amz-server-side-encryption-customer-key-MD5

      \n
    • \n
    \n

    For more information, see Using\n Server-Side Encryption in the\n Amazon S3 User Guide.

    \n
  • \n
  • \n

    \n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms).

    \n
  • \n
\n
\n
Special errors
\n
\n
    \n
  • \n

    Error Code: NoSuchUpload\n

    \n
      \n
    • \n

      Description: The specified multipart upload does not exist. The\n upload ID might be invalid, or the multipart upload might have been\n aborted or completed.

      \n
    • \n
    • \n

      HTTP Status Code: 404 Not Found

      \n
    • \n
    • \n

      SOAP Fault Code Prefix: Client

      \n
    • \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to UploadPart:

\n ", "smithy.api#examples": [ { "title": "To upload a part", @@ -35644,7 +35842,7 @@ "target": "com.amazonaws.s3#UploadPartCopyOutput" }, "traits": { - "smithy.api#documentation": "

Uploads a part by copying data from an existing object as data source. To specify the\n data source, you add the request header x-amz-copy-source in your request. To\n specify a byte range, you add the request header x-amz-copy-source-range in\n your request.

\n

For information about maximum and minimum part sizes and other multipart upload\n specifications, see Multipart upload limits in the Amazon S3 User Guide.

\n \n

Instead of copying data from an existing object as part data, you might use the\n UploadPart action to upload new data as a part of an object in your\n request.

\n
\n

You must initiate a multipart upload before you can upload any part. In response to your\n initiate request, Amazon S3 returns the upload ID, a unique identifier that you must include in\n your upload part request.

\n

For conceptual information about multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide. For information about\n copying objects using a single atomic action vs. a multipart upload, see Operations on\n Objects in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the\n Amazon S3 User Guide.

\n
\n
\n
Authentication and authorization
\n
\n

All UploadPartCopy requests must be authenticated and signed by\n using IAM credentials (access key ID and secret access key for the IAM\n identities). All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed. For more information, see\n REST Authentication.

\n

\n Directory buckets - You must use IAM\n credentials to authenticate and authorize your access to the\n UploadPartCopy API operation, instead of using the temporary\n security credentials through the CreateSession API operation.

\n

Amazon Web Services CLI or SDKs handles authentication and authorization on your\n behalf.

\n
\n
Permissions
\n
\n

You must have READ access to the source object and\n WRITE access to the destination bucket.

\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have the permissions in a policy based on the bucket types of your\n source bucket and destination bucket in an UploadPartCopy\n operation.

    \n
      \n
    • \n

      If the source object is in a general purpose bucket, you must have the\n \n s3:GetObject\n \n permission to read the source object that is being copied.

      \n
    • \n
    • \n

      If the destination bucket is a general purpose bucket, you must have the\n \n s3:PutObject\n \n permission to write the object copy to the destination bucket.

      \n
    • \n
    • \n

      To perform a multipart upload with encryption using an Key Management Service\n key, the requester must have permission to the\n kms:Decrypt and kms:GenerateDataKey\n actions on the key. The requester must also have permissions for the\n kms:GenerateDataKey action for the\n CreateMultipartUpload API. Then, the requester needs\n permissions for the kms:Decrypt action on the\n UploadPart and UploadPartCopy APIs. These\n permissions are required because Amazon S3 must decrypt and read data from\n the encrypted file parts before it completes the multipart upload. For\n more information about KMS permissions, see Protecting\n data using server-side encryption with KMS in the\n Amazon S3 User Guide. For information about the\n permissions required to use the multipart upload API, see Multipart upload\n and permissions and Multipart upload API and permissions in the\n Amazon S3 User Guide.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have permissions in a bucket policy or an IAM identity-based policy based on the\n source and destination bucket types in an UploadPartCopy\n operation.

    \n
      \n
    • \n

      If the source object that you want to copy is in a\n directory bucket, you must have the \n s3express:CreateSession\n permission in\n the Action element of a policy to read the object. By\n default, the session is in the ReadWrite mode. If you\n want to restrict the access, you can explicitly set the\n s3express:SessionMode condition key to\n ReadOnly on the copy source bucket.

      \n
    • \n
    • \n

      If the copy destination is a directory bucket, you must have the\n \n s3express:CreateSession\n permission in the\n Action element of a policy to write the object to the\n destination. The s3express:SessionMode condition key\n cannot be set to ReadOnly on the copy destination.\n

      \n
    • \n
    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n

    For example policies, see Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based policies for\n S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Encryption
\n
\n
    \n
  • \n

    \n General purpose buckets -\n For information about using\n server-side encryption with customer-provided encryption keys with the\n UploadPartCopy operation, see CopyObject and\n UploadPart.

    \n
  • \n
  • \n

    \n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide.

    \n \n

    For directory buckets, when you perform a\n CreateMultipartUpload operation and an\n UploadPartCopy operation, the request headers you provide\n in the CreateMultipartUpload request must match the default\n encryption configuration of the destination bucket.

    \n
    \n

    S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets \nto directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through UploadPartCopy. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.

    \n
  • \n
\n
\n
Special errors
\n
\n
    \n
  • \n

    Error Code: NoSuchUpload\n

    \n
      \n
    • \n

      Description: The specified multipart upload does not exist. The\n upload ID might be invalid, or the multipart upload might have been\n aborted or completed.

      \n
    • \n
    • \n

      HTTP Status Code: 404 Not Found

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: InvalidRequest\n

    \n
      \n
    • \n

      Description: The specified copy source is not supported as a\n byte-range copy source.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to UploadPartCopy:

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

Uploads a part by copying data from an existing object as data source. To specify the\n data source, you add the request header x-amz-copy-source in your request. To\n specify a byte range, you add the request header x-amz-copy-source-range in\n your request.

\n

For information about maximum and minimum part sizes and other multipart upload\n specifications, see Multipart upload limits in the Amazon S3 User Guide.

\n \n

Instead of copying data from an existing object as part data, you might use the\n UploadPart action to upload new data as a part of an object in your\n request.

\n
\n

You must initiate a multipart upload before you can upload any part. In response to your\n initiate request, Amazon S3 returns the upload ID, a unique identifier that you must include in\n your upload part request.

\n

For conceptual information about multipart uploads, see Uploading Objects Using Multipart\n Upload in the Amazon S3 User Guide. For information about\n copying objects using a single atomic action vs. a multipart upload, see Operations on\n Objects in the Amazon S3 User Guide.

\n \n

\n Directory buckets -\n For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name\n . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the\n Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the\n Amazon S3 User Guide.

\n
\n
\n
Authentication and authorization
\n
\n

All UploadPartCopy requests must be authenticated and signed by\n using IAM credentials (access key ID and secret access key for the IAM\n identities). All headers with the x-amz- prefix, including\n x-amz-copy-source, must be signed. For more information, see\n REST Authentication.

\n

\n Directory buckets - You must use IAM\n credentials to authenticate and authorize your access to the\n UploadPartCopy API operation, instead of using the temporary\n security credentials through the CreateSession API operation.

\n

Amazon Web Services CLI or SDKs handles authentication and authorization on your\n behalf.

\n
\n
Permissions
\n
\n

You must have READ access to the source object and\n WRITE access to the destination bucket.

\n
    \n
  • \n

    \n General purpose bucket permissions - You\n must have the permissions in a policy based on the bucket types of your\n source bucket and destination bucket in an UploadPartCopy\n operation.

    \n
      \n
    • \n

      If the source object is in a general purpose bucket, you must have the\n \n s3:GetObject\n \n permission to read the source object that is being copied.

      \n
    • \n
    • \n

      If the destination bucket is a general purpose bucket, you must have the\n \n s3:PutObject\n \n permission to write the object copy to the destination bucket.

      \n
    • \n
    • \n

      To perform a multipart upload with encryption using an Key Management Service\n key, the requester must have permission to the\n kms:Decrypt and kms:GenerateDataKey\n actions on the key. The requester must also have permissions for the\n kms:GenerateDataKey action for the\n CreateMultipartUpload API. Then, the requester needs\n permissions for the kms:Decrypt action on the\n UploadPart and UploadPartCopy APIs. These\n permissions are required because Amazon S3 must decrypt and read data from\n the encrypted file parts before it completes the multipart upload. For\n more information about KMS permissions, see Protecting\n data using server-side encryption with KMS in the\n Amazon S3 User Guide. For information about the\n permissions required to use the multipart upload API, see Multipart upload\n and permissions and Multipart upload API and permissions in the\n Amazon S3 User Guide.

      \n
    • \n
    \n
  • \n
  • \n

    \n Directory bucket permissions -\n You must have permissions in a bucket policy or an IAM identity-based policy based on the\n source and destination bucket types in an UploadPartCopy\n operation.

    \n
      \n
    • \n

      If the source object that you want to copy is in a\n directory bucket, you must have the \n s3express:CreateSession\n permission in\n the Action element of a policy to read the object. By\n default, the session is in the ReadWrite mode. If you\n want to restrict the access, you can explicitly set the\n s3express:SessionMode condition key to\n ReadOnly on the copy source bucket.

      \n
    • \n
    • \n

      If the copy destination is a directory bucket, you must have the\n \n s3express:CreateSession\n permission in the\n Action element of a policy to write the object to the\n destination. The s3express:SessionMode condition key\n cannot be set to ReadOnly on the copy destination.\n

      \n
    • \n
    \n

    If the object is encrypted with SSE-KMS, you must also have the\n kms:GenerateDataKey and kms:Decrypt permissions\n in IAM identity-based policies and KMS key policies for the KMS\n key.

    \n

    For example policies, see Example bucket policies for S3 Express One Zone and Amazon Web Services Identity and Access Management (IAM) identity-based policies for\n S3 Express One Zone in the Amazon S3 User Guide.

    \n
  • \n
\n
\n
Encryption
\n
\n
    \n
  • \n

    \n General purpose buckets -\n For information about using\n server-side encryption with customer-provided encryption keys with the\n UploadPartCopy operation, see CopyObject and\n UploadPart.

    \n
  • \n
  • \n

    \n Directory buckets -\n For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). For more\n information, see Protecting data with server-side encryption in the Amazon S3 User Guide.

    \n \n

    For directory buckets, when you perform a\n CreateMultipartUpload operation and an\n UploadPartCopy operation, the request headers you provide\n in the CreateMultipartUpload request must match the default\n encryption configuration of the destination bucket.

    \n
    \n

    S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets \nto directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through UploadPartCopy. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.

    \n
  • \n
\n
\n
Special errors
\n
\n
    \n
  • \n

    Error Code: NoSuchUpload\n

    \n
      \n
    • \n

      Description: The specified multipart upload does not exist. The\n upload ID might be invalid, or the multipart upload might have been\n aborted or completed.

      \n
    • \n
    • \n

      HTTP Status Code: 404 Not Found

      \n
    • \n
    \n
  • \n
  • \n

    Error Code: InvalidRequest\n

    \n
      \n
    • \n

      Description: The specified copy source is not supported as a\n byte-range copy source.

      \n
    • \n
    • \n

      HTTP Status Code: 400 Bad Request

      \n
    • \n
    \n
  • \n
\n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket-name.s3express-zone-id.region-code.amazonaws.com.

\n
\n
\n

The following operations are related to UploadPartCopy:

\n ", "smithy.api#examples": [ { "title": "To upload a part by copying byte range from an existing object as data source", @@ -35925,28 +36123,35 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This header specifies the Base64 encoded, 64-bit\n CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded\n with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

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

The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded\n with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated\n with multipart uploads, see \n Checking object integrity in the Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, @@ -36021,7 +36226,7 @@ "ContentMD5": { "target": "com.amazonaws.s3#ContentMD5", "traits": { - "smithy.api#documentation": "

The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated\n when using the command from the CLI. This parameter is required if object lock parameters\n are specified.

\n \n

This functionality is not supported for directory buckets.

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

The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated\n when using the command from the CLI. This parameter is required if object lock parameters\n are specified.

\n \n

This functionality is not supported for directory buckets.

\n
", "smithy.api#httpHeader": "Content-MD5" } }, @@ -36035,28 +36240,35 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This header specifies the Base64 encoded, 64-bit\n CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

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

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent.\n This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see\n Checking object integrity in the\n Amazon S3 User Guide.

", "smithy.api#httpHeader": "x-amz-checksum-sha256" } }, @@ -36337,28 +36549,35 @@ "ChecksumCRC32": { "target": "com.amazonaws.s3#ChecksumCRC32", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32\n checksum of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

\n

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

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32\n checksum of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

\n

", "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-checksum-crc32" } }, "ChecksumCRC32C": { "target": "com.amazonaws.s3#ChecksumCRC32C", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C\n checksum of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

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

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C\n checksum of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

", "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-checksum-crc32c" } }, + "ChecksumCRC64NVME": { + "target": "com.amazonaws.s3#ChecksumCRC64NVME", + "traits": { + "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This header specifies the Base64 encoded, 64-bit\n CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

", + "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-checksum-crc64nvme" + } + }, "ChecksumSHA1": { "target": "com.amazonaws.s3#ChecksumSHA1", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1\n digest of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

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

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1\n digest of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

", "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-checksum-sha1" } }, "ChecksumSHA256": { "target": "com.amazonaws.s3#ChecksumSHA256", "traits": { - "smithy.api#documentation": "

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256\n digest of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

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

This header can be used as a data integrity check to verify that the data received is\n the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256\n digest of the object returned by the Object Lambda function. This may not match the\n checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values\n only when the original GetObject request required checksum validation. For\n more information about checksums, see Checking object\n integrity in the Amazon S3 User Guide.

\n

Only one checksum header can be specified at a time. If you supply multiple checksum\n headers, this request will fail.

", "smithy.api#httpHeader": "x-amz-fwd-header-x-amz-checksum-sha256" } }, diff --git a/aws-models/sdk-endpoints.json b/aws-models/sdk-endpoints.json index 37297d3cca1d..d0a69877c0f4 100644 --- a/aws-models/sdk-endpoints.json +++ b/aws-models/sdk-endpoints.json @@ -2924,6 +2924,7 @@ "ap-southeast-3" : { }, "ap-southeast-4" : { }, "ap-southeast-5" : { }, + "ap-southeast-7" : { }, "ca-central-1" : { }, "ca-west-1" : { }, "eu-central-1" : { }, @@ -18850,6 +18851,8 @@ "ap-southeast-2" : { }, "ap-southeast-3" : { }, "ap-southeast-4" : { }, + "ap-southeast-5" : { }, + "ap-southeast-7" : { }, "ca-central-1" : { }, "ca-west-1" : { }, "eu-central-1" : { }, @@ -18891,6 +18894,7 @@ "il-central-1" : { }, "me-central-1" : { }, "me-south-1" : { }, + "mx-central-1" : { }, "sa-east-1" : { }, "us-east-1" : { "variants" : [ { diff --git a/aws-models/security-ir.json b/aws-models/security-ir.json index b52431e02867..368387ee414e 100644 --- a/aws-models/security-ir.json +++ b/aws-models/security-ir.json @@ -4983,7 +4983,7 @@ "type": "string", "traits": { "smithy.api#length": { - "min": 0, + "min": 1, "max": 500 } } diff --git a/aws-models/sesv2.json b/aws-models/sesv2.json index b0dd599785a7..cee7ee3e0237 100644 --- a/aws-models/sesv2.json +++ b/aws-models/sesv2.json @@ -10173,6 +10173,12 @@ "traits": { "smithy.api#enumValue": "BIMI" } + }, + "COMPLAINT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLAINT" + } } } }, diff --git a/aws-models/workspaces-thin-client.json b/aws-models/workspaces-thin-client.json index aa00d2b127d9..9e0e1bfea5f9 100644 --- a/aws-models/workspaces-thin-client.json +++ b/aws-models/workspaces-thin-client.json @@ -1710,7 +1710,8 @@ "type": { "target": "com.amazonaws.workspacesthinclient#MaintenanceWindowType", "traits": { - "smithy.api#documentation": "

An option to select the default or custom maintenance window.

" + "smithy.api#documentation": "

An option to select the default or custom maintenance window.

", + "smithy.api#required": {} } }, "startTimeHour": { diff --git a/aws-models/workspaces.json b/aws-models/workspaces.json index 890c67e04cfb..b7fb435053d3 100644 --- a/aws-models/workspaces.json +++ b/aws-models/workspaces.json @@ -1432,6 +1432,18 @@ "smithy.api#enumValue": "POWERPRO" } }, + "GENERALPURPOSE_4XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GENERALPURPOSE_4XLARGE" + } + }, + "GENERALPURPOSE_8XLARGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GENERALPURPOSE_8XLARGE" + } + }, "GRAPHICSPRO": { "target": "smithy.api#Unit", "traits": { diff --git a/sdk/apigateway/src/client/create_base_path_mapping.rs b/sdk/apigateway/src/client/create_base_path_mapping.rs index 22d47919c933..7ddfff58f5bc 100644 --- a/sdk/apigateway/src/client/create_base_path_mapping.rs +++ b/sdk/apigateway/src/client/create_base_path_mapping.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`domain_name(impl Into)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::domain_name) / [`set_domain_name(Option)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::set_domain_name):
required: **true**

The domain name of the BasePathMapping resource to create.


- /// - [`domain_name_id(impl Into)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::domain_name_id) / [`set_domain_name_id(Option)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::set_domain_name_id):
required: **false**

The identifier for the domain name resource. Supported only for private custom domain names.


+ /// - [`domain_name_id(impl Into)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::domain_name_id) / [`set_domain_name_id(Option)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::set_domain_name_id):
required: **false**

The identifier for the domain name resource. Required for private custom domain names.


/// - [`base_path(impl Into)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::base_path) / [`set_base_path(Option)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::set_base_path):
required: **false**

The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.


/// - [`rest_api_id(impl Into)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::rest_api_id) / [`set_rest_api_id(Option)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::set_rest_api_id):
required: **true**

The string identifier of the associated RestApi.


/// - [`stage(impl Into)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::stage) / [`set_stage(Option)`](crate::operation::create_base_path_mapping::builders::CreateBasePathMappingFluentBuilder::set_stage):
required: **false**

The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.


diff --git a/sdk/apigateway/src/client/get_domain_name.rs b/sdk/apigateway/src/client/get_domain_name.rs index c5fb9200fdec..6490cad75a73 100644 --- a/sdk/apigateway/src/client/get_domain_name.rs +++ b/sdk/apigateway/src/client/get_domain_name.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`domain_name(impl Into)`](crate::operation::get_domain_name::builders::GetDomainNameFluentBuilder::domain_name) / [`set_domain_name(Option)`](crate::operation::get_domain_name::builders::GetDomainNameFluentBuilder::set_domain_name):
required: **true**

The name of the DomainName resource.


- /// - [`domain_name_id(impl Into)`](crate::operation::get_domain_name::builders::GetDomainNameFluentBuilder::domain_name_id) / [`set_domain_name_id(Option)`](crate::operation::get_domain_name::builders::GetDomainNameFluentBuilder::set_domain_name_id):
required: **false**

The identifier for the domain name resource. Supported only for private custom domain names.


+ /// - [`domain_name_id(impl Into)`](crate::operation::get_domain_name::builders::GetDomainNameFluentBuilder::domain_name_id) / [`set_domain_name_id(Option)`](crate::operation::get_domain_name::builders::GetDomainNameFluentBuilder::set_domain_name_id):
required: **false**

The identifier for the domain name resource. Required for private custom domain names.


/// - On success, responds with [`GetDomainNameOutput`](crate::operation::get_domain_name::GetDomainNameOutput) with field(s): /// - [`domain_name(Option)`](crate::operation::get_domain_name::GetDomainNameOutput::domain_name):

The custom domain name as an API host name, for example, my-api.example.com.

/// - [`domain_name_id(Option)`](crate::operation::get_domain_name::GetDomainNameOutput::domain_name_id):

The identifier for the domain name resource. Supported only for private custom domain names.

diff --git a/sdk/apigateway/src/operation/create_base_path_mapping/_create_base_path_mapping_input.rs b/sdk/apigateway/src/operation/create_base_path_mapping/_create_base_path_mapping_input.rs index 038d993797e4..c576da8e9681 100644 --- a/sdk/apigateway/src/operation/create_base_path_mapping/_create_base_path_mapping_input.rs +++ b/sdk/apigateway/src/operation/create_base_path_mapping/_create_base_path_mapping_input.rs @@ -6,7 +6,7 @@ pub struct CreateBasePathMappingInput { ///

The domain name of the BasePathMapping resource to create.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub domain_name_id: ::std::option::Option<::std::string::String>, ///

The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.

pub base_path: ::std::option::Option<::std::string::String>, @@ -20,7 +20,7 @@ impl CreateBasePathMappingInput { pub fn domain_name(&self) -> ::std::option::Option<&str> { self.domain_name.as_deref() } - ///

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub fn domain_name_id(&self) -> ::std::option::Option<&str> { self.domain_name_id.as_deref() } @@ -70,17 +70,17 @@ impl CreateBasePathMappingInputBuilder { pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> { &self.domain_name } - ///

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub fn get_domain_name_id(&self) -> &::std::option::Option<::std::string::String> { &self.domain_name_id } diff --git a/sdk/apigateway/src/operation/create_base_path_mapping/builders.rs b/sdk/apigateway/src/operation/create_base_path_mapping/builders.rs index f311275f3ce9..a9d9c6dafeca 100644 --- a/sdk/apigateway/src/operation/create_base_path_mapping/builders.rs +++ b/sdk/apigateway/src/operation/create_base_path_mapping/builders.rs @@ -122,17 +122,17 @@ impl CreateBasePathMappingFluentBuilder { pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_domain_name() } - ///

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub fn get_domain_name_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_domain_name_id() } diff --git a/sdk/apigateway/src/operation/get_domain_name/_get_domain_name_input.rs b/sdk/apigateway/src/operation/get_domain_name/_get_domain_name_input.rs index 360cd4378f62..01d0db260912 100644 --- a/sdk/apigateway/src/operation/get_domain_name/_get_domain_name_input.rs +++ b/sdk/apigateway/src/operation/get_domain_name/_get_domain_name_input.rs @@ -6,7 +6,7 @@ pub struct GetDomainNameInput { ///

The name of the DomainName resource.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub domain_name_id: ::std::option::Option<::std::string::String>, } impl GetDomainNameInput { @@ -14,7 +14,7 @@ impl GetDomainNameInput { pub fn domain_name(&self) -> ::std::option::Option<&str> { self.domain_name.as_deref() } - ///

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub fn domain_name_id(&self) -> ::std::option::Option<&str> { self.domain_name_id.as_deref() } @@ -49,17 +49,17 @@ impl GetDomainNameInputBuilder { pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> { &self.domain_name } - ///

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub fn get_domain_name_id(&self) -> &::std::option::Option<::std::string::String> { &self.domain_name_id } diff --git a/sdk/apigateway/src/operation/get_domain_name/builders.rs b/sdk/apigateway/src/operation/get_domain_name/builders.rs index 095a30403e8a..f99efc884472 100644 --- a/sdk/apigateway/src/operation/get_domain_name/builders.rs +++ b/sdk/apigateway/src/operation/get_domain_name/builders.rs @@ -122,17 +122,17 @@ impl GetDomainNameFluentBuilder { pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_domain_name() } - ///

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

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

The identifier for the domain name resource. Supported only for private custom domain names.

+ ///

The identifier for the domain name resource. Required for private custom domain names.

pub fn get_domain_name_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_domain_name_id() } diff --git a/sdk/bedrockagentruntime/src/client/invoke_inline_agent.rs b/sdk/bedrockagentruntime/src/client/invoke_inline_agent.rs index 9dc64dc5c808..9bfe429ba083 100644 --- a/sdk/bedrockagentruntime/src/client/invoke_inline_agent.rs +++ b/sdk/bedrockagentruntime/src/client/invoke_inline_agent.rs @@ -17,6 +17,7 @@ impl super::Client { /// - [`guardrail_configuration(GuardrailConfigurationWithArn)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::guardrail_configuration) / [`set_guardrail_configuration(Option)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::set_guardrail_configuration):
required: **false**

The guardrails to assign to the inline agent.


/// - [`prompt_override_configuration(PromptOverrideConfiguration)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::prompt_override_configuration) / [`set_prompt_override_configuration(Option)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::set_prompt_override_configuration):
required: **false**

Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.


/// - [`bedrock_model_configurations(InlineBedrockModelConfigurations)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::bedrock_model_configurations) / [`set_bedrock_model_configurations(Option)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::set_bedrock_model_configurations):
required: **false**

Model settings for the request.


+ /// - [`streaming_configurations(StreamingConfigurations)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::streaming_configurations) / [`set_streaming_configurations(Option)`](crate::operation::invoke_inline_agent::builders::InvokeInlineAgentFluentBuilder::set_streaming_configurations):
required: **false**

Specifies the configurations for streaming.

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.


/// - On success, responds with [`InvokeInlineAgentOutput`](crate::operation::invoke_inline_agent::InvokeInlineAgentOutput) with field(s): /// - [`completion(EventReceiver)`](crate::operation::invoke_inline_agent::InvokeInlineAgentOutput::completion):

/// - [`content_type(String)`](crate::operation::invoke_inline_agent::InvokeInlineAgentOutput::content_type):

The MIME type of the input data in the request. The default value is application/json.

diff --git a/sdk/bedrockagentruntime/src/operation/invoke_agent/builders.rs b/sdk/bedrockagentruntime/src/operation/invoke_agent/builders.rs index 5f52aa9a3bc1..9684c032d662 100644 --- a/sdk/bedrockagentruntime/src/operation/invoke_agent/builders.rs +++ b/sdk/bedrockagentruntime/src/operation/invoke_agent/builders.rs @@ -23,7 +23,6 @@ impl crate::operation::invoke_agent::builders::InvokeAgentInputBuilder { /// Fluent builder constructing a request to `InvokeAgent`. /// /// -///

The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeAgent.

///
///

Sends a prompt for the agent to process and respond to. Note the following fields for the request:

///
    @@ -46,7 +45,8 @@ impl crate::operation::invoke_agent::builders::InvokeAgentInputBuilder { ///
  • ///

    In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group.

  • ///
-///

The response is returned in the bytes field of the chunk object.

+///

The response contains both chunk and trace attributes.

+///

The final response is returned in the bytes field of the chunk object. The InvokeAgent returns one chunk for the entire interaction.

///
    ///
  • ///

    The attribution object contains citations for parts of the response.

  • diff --git a/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/_invoke_inline_agent_input.rs b/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/_invoke_inline_agent_input.rs index 0da5ae01216f..cea1b16d578a 100644 --- a/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/_invoke_inline_agent_input.rs +++ b/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/_invoke_inline_agent_input.rs @@ -36,6 +36,10 @@ pub struct InvokeInlineAgentInput { pub prompt_override_configuration: ::std::option::Option, ///

    Model settings for the request.

    pub bedrock_model_configurations: ::std::option::Option, + ///

    Specifies the configurations for streaming.

    + ///

    To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

    + ///
    + pub streaming_configurations: ::std::option::Option, } impl InvokeInlineAgentInput { ///

    The unique identifier of the session. Use the same value across requests to continue the same conversation.

    @@ -103,6 +107,12 @@ impl InvokeInlineAgentInput { pub fn bedrock_model_configurations(&self) -> ::std::option::Option<&crate::types::InlineBedrockModelConfigurations> { self.bedrock_model_configurations.as_ref() } + ///

    Specifies the configurations for streaming.

    + ///

    To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

    + ///
    + pub fn streaming_configurations(&self) -> ::std::option::Option<&crate::types::StreamingConfigurations> { + self.streaming_configurations.as_ref() + } } impl ::std::fmt::Debug for InvokeInlineAgentInput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -121,6 +131,7 @@ impl ::std::fmt::Debug for InvokeInlineAgentInput { formatter.field("guardrail_configuration", &self.guardrail_configuration); formatter.field("prompt_override_configuration", &"*** Sensitive Data Redacted ***"); formatter.field("bedrock_model_configurations", &self.bedrock_model_configurations); + formatter.field("streaming_configurations", &self.streaming_configurations); formatter.finish() } } @@ -149,6 +160,7 @@ pub struct InvokeInlineAgentInputBuilder { pub(crate) guardrail_configuration: ::std::option::Option, pub(crate) prompt_override_configuration: ::std::option::Option, pub(crate) bedrock_model_configurations: ::std::option::Option, + pub(crate) streaming_configurations: ::std::option::Option, } impl InvokeInlineAgentInputBuilder { ///

    The unique identifier of the session. Use the same value across requests to continue the same conversation.

    @@ -377,6 +389,26 @@ impl InvokeInlineAgentInputBuilder { pub fn get_bedrock_model_configurations(&self) -> &::std::option::Option { &self.bedrock_model_configurations } + ///

    Specifies the configurations for streaming.

    + ///

    To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

    + ///
    + pub fn streaming_configurations(mut self, input: crate::types::StreamingConfigurations) -> Self { + self.streaming_configurations = ::std::option::Option::Some(input); + self + } + ///

    Specifies the configurations for streaming.

    + ///

    To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

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

    Specifies the configurations for streaming.

    + ///

    To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

    + ///
    + pub fn get_streaming_configurations(&self) -> &::std::option::Option { + &self.streaming_configurations + } /// Consumes the builder and constructs a [`InvokeInlineAgentInput`](crate::operation::invoke_inline_agent::InvokeInlineAgentInput). pub fn build( self, @@ -396,6 +428,7 @@ impl InvokeInlineAgentInputBuilder { guardrail_configuration: self.guardrail_configuration, prompt_override_configuration: self.prompt_override_configuration, bedrock_model_configurations: self.bedrock_model_configurations, + streaming_configurations: self.streaming_configurations, }) } } @@ -416,6 +449,7 @@ impl ::std::fmt::Debug for InvokeInlineAgentInputBuilder { formatter.field("guardrail_configuration", &self.guardrail_configuration); formatter.field("prompt_override_configuration", &"*** Sensitive Data Redacted ***"); formatter.field("bedrock_model_configurations", &self.bedrock_model_configurations); + formatter.field("streaming_configurations", &self.streaming_configurations); formatter.finish() } } diff --git a/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/builders.rs b/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/builders.rs index 3bb74ef5008a..6217108d3559 100644 --- a/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/builders.rs +++ b/sdk/bedrockagentruntime/src/operation/invoke_inline_agent/builders.rs @@ -37,7 +37,6 @@ impl crate::operation::invoke_inline_agent::builders::InvokeInlineAgentInputBuil ///
  • ///

    The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.

  • ///
-///

The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeInlineAgent.

///
#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct InvokeInlineAgentFluentBuilder { @@ -345,4 +344,24 @@ impl InvokeInlineAgentFluentBuilder { pub fn get_bedrock_model_configurations(&self) -> &::std::option::Option { self.inner.get_bedrock_model_configurations() } + ///

Specifies the configurations for streaming.

+ ///

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

+ ///
+ pub fn streaming_configurations(mut self, input: crate::types::StreamingConfigurations) -> Self { + self.inner = self.inner.streaming_configurations(input); + self + } + ///

Specifies the configurations for streaming.

+ ///

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

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

Specifies the configurations for streaming.

+ ///

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.

+ ///
+ pub fn get_streaming_configurations(&self) -> &::std::option::Option { + self.inner.get_streaming_configurations() + } } diff --git a/sdk/bedrockagentruntime/src/protocol_serde/shape_invoke_inline_agent_input.rs b/sdk/bedrockagentruntime/src/protocol_serde/shape_invoke_inline_agent_input.rs index 0fe7c8d3d2f0..c86228afecf3 100644 --- a/sdk/bedrockagentruntime/src/protocol_serde/shape_invoke_inline_agent_input.rs +++ b/sdk/bedrockagentruntime/src/protocol_serde/shape_invoke_inline_agent_input.rs @@ -75,5 +75,11 @@ pub fn ser_invoke_inline_agent_input_input( crate::protocol_serde::shape_prompt_override_configuration::ser_prompt_override_configuration(&mut object_23, var_22)?; object_23.finish(); } + if let Some(var_24) = &input.streaming_configurations { + #[allow(unused_mut)] + let mut object_25 = object.key("streamingConfigurations").start_object(); + crate::protocol_serde::shape_streaming_configurations::ser_streaming_configurations(&mut object_25, var_24)?; + object_25.finish(); + } Ok(()) } diff --git a/sdk/bedrockagentruntime/src/types.rs b/sdk/bedrockagentruntime/src/types.rs index d8409b84e7d3..601641385191 100644 --- a/sdk/bedrockagentruntime/src/types.rs +++ b/sdk/bedrockagentruntime/src/types.rs @@ -345,6 +345,8 @@ pub use crate::types::_inline_agent_payload_part::InlineAgentPayloadPart; pub use crate::types::_attribution::Attribution; +pub use crate::types::_streaming_configurations::StreamingConfigurations; + pub use crate::types::_inline_bedrock_model_configurations::InlineBedrockModelConfigurations; pub use crate::types::_prompt_override_configuration::PromptOverrideConfiguration; @@ -403,8 +405,6 @@ pub use crate::types::_caller::Caller; pub use crate::types::_payload_part::PayloadPart; -pub use crate::types::_streaming_configurations::StreamingConfigurations; - pub use crate::types::_bedrock_model_configurations::BedrockModelConfigurations; pub use crate::types::_session_state::SessionState; diff --git a/sdk/bedrockagentruntime/src/types/builders.rs b/sdk/bedrockagentruntime/src/types/builders.rs index 59e93e4c116d..8ed46983a467 100644 --- a/sdk/bedrockagentruntime/src/types/builders.rs +++ b/sdk/bedrockagentruntime/src/types/builders.rs @@ -241,6 +241,8 @@ pub use crate::types::_inline_agent_payload_part::InlineAgentPayloadPartBuilder; pub use crate::types::_attribution::AttributionBuilder; +pub use crate::types::_streaming_configurations::StreamingConfigurationsBuilder; + pub use crate::types::_inline_bedrock_model_configurations::InlineBedrockModelConfigurationsBuilder; pub use crate::types::_prompt_override_configuration::PromptOverrideConfigurationBuilder; @@ -275,8 +277,6 @@ pub use crate::types::_trace_part::TracePartBuilder; pub use crate::types::_payload_part::PayloadPartBuilder; -pub use crate::types::_streaming_configurations::StreamingConfigurationsBuilder; - pub use crate::types::_bedrock_model_configurations::BedrockModelConfigurationsBuilder; pub use crate::types::_session_state::SessionStateBuilder; diff --git a/sdk/cognitoidentity/src/config/endpoint.rs b/sdk/cognitoidentity/src/config/endpoint.rs index c5e7bcd0ed28..ac0e745401d1 100644 --- a/sdk/cognitoidentity/src/config/endpoint.rs +++ b/sdk/cognitoidentity/src/config/endpoint.rs @@ -6,369 +6,249 @@ pub use ::aws_smithy_types::endpoint::Endpoint; #[cfg(test)] mod test { - /// For region ap-northeast-1 with FIPS disabled and DualStack disabled + /// For region us-east-1 with FIPS disabled and DualStack disabled #[test] fn test_1() { let params = crate::config::endpoint::Params::builder() - .region("ap-northeast-1".to_string()) + .region("us-east-1".to_string()) .use_fips(false) .use_dual_stack(false) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.ap-northeast-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.ap-northeast-1.amazonaws.com") + .url("https://cognito-identity.us-east-1.amazonaws.com") .build() ); } - /// For region ap-northeast-2 with FIPS disabled and DualStack disabled + /// For region us-east-1 with FIPS enabled and DualStack disabled #[test] fn test_2() { let params = crate::config::endpoint::Params::builder() - .region("ap-northeast-2".to_string()) - .use_fips(false) + .region("us-east-1".to_string()) + .use_fips(true) .use_dual_stack(false) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.ap-northeast-2.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.ap-northeast-2.amazonaws.com") + .url("https://cognito-identity-fips.us-east-1.amazonaws.com") .build() ); } - /// For region ap-south-1 with FIPS disabled and DualStack disabled + /// For region us-east-1 with FIPS disabled and DualStack enabled #[test] fn test_3() { let params = crate::config::endpoint::Params::builder() - .region("ap-south-1".to_string()) + .region("us-east-1".to_string()) .use_fips(false) - .use_dual_stack(false) + .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.ap-south-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.ap-south-1.amazonaws.com") + .url("https://cognito-identity.us-east-1.amazonaws.com") .build() ); } - /// For region ap-southeast-1 with FIPS disabled and DualStack disabled + /// For region us-east-1 with FIPS enabled and DualStack enabled #[test] fn test_4() { let params = crate::config::endpoint::Params::builder() - .region("ap-southeast-1".to_string()) - .use_fips(false) - .use_dual_stack(false) + .region("us-east-1".to_string()) + .use_fips(true) + .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.ap-southeast-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.ap-southeast-1.amazonaws.com") + .url("https://cognito-identity-fips.us-east-1.amazonaws.com") .build() ); } - /// For region ap-southeast-2 with FIPS disabled and DualStack disabled + /// For region us-east-2 with FIPS disabled and DualStack disabled #[test] fn test_5() { let params = crate::config::endpoint::Params::builder() - .region("ap-southeast-2".to_string()) + .region("us-east-2".to_string()) .use_fips(false) .use_dual_stack(false) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.ap-southeast-2.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-2.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.ap-southeast-2.amazonaws.com") + .url("https://cognito-identity.us-east-2.amazonaws.com") .build() ); } - /// For region ca-central-1 with FIPS disabled and DualStack disabled + /// For region us-east-2 with FIPS enabled and DualStack disabled #[test] fn test_6() { let params = crate::config::endpoint::Params::builder() - .region("ca-central-1".to_string()) - .use_fips(false) + .region("us-east-2".to_string()) + .use_fips(true) .use_dual_stack(false) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.ca-central-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-2.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.ca-central-1.amazonaws.com") + .url("https://cognito-identity-fips.us-east-2.amazonaws.com") .build() ); } - /// For region eu-central-1 with FIPS disabled and DualStack disabled + /// For region us-east-2 with FIPS disabled and DualStack enabled #[test] fn test_7() { let params = crate::config::endpoint::Params::builder() - .region("eu-central-1".to_string()) + .region("us-east-2".to_string()) .use_fips(false) - .use_dual_stack(false) + .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.eu-central-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-2.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.eu-central-1.amazonaws.com") + .url("https://cognito-identity.us-east-2.amazonaws.com") .build() ); } - /// For region eu-north-1 with FIPS disabled and DualStack disabled + /// For region us-east-2 with FIPS enabled and DualStack enabled #[test] fn test_8() { let params = crate::config::endpoint::Params::builder() - .region("eu-north-1".to_string()) - .use_fips(false) - .use_dual_stack(false) + .region("us-east-2".to_string()) + .use_fips(true) + .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.eu-north-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-2.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.eu-north-1.amazonaws.com") + .url("https://cognito-identity-fips.us-east-2.amazonaws.com") .build() ); } - /// For region eu-west-1 with FIPS disabled and DualStack disabled + /// For region us-west-1 with FIPS disabled and DualStack disabled #[test] fn test_9() { let params = crate::config::endpoint::Params::builder() - .region("eu-west-1".to_string()) + .region("us-west-1".to_string()) .use_fips(false) .use_dual_stack(false) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.eu-west-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-west-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.eu-west-1.amazonaws.com") + .url("https://cognito-identity.us-west-1.amazonaws.com") .build() ); } - /// For region eu-west-2 with FIPS disabled and DualStack disabled + /// For region us-west-1 with FIPS enabled and DualStack disabled #[test] fn test_10() { let params = crate::config::endpoint::Params::builder() - .region("eu-west-2".to_string()) - .use_fips(false) + .region("us-west-1".to_string()) + .use_fips(true) .use_dual_stack(false) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.eu-west-2.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-west-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.eu-west-2.amazonaws.com") + .url("https://cognito-identity-fips.us-west-1.amazonaws.com") .build() ); } - /// For region eu-west-3 with FIPS disabled and DualStack disabled + /// For region us-west-1 with FIPS disabled and DualStack enabled #[test] fn test_11() { let params = crate::config::endpoint::Params::builder() - .region("eu-west-3".to_string()) + .region("us-west-1".to_string()) .use_fips(false) - .use_dual_stack(false) + .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.eu-west-3.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-west-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.eu-west-3.amazonaws.com") + .url("https://cognito-identity.us-west-1.amazonaws.com") .build() ); } - /// For region me-south-1 with FIPS disabled and DualStack disabled + /// For region us-west-1 with FIPS enabled and DualStack enabled #[test] fn test_12() { - let params = crate::config::endpoint::Params::builder() - .region("me-south-1".to_string()) - .use_fips(false) - .use_dual_stack(false) - .build() - .expect("invalid params"); - let resolver = crate::config::endpoint::DefaultResolver::new(); - let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.me-south-1.amazonaws.com"); - assert_eq!( - endpoint, - ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.me-south-1.amazonaws.com") - .build() - ); - } - - /// For region sa-east-1 with FIPS disabled and DualStack disabled - #[test] - fn test_13() { - let params = crate::config::endpoint::Params::builder() - .region("sa-east-1".to_string()) - .use_fips(false) - .use_dual_stack(false) - .build() - .expect("invalid params"); - let resolver = crate::config::endpoint::DefaultResolver::new(); - let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.sa-east-1.amazonaws.com"); - assert_eq!( - endpoint, - ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.sa-east-1.amazonaws.com") - .build() - ); - } - - /// For region us-east-1 with FIPS disabled and DualStack disabled - #[test] - fn test_14() { - let params = crate::config::endpoint::Params::builder() - .region("us-east-1".to_string()) - .use_fips(false) - .use_dual_stack(false) - .build() - .expect("invalid params"); - let resolver = crate::config::endpoint::DefaultResolver::new(); - let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-1.amazonaws.com"); - assert_eq!( - endpoint, - ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.us-east-1.amazonaws.com") - .build() - ); - } - - /// For region us-east-1 with FIPS enabled and DualStack disabled - #[test] - fn test_15() { - let params = crate::config::endpoint::Params::builder() - .region("us-east-1".to_string()) - .use_fips(true) - .use_dual_stack(false) - .build() - .expect("invalid params"); - let resolver = crate::config::endpoint::DefaultResolver::new(); - let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-1.amazonaws.com"); - assert_eq!( - endpoint, - ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity-fips.us-east-1.amazonaws.com") - .build() - ); - } - - /// For region us-east-2 with FIPS disabled and DualStack disabled - #[test] - fn test_16() { - let params = crate::config::endpoint::Params::builder() - .region("us-east-2".to_string()) - .use_fips(false) - .use_dual_stack(false) - .build() - .expect("invalid params"); - let resolver = crate::config::endpoint::DefaultResolver::new(); - let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-2.amazonaws.com"); - assert_eq!( - endpoint, - ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.us-east-2.amazonaws.com") - .build() - ); - } - - /// For region us-east-2 with FIPS enabled and DualStack disabled - #[test] - fn test_17() { - let params = crate::config::endpoint::Params::builder() - .region("us-east-2".to_string()) - .use_fips(true) - .use_dual_stack(false) - .build() - .expect("invalid params"); - let resolver = crate::config::endpoint::DefaultResolver::new(); - let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-2.amazonaws.com"); - assert_eq!( - endpoint, - ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity-fips.us-east-2.amazonaws.com") - .build() - ); - } - - /// For region us-west-1 with FIPS disabled and DualStack disabled - #[test] - fn test_18() { let params = crate::config::endpoint::Params::builder() .region("us-west-1".to_string()) - .use_fips(false) - .use_dual_stack(false) + .use_fips(true) + .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-west-1.amazonaws.com"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-west-1.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.us-west-1.amazonaws.com") + .url("https://cognito-identity-fips.us-west-1.amazonaws.com") .build() ); } /// For region us-west-2 with FIPS disabled and DualStack disabled #[test] - fn test_19() { + fn test_13() { let params = crate::config::endpoint::Params::builder() .region("us-west-2".to_string()) .use_fips(false) @@ -388,7 +268,7 @@ mod test { /// For region us-west-2 with FIPS enabled and DualStack disabled #[test] - fn test_20() { + fn test_14() { let params = crate::config::endpoint::Params::builder() .region("us-west-2".to_string()) .use_fips(true) @@ -406,49 +286,49 @@ mod test { ); } - /// For region us-east-1 with FIPS enabled and DualStack enabled + /// For region us-west-2 with FIPS disabled and DualStack enabled #[test] - fn test_21() { + fn test_15() { let params = crate::config::endpoint::Params::builder() - .region("us-east-1".to_string()) - .use_fips(true) + .region("us-west-2".to_string()) + .use_fips(false) .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-east-1.api.aws"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-west-2.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity-fips.us-east-1.api.aws") + .url("https://cognito-identity.us-west-2.amazonaws.com") .build() ); } - /// For region us-east-1 with FIPS disabled and DualStack enabled + /// For region us-west-2 with FIPS enabled and DualStack enabled #[test] - fn test_22() { + fn test_16() { let params = crate::config::endpoint::Params::builder() - .region("us-east-1".to_string()) - .use_fips(false) + .region("us-west-2".to_string()) + .use_fips(true) .use_dual_stack(true) .build() .expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); - let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity.us-east-1.api.aws"); + let endpoint = endpoint.expect("Expected valid endpoint: https://cognito-identity-fips.us-west-2.amazonaws.com"); assert_eq!( endpoint, ::aws_smithy_types::endpoint::Endpoint::builder() - .url("https://cognito-identity.us-east-1.api.aws") + .url("https://cognito-identity-fips.us-west-2.amazonaws.com") .build() ); } /// For region cn-north-1 with FIPS disabled and DualStack disabled #[test] - fn test_23() { + fn test_17() { let params = crate::config::endpoint::Params::builder() .region("cn-north-1".to_string()) .use_fips(false) @@ -468,7 +348,7 @@ mod test { /// For region cn-north-1 with FIPS enabled and DualStack enabled #[test] - fn test_24() { + fn test_18() { let params = crate::config::endpoint::Params::builder() .region("cn-north-1".to_string()) .use_fips(true) @@ -488,7 +368,7 @@ mod test { /// For region cn-north-1 with FIPS enabled and DualStack disabled #[test] - fn test_25() { + fn test_19() { let params = crate::config::endpoint::Params::builder() .region("cn-north-1".to_string()) .use_fips(true) @@ -508,7 +388,7 @@ mod test { /// For region cn-north-1 with FIPS disabled and DualStack enabled #[test] - fn test_26() { + fn test_20() { let params = crate::config::endpoint::Params::builder() .region("cn-north-1".to_string()) .use_fips(false) @@ -528,7 +408,7 @@ mod test { /// For region us-gov-west-1 with FIPS disabled and DualStack disabled #[test] - fn test_27() { + fn test_21() { let params = crate::config::endpoint::Params::builder() .region("us-gov-west-1".to_string()) .use_fips(false) @@ -548,7 +428,7 @@ mod test { /// For region us-gov-west-1 with FIPS enabled and DualStack disabled #[test] - fn test_28() { + fn test_22() { let params = crate::config::endpoint::Params::builder() .region("us-gov-west-1".to_string()) .use_fips(true) @@ -568,7 +448,7 @@ mod test { /// For region us-gov-east-1 with FIPS enabled and DualStack enabled #[test] - fn test_29() { + fn test_23() { let params = crate::config::endpoint::Params::builder() .region("us-gov-east-1".to_string()) .use_fips(true) @@ -588,7 +468,7 @@ mod test { /// For region us-gov-east-1 with FIPS enabled and DualStack disabled #[test] - fn test_30() { + fn test_24() { let params = crate::config::endpoint::Params::builder() .region("us-gov-east-1".to_string()) .use_fips(true) @@ -608,7 +488,7 @@ mod test { /// For region us-gov-east-1 with FIPS disabled and DualStack enabled #[test] - fn test_31() { + fn test_25() { let params = crate::config::endpoint::Params::builder() .region("us-gov-east-1".to_string()) .use_fips(false) @@ -628,7 +508,7 @@ mod test { /// For region us-gov-east-1 with FIPS disabled and DualStack disabled #[test] - fn test_32() { + fn test_26() { let params = crate::config::endpoint::Params::builder() .region("us-gov-east-1".to_string()) .use_fips(false) @@ -648,7 +528,7 @@ mod test { /// For region us-iso-east-1 with FIPS enabled and DualStack enabled #[test] - fn test_33() { + fn test_27() { let params = crate::config::endpoint::Params::builder() .region("us-iso-east-1".to_string()) .use_fips(true) @@ -666,7 +546,7 @@ mod test { /// For region us-iso-east-1 with FIPS enabled and DualStack disabled #[test] - fn test_34() { + fn test_28() { let params = crate::config::endpoint::Params::builder() .region("us-iso-east-1".to_string()) .use_fips(true) @@ -686,7 +566,7 @@ mod test { /// For region us-iso-east-1 with FIPS disabled and DualStack enabled #[test] - fn test_35() { + fn test_29() { let params = crate::config::endpoint::Params::builder() .region("us-iso-east-1".to_string()) .use_fips(false) @@ -701,7 +581,7 @@ mod test { /// For region us-iso-east-1 with FIPS disabled and DualStack disabled #[test] - fn test_36() { + fn test_30() { let params = crate::config::endpoint::Params::builder() .region("us-iso-east-1".to_string()) .use_fips(false) @@ -721,7 +601,7 @@ mod test { /// For region us-isob-east-1 with FIPS enabled and DualStack enabled #[test] - fn test_37() { + fn test_31() { let params = crate::config::endpoint::Params::builder() .region("us-isob-east-1".to_string()) .use_fips(true) @@ -739,7 +619,7 @@ mod test { /// For region us-isob-east-1 with FIPS enabled and DualStack disabled #[test] - fn test_38() { + fn test_32() { let params = crate::config::endpoint::Params::builder() .region("us-isob-east-1".to_string()) .use_fips(true) @@ -759,7 +639,7 @@ mod test { /// For region us-isob-east-1 with FIPS disabled and DualStack enabled #[test] - fn test_39() { + fn test_33() { let params = crate::config::endpoint::Params::builder() .region("us-isob-east-1".to_string()) .use_fips(false) @@ -774,7 +654,7 @@ mod test { /// For region us-isob-east-1 with FIPS disabled and DualStack disabled #[test] - fn test_40() { + fn test_34() { let params = crate::config::endpoint::Params::builder() .region("us-isob-east-1".to_string()) .use_fips(false) @@ -794,7 +674,7 @@ mod test { /// For custom endpoint with region set and fips disabled and dualstack disabled #[test] - fn test_41() { + fn test_35() { let params = crate::config::endpoint::Params::builder() .region("us-east-1".to_string()) .use_fips(false) @@ -813,7 +693,7 @@ mod test { /// For custom endpoint with region not set and fips disabled and dualstack disabled #[test] - fn test_42() { + fn test_36() { let params = crate::config::endpoint::Params::builder() .use_fips(false) .use_dual_stack(false) @@ -831,7 +711,7 @@ mod test { /// For custom endpoint with fips enabled and dualstack disabled #[test] - fn test_43() { + fn test_37() { let params = crate::config::endpoint::Params::builder() .region("us-east-1".to_string()) .use_fips(true) @@ -847,7 +727,7 @@ mod test { /// For custom endpoint with fips disabled and dualstack enabled #[test] - fn test_44() { + fn test_38() { let params = crate::config::endpoint::Params::builder() .region("us-east-1".to_string()) .use_fips(false) @@ -866,7 +746,7 @@ mod test { /// Missing region #[test] - fn test_45() { + fn test_39() { let params = crate::config::endpoint::Params::builder().build().expect("invalid params"); let resolver = crate::config::endpoint::DefaultResolver::new(); let endpoint = resolver.resolve_endpoint(¶ms); diff --git a/sdk/cognitoidentity/src/config/endpoint/internals.rs b/sdk/cognitoidentity/src/config/endpoint/internals.rs index 5d8672e5d437..f394d3da452b 100644 --- a/sdk/cognitoidentity/src/config/endpoint/internals.rs +++ b/sdk/cognitoidentity/src/config/endpoint/internals.rs @@ -41,6 +41,26 @@ pub(super) fn resolve_endpoint( if (*use_dual_stack) == (true) { if (true) == (partition_result.supports_fips()) { if (true) == (partition_result.supports_dual_stack()) { + if (region) == ("us-east-1") { + return Ok(::aws_smithy_types::endpoint::Endpoint::builder() + .url("https://cognito-identity-fips.us-east-1.amazonaws.com".to_string()) + .build()); + } + if (region) == ("us-east-2") { + return Ok(::aws_smithy_types::endpoint::Endpoint::builder() + .url("https://cognito-identity-fips.us-east-2.amazonaws.com".to_string()) + .build()); + } + if (region) == ("us-west-1") { + return Ok(::aws_smithy_types::endpoint::Endpoint::builder() + .url("https://cognito-identity-fips.us-west-1.amazonaws.com".to_string()) + .build()); + } + if (region) == ("us-west-2") { + return Ok(::aws_smithy_types::endpoint::Endpoint::builder() + .url("https://cognito-identity-fips.us-west-2.amazonaws.com".to_string()) + .build()); + } return Ok(::aws_smithy_types::endpoint::Endpoint::builder() .url({ let mut out = String::new(); @@ -81,6 +101,18 @@ pub(super) fn resolve_endpoint( } if (*use_dual_stack) == (true) { if (true) == (partition_result.supports_dual_stack()) { + if ("aws") == (partition_result.name()) { + return Ok(::aws_smithy_types::endpoint::Endpoint::builder() + .url({ + let mut out = String::new(); + out.push_str("https://cognito-identity."); + #[allow(clippy::needless_borrow)] + out.push_str(®ion); + out.push_str(".amazonaws.com"); + out + }) + .build()); + } return Ok(::aws_smithy_types::endpoint::Endpoint::builder() .url({ let mut out = String::new(); diff --git a/sdk/partnercentralselling/src/client.rs b/sdk/partnercentralselling/src/client.rs index db381e1de7d1..06f75e7d324c 100644 --- a/sdk/partnercentralselling/src/client.rs +++ b/sdk/partnercentralselling/src/client.rs @@ -56,6 +56,24 @@ pub(crate) struct Handle { /// [`aws_config::from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.from_env.html /// [`aws_config::load_from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.load_from_env.html /// [builder pattern]: https://rust-lang.github.io/api-guidelines/type-safety.html#builders-enable-construction-of-complex-values-c-builder +/// # Using the `Client` +/// +/// A client has a function for every operation that can be performed by the service. +/// For example, the [`ListTagsForResource`](crate::operation::list_tags_for_resource) operation has +/// a [`Client::list_tags_for_resource`], function which returns a builder for that operation. +/// The fluent builder ultimately has a `send()` function that returns an async future that +/// returns a result, as illustrated below: +/// +/// ```rust,ignore +/// let result = client.list_tags_for_resource() +/// .resource_arn("example") +/// .send() +/// .await; +/// ``` +/// +/// The underlying HTTP requests that get made by this can be modified with the `customize_operation` +/// function on the fluent builder. See the [`customize`](crate::client::customize) module for more +/// information. #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct Client { handle: ::std::sync::Arc, @@ -136,6 +154,29 @@ mod create_resource_snapshot_job; /// Operation customization and supporting types. /// +/// The underlying HTTP requests made during an operation can be customized +/// by calling the `customize()` method on the builder returned from a client +/// operation call. For example, this can be used to add an additional HTTP header: +/// +/// ```ignore +/// # async fn wrapper() -> ::std::result::Result<(), aws_sdk_partnercentralselling::Error> { +/// # let client: aws_sdk_partnercentralselling::Client = unimplemented!(); +/// use ::http::header::{HeaderName, HeaderValue}; +/// +/// let result = client.list_tags_for_resource() +/// .customize() +/// .mutate_request(|req| { +/// // Add `x-example-header` with value +/// req.headers_mut() +/// .insert( +/// HeaderName::from_static("x-example-header"), +/// HeaderValue::from_static("1"), +/// ); +/// }) +/// .send() +/// .await; +/// # } +/// ``` pub mod customize; mod delete_resource_snapshot_job; @@ -176,6 +217,8 @@ mod list_resource_snapshots; mod list_solutions; +mod list_tags_for_resource; + mod put_selling_system_settings; mod reject_engagement_invitation; @@ -190,4 +233,8 @@ mod stop_resource_snapshot_job; mod submit_opportunity; +mod tag_resource; + +mod untag_resource; + mod update_opportunity; diff --git a/sdk/partnercentralselling/src/client/create_opportunity.rs b/sdk/partnercentralselling/src/client/create_opportunity.rs index d56dea9670ce..2f04960edf96 100644 --- a/sdk/partnercentralselling/src/client/create_opportunity.rs +++ b/sdk/partnercentralselling/src/client/create_opportunity.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`catalog(impl Into)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::set_catalog):
required: **true**

Specifies the catalog associated with the request. This field takes a string value from a predefined list: AWS or Sandbox. The catalog determines which environment the opportunity is created in. Use AWS to create opportunities in the Amazon Web Services catalog, and Sandbox for testing in secure, isolated environments.


- /// - [`primary_needs_from_aws(PrimaryNeedFromAws)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::primary_needs_from_aws) / [`set_primary_needs_from_aws(Option>)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::set_primary_needs_from_aws):
required: **false**

Identifies the type of support the partner needs from Amazon Web Services.

Valid values:

  • Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.

  • Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.

  • Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.

  • Cosell—Pricing Assistance: Connect with an Amazon Web Services seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).

  • Cosell—Technical Consultation: Connect with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.

  • Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.

  • Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

  • Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.


+ /// - [`primary_needs_from_aws(PrimaryNeedFromAws)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::primary_needs_from_aws) / [`set_primary_needs_from_aws(Option>)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::set_primary_needs_from_aws):
required: **false**

Identifies the type of support the partner needs from Amazon Web Services.

Valid values:

  • Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.

  • Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.

  • Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.

  • Cosell—Pricing Assistance: Connect with an Amazon Web Services seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).

  • Cosell—Technical Consultation: Connect with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.

  • Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.

  • Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

  • Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.


/// - [`national_security(NationalSecurity)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::national_security) / [`set_national_security(Option)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::set_national_security):
required: **false**

Indicates whether the Opportunity pertains to a national security project. This field must be set to true only when the customer's industry is Government. Additional privacy and security measures apply during the review and management process for opportunities marked as NationalSecurity.


/// - [`partner_opportunity_identifier(impl Into)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::partner_opportunity_identifier) / [`set_partner_opportunity_identifier(Option)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::set_partner_opportunity_identifier):
required: **false**

Specifies the opportunity's unique identifier in the partner's CRM system. This value is essential to track and reconcile because it's included in the outbound payload to the partner.

This field allows partners to link an opportunity to their CRM, which helps to ensure seamless integration and accurate synchronization between the Partner Central API and the partner's internal systems.


/// - [`customer(Customer)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::customer) / [`set_customer(Option)`](crate::operation::create_opportunity::builders::CreateOpportunityFluentBuilder::set_customer):
required: **false**

Specifies customer details associated with the Opportunity.


diff --git a/sdk/partnercentralselling/src/client/create_resource_snapshot_job.rs b/sdk/partnercentralselling/src/client/create_resource_snapshot_job.rs index e10060a92bf1..76b980074c08 100644 --- a/sdk/partnercentralselling/src/client/create_resource_snapshot_job.rs +++ b/sdk/partnercentralselling/src/client/create_resource_snapshot_job.rs @@ -4,11 +4,12 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`catalog(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_catalog):
required: **true**

Specifies the catalog in which to create the snapshot job. Valid values are AWS and Sandbox.


- /// - [`client_token(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::client_token) / [`set_client_token(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_client_token):
required: **true**

Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.


+ /// - [`client_token(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::client_token) / [`set_client_token(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_client_token):
required: **true**

A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.


/// - [`engagement_identifier(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::engagement_identifier) / [`set_engagement_identifier(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_engagement_identifier):
required: **true**

Specifies the identifier of the engagement associated with the resource to be snapshotted.


- /// - [`resource_type(ResourceType)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::resource_type) / [`set_resource_type(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_resource_type):
required: **true**

The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.


- /// - [`resource_identifier(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::resource_identifier) / [`set_resource_identifier(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_resource_identifier):
required: **true**

Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.


+ /// - [`resource_type(ResourceType)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::resource_type) / [`set_resource_type(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_resource_type):
required: **true**

The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity


+ /// - [`resource_identifier(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::resource_identifier) / [`set_resource_identifier(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_resource_identifier):
required: **true**

Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.


/// - [`resource_snapshot_template_identifier(impl Into)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::resource_snapshot_template_identifier) / [`set_resource_snapshot_template_identifier(Option)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_resource_snapshot_template_identifier):
required: **true**

Specifies the name of the template that defines the schema for the snapshot.


+ /// - [`tags(Tag)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::create_resource_snapshot_job::builders::CreateResourceSnapshotJobFluentBuilder::set_tags):
required: **false**
A list of objects specifying each tag name and value.
/// - On success, responds with [`CreateResourceSnapshotJobOutput`](crate::operation::create_resource_snapshot_job::CreateResourceSnapshotJobOutput) with field(s): /// - [`id(Option)`](crate::operation::create_resource_snapshot_job::CreateResourceSnapshotJobOutput::id):

The unique identifier for the created snapshot job.

/// - [`arn(Option)`](crate::operation::create_resource_snapshot_job::CreateResourceSnapshotJobOutput::arn):

The Amazon Resource Name (ARN) of the created snapshot job.

diff --git a/sdk/partnercentralselling/src/client/get_opportunity.rs b/sdk/partnercentralselling/src/client/get_opportunity.rs index 9d55a79ec932..bff8ffe12e6e 100644 --- a/sdk/partnercentralselling/src/client/get_opportunity.rs +++ b/sdk/partnercentralselling/src/client/get_opportunity.rs @@ -7,7 +7,7 @@ impl super::Client { /// - [`identifier(impl Into)`](crate::operation::get_opportunity::builders::GetOpportunityFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::get_opportunity::builders::GetOpportunityFluentBuilder::set_identifier):
required: **true**

Read-only, system generated Opportunity unique identifier.


/// - On success, responds with [`GetOpportunityOutput`](crate::operation::get_opportunity::GetOpportunityOutput) with field(s): /// - [`catalog(String)`](crate::operation::get_opportunity::GetOpportunityOutput::catalog):

Specifies the catalog associated with the request. This field takes a string value from a predefined list: AWS or Sandbox. The catalog determines which environment the opportunity information is retrieved from. Use AWS to retrieve opportunities in the Amazon Web Services catalog, and Sandbox to retrieve opportunities in a secure and isolated testing environment.

- /// - [`primary_needs_from_aws(Option>)`](crate::operation::get_opportunity::GetOpportunityOutput::primary_needs_from_aws):

Identifies the type of support the partner needs from Amazon Web Services.

Valid values:

  • Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.

  • Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.

  • Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.

  • Cosell—Pricing Assistance: Connect with an Amazon Web Services seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).

  • Cosell—Technical Consultation: Connect with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.

  • Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.

  • Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

  • Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • Do Not Need Support from Amazon Web Services Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

+ /// - [`primary_needs_from_aws(Option>)`](crate::operation::get_opportunity::GetOpportunityOutput::primary_needs_from_aws):

Identifies the type of support the partner needs from Amazon Web Services.

Valid values:

  • Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.

  • Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.

  • Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.

  • Cosell—Pricing Assistance: Connect with an Amazon Web Services seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).

  • Cosell—Technical Consultation: Connect with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.

  • Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.

  • Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

  • Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

/// - [`national_security(Option)`](crate::operation::get_opportunity::GetOpportunityOutput::national_security):

Indicates whether the Opportunity pertains to a national security project. This field must be set to true only when the customer's industry is Government. Additional privacy and security measures apply during the review and management process for opportunities marked as NationalSecurity.

/// - [`partner_opportunity_identifier(Option)`](crate::operation::get_opportunity::GetOpportunityOutput::partner_opportunity_identifier):

Specifies the opportunity's unique identifier in the partner's CRM system. This value is essential to track and reconcile because it's included in the outbound payload sent back to the partner.

/// - [`customer(Option)`](crate::operation::get_opportunity::GetOpportunityOutput::customer):

Specifies details of the customer associated with the Opportunity.

diff --git a/sdk/partnercentralselling/src/client/get_resource_snapshot.rs b/sdk/partnercentralselling/src/client/get_resource_snapshot.rs index 5dedef57fbd2..db7893f9a7f6 100644 --- a/sdk/partnercentralselling/src/client/get_resource_snapshot.rs +++ b/sdk/partnercentralselling/src/client/get_resource_snapshot.rs @@ -11,12 +11,12 @@ impl super::Client { /// - [`revision(i32)`](crate::operation::get_resource_snapshot::builders::GetResourceSnapshotFluentBuilder::revision) / [`set_revision(Option)`](crate::operation::get_resource_snapshot::builders::GetResourceSnapshotFluentBuilder::set_revision):
required: **false**

Specifies which revision of the snapshot to retrieve. If omitted returns the latest revision.


/// - On success, responds with [`GetResourceSnapshotOutput`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput) with field(s): /// - [`catalog(String)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::catalog):

The catalog in which the snapshot was created. Matches the Catalog specified in the request.

- /// - [`arn(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::arn):

The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be used for resource-specific operations across AWS services.

+ /// - [`arn(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::arn):

The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

/// - [`created_by(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::created_by):

The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

/// - [`created_at(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::created_at):

The timestamp when the snapshot was created, in ISO 8601 format (e.g., "2023-06-01T14:30:00Z"). This allows for precise tracking of when the snapshot was taken.

/// - [`engagement_id(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::engagement_id):

The identifier of the engagement associated with this snapshot. Matches the EngagementIdentifier specified in the request.

- /// - [`resource_type(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::resource_type):

The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

- /// - [`resource_id(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::resource_id):

The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

+ /// - [`resource_type(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::resource_type):

The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

+ /// - [`resource_id(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::resource_id):

The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

/// - [`resource_snapshot_template_name(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::resource_snapshot_template_name):

The name of the view used for this snapshot. This is the same as the template name.

/// - [`revision(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::revision):

The revision number of this snapshot. This is a positive integer that is sequential and unique within the context of a resource view.

/// - [`payload(Option)`](crate::operation::get_resource_snapshot::GetResourceSnapshotOutput::payload):

Represents the payload of a resource snapshot. This structure is designed to accommodate different types of resource snapshots, currently supporting opportunity summaries.

diff --git a/sdk/partnercentralselling/src/client/get_resource_snapshot_job.rs b/sdk/partnercentralselling/src/client/get_resource_snapshot_job.rs index 847c6a850b02..fbda62a65256 100644 --- a/sdk/partnercentralselling/src/client/get_resource_snapshot_job.rs +++ b/sdk/partnercentralselling/src/client/get_resource_snapshot_job.rs @@ -6,15 +6,15 @@ impl super::Client { /// - [`catalog(impl Into)`](crate::operation::get_resource_snapshot_job::builders::GetResourceSnapshotJobFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::get_resource_snapshot_job::builders::GetResourceSnapshotJobFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request. Valid values are:

  • AWS: Retrieves the snapshot job from the production AWS environment.

  • Sandbox: Retrieves the snapshot job from a sandbox environment used for testing or development purposes.


/// - [`resource_snapshot_job_identifier(impl Into)`](crate::operation::get_resource_snapshot_job::builders::GetResourceSnapshotJobFluentBuilder::resource_snapshot_job_identifier) / [`set_resource_snapshot_job_identifier(Option)`](crate::operation::get_resource_snapshot_job::builders::GetResourceSnapshotJobFluentBuilder::set_resource_snapshot_job_identifier):
required: **true**

The unique identifier of the resource snapshot job to be retrieved. This identifier is crucial for pinpointing the specific job you want to query.


/// - On success, responds with [`GetResourceSnapshotJobOutput`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput) with field(s): - /// - [`catalog(String)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::catalog):

The catalog in which the snapshot job was created. This will match the catalog specified in the request.

- /// - [`id(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::id):

The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

- /// - [`arn(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::arn):

he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

+ /// - [`catalog(String)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::catalog):

The catalog in which the snapshot job was created. This will match the Catalog specified in the request.

+ /// - [`id(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::id):

The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

+ /// - [`arn(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::arn):

The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

/// - [`engagement_id(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::engagement_id):

The identifier of the engagement associated with this snapshot job. This links the job to a specific engagement context.

- /// - [`resource_type(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::resource_type):

The type of resource being snapshotted. This would have Opportunity as a value as it is dependent on the supported resource type.

- /// - [`resource_id(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::resource_id):

The identifier of the specific resource being snapshotted. The format may vary depending on the ResourceType.

+ /// - [`resource_type(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::resource_type):

The type of resource being snapshotted. This would have "Opportunity" as a value as it is dependent on the supported resource type.

+ /// - [`resource_id(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::resource_id):

The identifier of the specific resource being snapshotted. The format might vary depending on the ResourceType.

/// - [`resource_arn(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::resource_arn):

The Amazon Resource Name (ARN) of the resource being snapshotted. This provides a globally unique identifier for the resource across AWS.

/// - [`resource_snapshot_template_name(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::resource_snapshot_template_name):

The name of the template used for creating the snapshot. This is the same as the template name. It defines the structure and content of the snapshot.

- /// - [`created_at(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::created_at):

The date and time when the snapshot job was created, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

+ /// - [`created_at(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::created_at):

The date and time when the snapshot job was created in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

/// - [`status(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::status):

The current status of the snapshot job. Valid values:

  • STOPPED: The job is not currently running.

  • RUNNING: The job is actively executing.

/// - [`last_successful_execution_date(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::last_successful_execution_date):

The date and time of the last successful execution of the job, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

/// - [`last_failure(Option)`](crate::operation::get_resource_snapshot_job::GetResourceSnapshotJobOutput::last_failure):

If the job has encountered any failures, this field contains the error message from the most recent failure. This can be useful for troubleshooting issues with the job.

diff --git a/sdk/partnercentralselling/src/client/list_engagement_members.rs b/sdk/partnercentralselling/src/client/list_engagement_members.rs index e8afc9c85a93..ee169d1b8721 100644 --- a/sdk/partnercentralselling/src/client/list_engagement_members.rs +++ b/sdk/partnercentralselling/src/client/list_engagement_members.rs @@ -5,7 +5,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`catalog(impl Into)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::set_catalog):
required: **true**

The catalog related to the request.


- /// - [`identifier(impl Into)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::set_identifier):
required: **true**

Identifier of the engagement record to retrieve members from.


+ /// - [`identifier(impl Into)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::set_identifier):
required: **true**

Identifier of the Engagement record to retrieve members from.


/// - [`max_results(i32)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::max_results) / [`set_max_results(Option)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::set_max_results):
required: **false**

The maximum number of results to return in a single call.


/// - [`next_token(impl Into)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::next_token) / [`set_next_token(Option)`](crate::operation::list_engagement_members::builders::ListEngagementMembersFluentBuilder::set_next_token):
required: **false**

The token for the next set of results.


/// - On success, responds with [`ListEngagementMembersOutput`](crate::operation::list_engagement_members::ListEngagementMembersOutput) with field(s): diff --git a/sdk/partnercentralselling/src/client/list_engagement_resource_associations.rs b/sdk/partnercentralselling/src/client/list_engagement_resource_associations.rs index 8ed173c7ec2f..c81691087dfb 100644 --- a/sdk/partnercentralselling/src/client/list_engagement_resource_associations.rs +++ b/sdk/partnercentralselling/src/client/list_engagement_resource_associations.rs @@ -4,13 +4,13 @@ impl super::Client { /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::into_paginator). /// /// - The fluent builder is configurable: - /// - [`catalog(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_catalog):
required: **true**

Specifies the catalog in which to search for engagement-resource associations.


+ /// - [`catalog(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_catalog):
required: **true**

Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

  • AWS for production environments.

  • Sandbox for testing and development purposes.


/// - [`max_results(i32)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::max_results) / [`set_max_results(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_max_results):
required: **false**

Limits the number of results returned in a single call. Use this to control the number of results returned, especially useful for pagination.


/// - [`next_token(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::next_token) / [`set_next_token(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_next_token):
required: **false**

A token used for pagination of results. Include this token in subsequent requests to retrieve the next set of results.


/// - [`engagement_identifier(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::engagement_identifier) / [`set_engagement_identifier(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_engagement_identifier):
required: **false**

Filters the results to include only associations related to the specified engagement. Use this when you want to find all resources associated with a specific engagement.


/// - [`resource_type(ResourceType)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::resource_type) / [`set_resource_type(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_resource_type):
required: **false**

Filters the results to include only associations with resources of the specified type.


/// - [`resource_identifier(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::resource_identifier) / [`set_resource_identifier(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_resource_identifier):
required: **false**

Filters the results to include only associations with the specified resource. Varies depending on the resource type. Use this when you want to find all engagements associated with a specific resource.


- /// - [`created_by(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::created_by) / [`set_created_by(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_created_by):
required: **false**

Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.


+ /// - [`created_by(impl Into)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::created_by) / [`set_created_by(Option)`](crate::operation::list_engagement_resource_associations::builders::ListEngagementResourceAssociationsFluentBuilder::set_created_by):
required: **false**

Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.


/// - On success, responds with [`ListEngagementResourceAssociationsOutput`](crate::operation::list_engagement_resource_associations::ListEngagementResourceAssociationsOutput) with field(s): /// - [`engagement_resource_association_summaries(Vec::)`](crate::operation::list_engagement_resource_associations::ListEngagementResourceAssociationsOutput::engagement_resource_association_summaries):

A list of engagement-resource association summaries.

/// - [`next_token(Option)`](crate::operation::list_engagement_resource_associations::ListEngagementResourceAssociationsOutput::next_token):

A token to retrieve the next set of results. Use this token in a subsequent request to retrieve additional results if the response was truncated.

diff --git a/sdk/partnercentralselling/src/client/list_resource_snapshots.rs b/sdk/partnercentralselling/src/client/list_resource_snapshots.rs index bb3c3e50fe1e..1ab8c148db42 100644 --- a/sdk/partnercentralselling/src/client/list_resource_snapshots.rs +++ b/sdk/partnercentralselling/src/client/list_resource_snapshots.rs @@ -11,7 +11,7 @@ impl super::Client { /// - [`resource_type(ResourceType)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::resource_type) / [`set_resource_type(Option)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::set_resource_type):
required: **false**

Filters the response to include only snapshots of the specified resource type.


/// - [`resource_identifier(impl Into)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::resource_identifier) / [`set_resource_identifier(Option)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::set_resource_identifier):
required: **false**

Filters the response to include only snapshots of the specified resource.


/// - [`resource_snapshot_template_identifier(impl Into)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::resource_snapshot_template_identifier) / [`set_resource_snapshot_template_identifier(Option)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::set_resource_snapshot_template_identifier):
required: **false**

Filters the response to include only snapshots created using the specified template.


- /// - [`created_by(impl Into)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::created_by) / [`set_created_by(Option)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::set_created_by):
required: **false**

Filters the response to include only snapshots of resources created by the specified AWS account.


+ /// - [`created_by(impl Into)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::created_by) / [`set_created_by(Option)`](crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsFluentBuilder::set_created_by):
required: **false**

Filters the response to include only snapshots of resources owned by the specified AWS account.


/// - On success, responds with [`ListResourceSnapshotsOutput`](crate::operation::list_resource_snapshots::ListResourceSnapshotsOutput) with field(s): /// - [`resource_snapshot_summaries(Vec::)`](crate::operation::list_resource_snapshots::ListResourceSnapshotsOutput::resource_snapshot_summaries):

An array of resource snapshot summary objects.

/// - [`next_token(Option)`](crate::operation::list_resource_snapshots::ListResourceSnapshotsOutput::next_token):

The token to retrieve the next set of results. If there are no additional results, this value is null.

diff --git a/sdk/partnercentralselling/src/client/list_tags_for_resource.rs b/sdk/partnercentralselling/src/client/list_tags_for_resource.rs new file mode 100644 index 000000000000..6b98950f138c --- /dev/null +++ b/sdk/partnercentralselling/src/client/list_tags_for_resource.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 [`ListTagsForResource`](crate::operation::list_tags_for_resource::builders::ListTagsForResourceFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::list_tags_for_resource::builders::ListTagsForResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::list_tags_for_resource::builders::ListTagsForResourceFluentBuilder::set_resource_arn):
required: **true**

The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.


+ /// - On success, responds with [`ListTagsForResourceOutput`](crate::operation::list_tags_for_resource::ListTagsForResourceOutput) with field(s): + /// - [`tags(Vec::)`](crate::operation::list_tags_for_resource::ListTagsForResourceOutput::tags):

A map of the key-value pairs for the tag or tags assigned to the specified resource.

+ /// - On failure, responds with [`SdkError`](crate::operation::list_tags_for_resource::ListTagsForResourceError) + pub fn list_tags_for_resource(&self) -> crate::operation::list_tags_for_resource::builders::ListTagsForResourceFluentBuilder { + crate::operation::list_tags_for_resource::builders::ListTagsForResourceFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/partnercentralselling/src/client/start_engagement_by_accepting_invitation_task.rs b/sdk/partnercentralselling/src/client/start_engagement_by_accepting_invitation_task.rs index 5142c7e76745..7a4e885215c5 100644 --- a/sdk/partnercentralselling/src/client/start_engagement_by_accepting_invitation_task.rs +++ b/sdk/partnercentralselling/src/client/start_engagement_by_accepting_invitation_task.rs @@ -6,6 +6,7 @@ impl super::Client { /// - [`catalog(impl Into)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the task. Use AWS for production engagements and Sandbox for testing scenarios.


/// - [`client_token(impl Into)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::client_token) / [`set_client_token(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::set_client_token):
required: **true**

A unique, case-sensitive identifier provided by the client that helps to ensure the idempotency of the request. This can be a random or meaningful string but must be unique for each request.


/// - [`identifier(impl Into)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::set_identifier):
required: **true**

Specifies the unique identifier of the EngagementInvitation to be accepted. Providing the correct identifier helps ensure that the correct engagement is processed.


+ /// - [`tags(Tag)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::start_engagement_by_accepting_invitation_task::builders::StartEngagementByAcceptingInvitationTaskFluentBuilder::set_tags):
required: **false**
A list of objects specifying each tag name and value.
/// - On success, responds with [`StartEngagementByAcceptingInvitationTaskOutput`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput) with field(s): /// - [`task_id(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::task_id):

The unique identifier of the task, used to track the task’s progress.

/// - [`task_arn(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::task_arn):

The Amazon Resource Name (ARN) of the task, used for tracking and managing the task within AWS.

@@ -14,7 +15,7 @@ impl super::Client { /// - [`message(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::message):

If the task fails, this field contains a detailed message describing the failure and possible recovery steps.

/// - [`reason_code(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::reason_code):

Indicates the reason for task failure using an enumerated code.

/// - [`opportunity_id(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::opportunity_id):

Returns the original opportunity identifier passed in the request. This is the unique identifier for the opportunity.

- /// - [`resource_snapshot_job_id(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::resource_snapshot_job_id):

The identifier of the resource snapshot job created as part of this task.

+ /// - [`resource_snapshot_job_id(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::resource_snapshot_job_id):

The identifier of the Resource Snapshot Job created as part of this task.

/// - [`engagement_invitation_id(Option)`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskOutput::engagement_invitation_id):

Returns the identifier of the engagement invitation that was accepted and used to create the opportunity.

/// - On failure, responds with [`SdkError`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskError) pub fn start_engagement_by_accepting_invitation_task( diff --git a/sdk/partnercentralselling/src/client/start_engagement_from_opportunity_task.rs b/sdk/partnercentralselling/src/client/start_engagement_from_opportunity_task.rs index 7fc4473581a2..6eff33a9db1f 100644 --- a/sdk/partnercentralselling/src/client/start_engagement_from_opportunity_task.rs +++ b/sdk/partnercentralselling/src/client/start_engagement_from_opportunity_task.rs @@ -7,6 +7,7 @@ impl super::Client { /// - [`client_token(impl Into)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::client_token) / [`set_client_token(Option)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::set_client_token):
required: **true**

A unique token provided by the client to help ensure the idempotency of the request. It helps prevent the same task from being performed multiple times.


/// - [`identifier(impl Into)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::set_identifier):
required: **true**

The unique identifier of the opportunity from which the engagement task is to be initiated. This helps ensure that the task is applied to the correct opportunity.


/// - [`aws_submission(AwsSubmission)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::aws_submission) / [`set_aws_submission(Option)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::set_aws_submission):
required: **true**

Indicates the level of AWS involvement in the opportunity. This field helps track AWS participation throughout the engagement, such as providing technical support, deal assistance, and sales support.


+ /// - [`tags(Tag)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::start_engagement_from_opportunity_task::builders::StartEngagementFromOpportunityTaskFluentBuilder::set_tags):
required: **false**
A list of objects specifying each tag name and value.
/// - On success, responds with [`StartEngagementFromOpportunityTaskOutput`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput) with field(s): /// - [`task_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::task_id):

The unique identifier of the task, used to track the task’s progress. This value follows a specific pattern: ^oit-\[0-9a-z\]{13}$.

/// - [`task_arn(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::task_arn):

The Amazon Resource Name (ARN) of the task, used for tracking and managing the task within AWS.

@@ -15,9 +16,9 @@ impl super::Client { /// - [`message(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::message):

If the task fails, this field contains a detailed message describing the failure and possible recovery steps.

/// - [`reason_code(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::reason_code):

Indicates the reason for task failure using an enumerated code.

/// - [`opportunity_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::opportunity_id):

Returns the original opportunity identifier passed in the request, which is the unique identifier for the opportunity created in the partner’s system.

- /// - [`resource_snapshot_job_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::resource_snapshot_job_id):

The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.

- /// - [`engagement_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::engagement_id):

The identifier of the newly created engagement. Only populated if TaskStatus is COMPLETE.

- /// - [`engagement_invitation_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::engagement_invitation_id):

The identifier of the new engagement invitation. Only populated if TaskStatus is COMPLETE.

+ /// - [`resource_snapshot_job_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::resource_snapshot_job_id):

The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

+ /// - [`engagement_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::engagement_id):

The identifier of the newly created Engagement. Only populated if TaskStatus is COMPLETE.

+ /// - [`engagement_invitation_id(Option)`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskOutput::engagement_invitation_id):

The identifier of the new Engagement invitation. Only populated if TaskStatus is COMPLETE.

/// - On failure, responds with [`SdkError`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskError) pub fn start_engagement_from_opportunity_task( &self, diff --git a/sdk/partnercentralselling/src/client/start_resource_snapshot_job.rs b/sdk/partnercentralselling/src/client/start_resource_snapshot_job.rs index 689b053ad961..88d9daace066 100644 --- a/sdk/partnercentralselling/src/client/start_resource_snapshot_job.rs +++ b/sdk/partnercentralselling/src/client/start_resource_snapshot_job.rs @@ -3,7 +3,7 @@ impl super::Client { /// Constructs a fluent builder for the [`StartResourceSnapshotJob`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`catalog(impl Into)`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request.


+ /// - [`catalog(impl Into)`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request. Valid values are:

  • AWS: Starts the request from the production AWS environment.

  • Sandbox: Starts the request from a sandbox environment used for testing or development purposes.


/// - [`resource_snapshot_job_identifier(impl Into)`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder::resource_snapshot_job_identifier) / [`set_resource_snapshot_job_identifier(Option)`](crate::operation::start_resource_snapshot_job::builders::StartResourceSnapshotJobFluentBuilder::set_resource_snapshot_job_identifier):
required: **true**

The identifier of the resource snapshot job to start.


/// - On success, responds with [`StartResourceSnapshotJobOutput`](crate::operation::start_resource_snapshot_job::StartResourceSnapshotJobOutput) /// - On failure, responds with [`SdkError`](crate::operation::start_resource_snapshot_job::StartResourceSnapshotJobError) diff --git a/sdk/partnercentralselling/src/client/stop_resource_snapshot_job.rs b/sdk/partnercentralselling/src/client/stop_resource_snapshot_job.rs index d252d3e1fdf9..d0102c691c10 100644 --- a/sdk/partnercentralselling/src/client/stop_resource_snapshot_job.rs +++ b/sdk/partnercentralselling/src/client/stop_resource_snapshot_job.rs @@ -3,7 +3,7 @@ impl super::Client { /// Constructs a fluent builder for the [`StopResourceSnapshotJob`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`catalog(impl Into)`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request.


+ /// - [`catalog(impl Into)`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request. Valid values are:

  • AWS: Stops the request from the production AWS environment.

  • Sandbox: Stops the request from a sandbox environment used for testing or development purposes.


/// - [`resource_snapshot_job_identifier(impl Into)`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder::resource_snapshot_job_identifier) / [`set_resource_snapshot_job_identifier(Option)`](crate::operation::stop_resource_snapshot_job::builders::StopResourceSnapshotJobFluentBuilder::set_resource_snapshot_job_identifier):
required: **true**

The identifier of the job to stop.


/// - On success, responds with [`StopResourceSnapshotJobOutput`](crate::operation::stop_resource_snapshot_job::StopResourceSnapshotJobOutput) /// - On failure, responds with [`SdkError`](crate::operation::stop_resource_snapshot_job::StopResourceSnapshotJobError) diff --git a/sdk/partnercentralselling/src/client/submit_opportunity.rs b/sdk/partnercentralselling/src/client/submit_opportunity.rs index 860af08e8fae..6dddd937de20 100644 --- a/sdk/partnercentralselling/src/client/submit_opportunity.rs +++ b/sdk/partnercentralselling/src/client/submit_opportunity.rs @@ -3,10 +3,10 @@ impl super::Client { /// Constructs a fluent builder for the [`SubmitOpportunity`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`catalog(impl Into)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request.


- /// - [`identifier(impl Into)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_identifier):
required: **true**

The identifier of the opportunity previously created by partner and needs to be submitted.


- /// - [`involvement_type(SalesInvolvementType)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::involvement_type) / [`set_involvement_type(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_involvement_type):
required: **true**

Specifies the level of AWS sellers' involvement on the opportunity.


- /// - [`visibility(Visibility)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::visibility) / [`set_visibility(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_visibility):
required: **false**

Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.


+ /// - [`catalog(impl Into)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_catalog):
required: **true**

Specifies the catalog related to the request. Valid values are:

  • AWS: Submits the opportunity request from the production AWS environment.

  • Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.


+ /// - [`identifier(impl Into)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::identifier) / [`set_identifier(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_identifier):
required: **true**

The identifier of the Opportunity previously created by partner and needs to be submitted.


+ /// - [`involvement_type(SalesInvolvementType)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::involvement_type) / [`set_involvement_type(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_involvement_type):
required: **true**

Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

  • Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

  • For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.


+ /// - [`visibility(Visibility)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::visibility) / [`set_visibility(Option)`](crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder::set_visibility):
required: **false**

Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

  • Full: The opportunity is fully visible to AWS sales.

  • Limited: The opportunity has restricted visibility to AWS sales.


/// - On success, responds with [`SubmitOpportunityOutput`](crate::operation::submit_opportunity::SubmitOpportunityOutput) /// - On failure, responds with [`SdkError`](crate::operation::submit_opportunity::SubmitOpportunityError) pub fn submit_opportunity(&self) -> crate::operation::submit_opportunity::builders::SubmitOpportunityFluentBuilder { diff --git a/sdk/partnercentralselling/src/client/tag_resource.rs b/sdk/partnercentralselling/src/client/tag_resource.rs new file mode 100644 index 000000000000..0aca3e2f8ab8 --- /dev/null +++ b/sdk/partnercentralselling/src/client/tag_resource.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 [`TagResource`](crate::operation::tag_resource::builders::TagResourceFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::tag_resource::builders::TagResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::tag_resource::builders::TagResourceFluentBuilder::set_resource_arn):
required: **true**

The Amazon Resource Name (ARN) of the resource that you want to tag.


+ /// - [`tags(Tag)`](crate::operation::tag_resource::builders::TagResourceFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::tag_resource::builders::TagResourceFluentBuilder::set_tags):
required: **true**

A map of the key-value pairs of the tag or tags to assign to the resource.


+ /// - On success, responds with [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput) + /// - On failure, responds with [`SdkError`](crate::operation::tag_resource::TagResourceError) + pub fn tag_resource(&self) -> crate::operation::tag_resource::builders::TagResourceFluentBuilder { + crate::operation::tag_resource::builders::TagResourceFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/partnercentralselling/src/client/untag_resource.rs b/sdk/partnercentralselling/src/client/untag_resource.rs new file mode 100644 index 000000000000..500fb1739443 --- /dev/null +++ b/sdk/partnercentralselling/src/client/untag_resource.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 [`UntagResource`](crate::operation::untag_resource::builders::UntagResourceFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`resource_arn(impl Into)`](crate::operation::untag_resource::builders::UntagResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option)`](crate::operation::untag_resource::builders::UntagResourceFluentBuilder::set_resource_arn):
required: **true**

The Amazon Resource Name (ARN) of the resource that you want to untag.


+ /// - [`tag_keys(impl Into)`](crate::operation::untag_resource::builders::UntagResourceFluentBuilder::tag_keys) / [`set_tag_keys(Option>)`](crate::operation::untag_resource::builders::UntagResourceFluentBuilder::set_tag_keys):
required: **true**

The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.


+ /// - On success, responds with [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput) + /// - On failure, responds with [`SdkError`](crate::operation::untag_resource::UntagResourceError) + pub fn untag_resource(&self) -> crate::operation::untag_resource::builders::UntagResourceFluentBuilder { + crate::operation::untag_resource::builders::UntagResourceFluentBuilder::new(self.handle.clone()) + } +} diff --git a/sdk/partnercentralselling/src/client/update_opportunity.rs b/sdk/partnercentralselling/src/client/update_opportunity.rs index 949805c07a0d..a89c017a6286 100644 --- a/sdk/partnercentralselling/src/client/update_opportunity.rs +++ b/sdk/partnercentralselling/src/client/update_opportunity.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`catalog(impl Into)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::catalog) / [`set_catalog(Option)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::set_catalog):
required: **true**

Specifies the catalog associated with the request. This field takes a string value from a predefined list: AWS or Sandbox. The catalog determines which environment the opportunity is updated in. Use AWS to update real opportunities in the production environment, and Sandbox for testing in secure, isolated environments. When you use the Sandbox catalog, it allows you to simulate and validate your interactions with Amazon Web Services services without affecting live data or operations.


- /// - [`primary_needs_from_aws(PrimaryNeedFromAws)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::primary_needs_from_aws) / [`set_primary_needs_from_aws(Option>)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::set_primary_needs_from_aws):
required: **false**

Identifies the type of support the partner needs from Amazon Web Services.

Valid values:

  • Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.

  • Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.

  • Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.

  • Cosell—Pricing Assistance: Connect with an AWS seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).

  • Cosell—Technical Consultation: Connection with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.

  • Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.

  • Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

  • Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.


+ /// - [`primary_needs_from_aws(PrimaryNeedFromAws)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::primary_needs_from_aws) / [`set_primary_needs_from_aws(Option>)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::set_primary_needs_from_aws):
required: **false**

Identifies the type of support the partner needs from Amazon Web Services.

Valid values:

  • Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.

  • Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.

  • Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.

  • Cosell—Pricing Assistance: Connect with an AWS seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).

  • Cosell—Technical Consultation: Connection with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.

  • Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.

  • Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

  • Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.


/// - [`national_security(NationalSecurity)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::national_security) / [`set_national_security(Option)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::set_national_security):
required: **false**

Specifies if the opportunity is associated with national security concerns. This flag is only applicable when the industry is Government. For national-security-related opportunities, validation and compliance rules may apply, impacting the opportunity's visibility and processing.


/// - [`partner_opportunity_identifier(impl Into)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::partner_opportunity_identifier) / [`set_partner_opportunity_identifier(Option)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::set_partner_opportunity_identifier):
required: **false**

Specifies the opportunity's unique identifier in the partner's CRM system. This value is essential to track and reconcile because it's included in the outbound payload sent back to the partner.


/// - [`customer(Customer)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::customer) / [`set_customer(Option)`](crate::operation::update_opportunity::builders::UpdateOpportunityFluentBuilder::set_customer):
required: **false**

Specifies details of the customer associated with the Opportunity.


diff --git a/sdk/partnercentralselling/src/error_meta.rs b/sdk/partnercentralselling/src/error_meta.rs index cf154fdb0215..e56b6e6b5f9e 100644 --- a/sdk/partnercentralselling/src/error_meta.rs +++ b/sdk/partnercentralselling/src/error_meta.rs @@ -98,6 +98,9 @@ impl From { Error::AccessDeniedException(inner) } + crate::operation::accept_engagement_invitation::AcceptEngagementInvitationError::ConflictException(inner) => { + Error::ConflictException(inner) + } crate::operation::accept_engagement_invitation::AcceptEngagementInvitationError::InternalServerException(inner) => { Error::InternalServerException(inner) } @@ -368,6 +371,9 @@ impl From { Error::AccessDeniedException(inner) } + crate::operation::delete_resource_snapshot_job::DeleteResourceSnapshotJobError::ConflictException(inner) => { + Error::ConflictException(inner) + } crate::operation::delete_resource_snapshot_job::DeleteResourceSnapshotJobError::ResourceNotFoundException(inner) => { Error::ResourceNotFoundException(inner) } @@ -912,6 +918,9 @@ impl From { Error::AccessDeniedException(inner) } + crate::operation::list_resource_snapshot_jobs::ListResourceSnapshotJobsError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } crate::operation::list_resource_snapshot_jobs::ListResourceSnapshotJobsError::ThrottlingException(inner) => { Error::ThrottlingException(inner) } @@ -978,6 +987,36 @@ impl From for Error { } } } +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::list_tags_for_resource::ListTagsForResourceError) -> Self { + match err { + crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner), + crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => { + Error::InternalServerException(inner) + } + crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => { + Error::ResourceNotFoundException(inner) + } + crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner), + crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner), + crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error where @@ -1037,6 +1076,9 @@ impl From { Error::AccessDeniedException(inner) } + crate::operation::reject_engagement_invitation::RejectEngagementInvitationError::ConflictException(inner) => { + Error::ConflictException(inner) + } crate::operation::reject_engagement_invitation::RejectEngagementInvitationError::InternalServerException(inner) => { Error::InternalServerException(inner) } @@ -1245,6 +1287,60 @@ impl From for Erro } } } +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::tag_resource::TagResourceError) -> Self { + match err { + crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner), + crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner), + crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner), + crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner), + crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner), + crate::operation::tag_resource::TagResourceError::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::untag_resource::UntagResourceError) -> Self { + match err { + crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner), + crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner), + crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner), + crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner), + crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner), + crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner), + crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner), + } + } +} impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error where R: Send + Sync + std::fmt::Debug + 'static, diff --git a/sdk/partnercentralselling/src/lib.rs b/sdk/partnercentralselling/src/lib.rs index 7969a87ff97e..1a1ade9253e4 100644 --- a/sdk/partnercentralselling/src/lib.rs +++ b/sdk/partnercentralselling/src/lib.rs @@ -157,6 +157,24 @@ pub use config::Config; /// [`aws_config::from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.from_env.html /// [`aws_config::load_from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.load_from_env.html /// [builder pattern]: https://rust-lang.github.io/api-guidelines/type-safety.html#builders-enable-construction-of-complex-values-c-builder +/// # Using the `Client` +/// +/// A client has a function for every operation that can be performed by the service. +/// For example, the [`ListTagsForResource`](crate::operation::list_tags_for_resource) operation has +/// a [`Client::list_tags_for_resource`], function which returns a builder for that operation. +/// The fluent builder ultimately has a `send()` function that returns an async future that +/// returns a result, as illustrated below: +/// +/// ```rust,ignore +/// let result = client.list_tags_for_resource() +/// .resource_arn("example") +/// .send() +/// .await; +/// ``` +/// +/// The underlying HTTP requests that get made by this can be modified with the `customize_operation` +/// function on the fluent builder. See the [`customize`](crate::client::customize) module for more +/// information. pub mod client; /// Configuration for Partner Central Selling API. diff --git a/sdk/partnercentralselling/src/operation.rs b/sdk/partnercentralselling/src/operation.rs index 118f230081a4..7c365d56e0a5 100644 --- a/sdk/partnercentralselling/src/operation.rs +++ b/sdk/partnercentralselling/src/operation.rs @@ -82,6 +82,9 @@ pub mod list_resource_snapshots; /// Types for the `ListSolutions` operation. pub mod list_solutions; +/// Types for the `ListTagsForResource` operation. +pub mod list_tags_for_resource; + /// Types for the `PutSellingSystemSettings` operation. pub mod put_selling_system_settings; @@ -103,5 +106,11 @@ pub mod stop_resource_snapshot_job; /// Types for the `SubmitOpportunity` operation. pub mod submit_opportunity; +/// Types for the `TagResource` operation. +pub mod tag_resource; + +/// Types for the `UntagResource` operation. +pub mod untag_resource; + /// Types for the `UpdateOpportunity` operation. pub mod update_opportunity; diff --git a/sdk/partnercentralselling/src/operation/accept_engagement_invitation.rs b/sdk/partnercentralselling/src/operation/accept_engagement_invitation.rs index 1580a202f103..cb412a4c2f5d 100644 --- a/sdk/partnercentralselling/src/operation/accept_engagement_invitation.rs +++ b/sdk/partnercentralselling/src/operation/accept_engagement_invitation.rs @@ -258,6 +258,9 @@ pub enum AcceptEngagementInvitationError { ///

This error occurs when you don't have permission to perform the requested action.

///

You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

AccessDeniedException(crate::types::error::AccessDeniedException), + ///

This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.

+ ///

Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.

+ ConflictException(crate::types::error::ConflictException), ///

This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.

///

Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.

InternalServerException(crate::types::error::InternalServerException), @@ -304,6 +307,7 @@ impl AcceptEngagementInvitationError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), @@ -315,6 +319,10 @@ impl AcceptEngagementInvitationError { pub fn is_access_denied_exception(&self) -> bool { matches!(self, Self::AccessDeniedException(_)) } + /// Returns `true` if the error kind is `AcceptEngagementInvitationError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } /// Returns `true` if the error kind is `AcceptEngagementInvitationError::InternalServerException`. pub fn is_internal_server_exception(&self) -> bool { matches!(self, Self::InternalServerException(_)) @@ -336,6 +344,7 @@ impl ::std::error::Error for AcceptEngagementInvitationError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner), Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), @@ -348,6 +357,7 @@ impl ::std::fmt::Display for AcceptEngagementInvitationError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), Self::InternalServerException(_inner) => _inner.fmt(f), Self::ResourceNotFoundException(_inner) => _inner.fmt(f), Self::ThrottlingException(_inner) => _inner.fmt(f), @@ -374,6 +384,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for AcceptEngagem fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), diff --git a/sdk/partnercentralselling/src/operation/create_opportunity/_create_opportunity_input.rs b/sdk/partnercentralselling/src/operation/create_opportunity/_create_opportunity_input.rs index 8b66f1c5cc72..fd04c2226b8c 100644 --- a/sdk/partnercentralselling/src/operation/create_opportunity/_create_opportunity_input.rs +++ b/sdk/partnercentralselling/src/operation/create_opportunity/_create_opportunity_input.rs @@ -24,8 +24,6 @@ pub struct CreateOpportunityInput { ///

Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub primary_needs_from_aws: ::std::option::Option<::std::vec::Vec>, ///

    Indicates whether the Opportunity pertains to a national security project. This field must be set to true only when the customer's industry is Government. Additional privacy and security measures apply during the review and management process for opportunities marked as NationalSecurity.

    @@ -87,8 +85,6 @@ impl CreateOpportunityInput { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.primary_needs_from_aws.is_none()`. @@ -218,8 +214,6 @@ impl CreateOpportunityInputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub fn primary_needs_from_aws(mut self, input: crate::types::PrimaryNeedFromAws) -> Self { let mut v = self.primary_needs_from_aws.unwrap_or_default(); @@ -246,8 +240,6 @@ impl CreateOpportunityInputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub fn set_primary_needs_from_aws(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.primary_needs_from_aws = input; @@ -272,8 +264,6 @@ impl CreateOpportunityInputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub fn get_primary_needs_from_aws(&self) -> &::std::option::Option<::std::vec::Vec> { &self.primary_needs_from_aws diff --git a/sdk/partnercentralselling/src/operation/create_opportunity/builders.rs b/sdk/partnercentralselling/src/operation/create_opportunity/builders.rs index d51f60ccd77b..af62b3fd4df7 100644 --- a/sdk/partnercentralselling/src/operation/create_opportunity/builders.rs +++ b/sdk/partnercentralselling/src/operation/create_opportunity/builders.rs @@ -30,7 +30,7 @@ impl crate::operation::create_opportunity::builders::CreateOpportunityInputBuild ///
  • ///

    To associate a solution with the opportunity, use AssociateOpportunity.

  • ///
  • -///

    To submit the opportunity, use StartEngagementFromOpportunityTask.

  • +///

    To start the engagement with AWS, use StartEngagementFromOpportunity.

    /// ///

    After submission, you can't edit the opportunity until the review is complete. But opportunities in the Pending Submission state must have complete details. You can update the opportunity while it's in the Pending Submission state.

    ///

    There's a set of mandatory fields to create opportunities, but consider providing optional fields to enrich the opportunity record.

    @@ -157,8 +157,6 @@ impl CreateOpportunityFluentBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub fn primary_needs_from_aws(mut self, input: crate::types::PrimaryNeedFromAws) -> Self { self.inner = self.inner.primary_needs_from_aws(input); @@ -183,8 +181,6 @@ impl CreateOpportunityFluentBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub fn set_primary_needs_from_aws(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_primary_needs_from_aws(input); @@ -209,8 +205,6 @@ impl CreateOpportunityFluentBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycles. This is also known as a for-visibility-only (FVO) opportunity.

  • /// pub fn get_primary_needs_from_aws(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_primary_needs_from_aws() diff --git a/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/_create_resource_snapshot_job_input.rs b/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/_create_resource_snapshot_job_input.rs index 806fa8719078..fb23f6d788bb 100644 --- a/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/_create_resource_snapshot_job_input.rs +++ b/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/_create_resource_snapshot_job_input.rs @@ -5,23 +5,25 @@ pub struct CreateResourceSnapshotJobInput { ///

    Specifies the catalog in which to create the snapshot job. Valid values are AWS and Sandbox.

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

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

    pub client_token: ::std::option::Option<::std::string::String>, ///

    Specifies the identifier of the engagement associated with the resource to be snapshotted.

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

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

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

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    pub resource_identifier: ::std::option::Option<::std::string::String>, ///

    Specifies the name of the template that defines the schema for the snapshot.

    pub resource_snapshot_template_identifier: ::std::option::Option<::std::string::String>, + /// A list of objects specifying each tag name and value. + pub tags: ::std::option::Option<::std::vec::Vec>, } impl CreateResourceSnapshotJobInput { ///

    Specifies the catalog in which to create the snapshot job. Valid values are AWS and Sandbox.

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

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

    pub fn client_token(&self) -> ::std::option::Option<&str> { self.client_token.as_deref() } @@ -29,11 +31,11 @@ impl CreateResourceSnapshotJobInput { pub fn engagement_identifier(&self) -> ::std::option::Option<&str> { self.engagement_identifier.as_deref() } - ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

    pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> { self.resource_type.as_ref() } - ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    pub fn resource_identifier(&self) -> ::std::option::Option<&str> { self.resource_identifier.as_deref() } @@ -41,6 +43,12 @@ impl CreateResourceSnapshotJobInput { pub fn resource_snapshot_template_identifier(&self) -> ::std::option::Option<&str> { self.resource_snapshot_template_identifier.as_deref() } + /// A list of objects specifying each tag name and value. + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`. + pub fn tags(&self) -> &[crate::types::Tag] { + self.tags.as_deref().unwrap_or_default() + } } impl CreateResourceSnapshotJobInput { /// Creates a new builder-style object to manufacture [`CreateResourceSnapshotJobInput`](crate::operation::create_resource_snapshot_job::CreateResourceSnapshotJobInput). @@ -59,6 +67,7 @@ pub struct CreateResourceSnapshotJobInputBuilder { pub(crate) resource_type: ::std::option::Option, pub(crate) resource_identifier: ::std::option::Option<::std::string::String>, pub(crate) resource_snapshot_template_identifier: ::std::option::Option<::std::string::String>, + pub(crate) tags: ::std::option::Option<::std::vec::Vec>, } impl CreateResourceSnapshotJobInputBuilder { ///

    Specifies the catalog in which to create the snapshot job. Valid values are AWS and Sandbox.

    @@ -76,18 +85,18 @@ impl CreateResourceSnapshotJobInputBuilder { pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { &self.catalog } - ///

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

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

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

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

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> { &self.client_token } @@ -106,33 +115,33 @@ impl CreateResourceSnapshotJobInputBuilder { pub fn get_engagement_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.engagement_identifier } - ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

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

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

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

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

    pub fn get_resource_type(&self) -> &::std::option::Option { &self.resource_type } - ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

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

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

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

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } @@ -151,6 +160,26 @@ impl CreateResourceSnapshotJobInputBuilder { pub fn get_resource_snapshot_template_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_snapshot_template_identifier } + /// Appends an item to `tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + /// A list of objects specifying each tag name and value. + pub fn tags(mut self, input: crate::types::Tag) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input); + self.tags = ::std::option::Option::Some(v); + self + } + /// A list of objects specifying each tag name and value. + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.tags = input; + self + } + /// A list of objects specifying each tag name and value. + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + &self.tags + } /// Consumes the builder and constructs a [`CreateResourceSnapshotJobInput`](crate::operation::create_resource_snapshot_job::CreateResourceSnapshotJobInput). pub fn build( self, @@ -165,6 +194,7 @@ impl CreateResourceSnapshotJobInputBuilder { resource_type: self.resource_type, resource_identifier: self.resource_identifier, resource_snapshot_template_identifier: self.resource_snapshot_template_identifier, + tags: self.tags, }) } } diff --git a/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/builders.rs b/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/builders.rs index 01cb83257245..0c0a7a344d7d 100644 --- a/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/builders.rs +++ b/sdk/partnercentralselling/src/operation/create_resource_snapshot_job/builders.rs @@ -122,17 +122,17 @@ impl CreateResourceSnapshotJobFluentBuilder { pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_catalog() } - ///

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

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

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

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

    Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.

    + ///

    A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.

    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_client_token() } @@ -150,31 +150,31 @@ impl CreateResourceSnapshotJobFluentBuilder { pub fn get_engagement_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_engagement_identifier() } - ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

    pub fn resource_type(mut self, input: crate::types::ResourceType) -> Self { self.inner = self.inner.resource_type(input); self } - ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

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

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types Opportunity.

    + ///

    The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e. Opportunity

    pub fn get_resource_type(&self) -> &::std::option::Option { self.inner.get_resource_type() } - ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

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

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

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

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    + ///

    Specifies the identifier of the specific resource to be snapshotted. The format depends on the ResourceType.

    pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_identifier() } @@ -192,4 +192,23 @@ impl CreateResourceSnapshotJobFluentBuilder { pub fn get_resource_snapshot_template_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_snapshot_template_identifier() } + /// + /// Appends an item to `Tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + /// A list of objects specifying each tag name and value. + pub fn tags(mut self, input: crate::types::Tag) -> Self { + self.inner = self.inner.tags(input); + self + } + /// A list of objects specifying each tag name and value. + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.inner = self.inner.set_tags(input); + self + } + /// A list of objects specifying each tag name and value. + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + self.inner.get_tags() + } } diff --git a/sdk/partnercentralselling/src/operation/delete_resource_snapshot_job.rs b/sdk/partnercentralselling/src/operation/delete_resource_snapshot_job.rs index 2b1f83a269de..1f9d1b355b4e 100644 --- a/sdk/partnercentralselling/src/operation/delete_resource_snapshot_job.rs +++ b/sdk/partnercentralselling/src/operation/delete_resource_snapshot_job.rs @@ -258,6 +258,9 @@ pub enum DeleteResourceSnapshotJobError { ///

    This error occurs when you don't have permission to perform the requested action.

    ///

    You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

    AccessDeniedException(crate::types::error::AccessDeniedException), + ///

    This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.

    + ///

    Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.

    + ConflictException(crate::types::error::ConflictException), ///

    This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.

    ///

    Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.

    ResourceNotFoundException(crate::types::error::ResourceNotFoundException), @@ -301,6 +304,7 @@ impl DeleteResourceSnapshotJobError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), @@ -311,6 +315,10 @@ impl DeleteResourceSnapshotJobError { pub fn is_access_denied_exception(&self) -> bool { matches!(self, Self::AccessDeniedException(_)) } + /// Returns `true` if the error kind is `DeleteResourceSnapshotJobError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } /// Returns `true` if the error kind is `DeleteResourceSnapshotJobError::ResourceNotFoundException`. pub fn is_resource_not_found_exception(&self) -> bool { matches!(self, Self::ResourceNotFoundException(_)) @@ -328,6 +336,7 @@ impl ::std::error::Error for DeleteResourceSnapshotJobError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), Self::ValidationException(_inner) => ::std::option::Option::Some(_inner), @@ -339,6 +348,7 @@ impl ::std::fmt::Display for DeleteResourceSnapshotJobError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), Self::ResourceNotFoundException(_inner) => _inner.fmt(f), Self::ThrottlingException(_inner) => _inner.fmt(f), Self::ValidationException(_inner) => _inner.fmt(f), @@ -364,6 +374,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteResourc fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), diff --git a/sdk/partnercentralselling/src/operation/get_opportunity/_get_opportunity_output.rs b/sdk/partnercentralselling/src/operation/get_opportunity/_get_opportunity_output.rs index ebc78c372e4e..a9511a2d052d 100644 --- a/sdk/partnercentralselling/src/operation/get_opportunity/_get_opportunity_output.rs +++ b/sdk/partnercentralselling/src/operation/get_opportunity/_get_opportunity_output.rs @@ -24,8 +24,6 @@ pub struct GetOpportunityOutput { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from Amazon Web Services Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub primary_needs_from_aws: ::std::option::Option<::std::vec::Vec>, ///

    Indicates whether the Opportunity pertains to a national security project. This field must be set to true only when the customer's industry is Government. Additional privacy and security measures apply during the review and management process for opportunities marked as NationalSecurity.

    @@ -92,8 +90,6 @@ impl GetOpportunityOutput { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from Amazon Web Services Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.primary_needs_from_aws.is_none()`. @@ -242,8 +238,6 @@ impl GetOpportunityOutputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from Amazon Web Services Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn primary_needs_from_aws(mut self, input: crate::types::PrimaryNeedFromAws) -> Self { let mut v = self.primary_needs_from_aws.unwrap_or_default(); @@ -270,8 +264,6 @@ impl GetOpportunityOutputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from Amazon Web Services Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn set_primary_needs_from_aws(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.primary_needs_from_aws = input; @@ -296,8 +288,6 @@ impl GetOpportunityOutputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.

  • - ///
  • - ///

    Do Not Need Support from Amazon Web Services Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services sales representative, and the partner solely manages the opportunity. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn get_primary_needs_from_aws(&self) -> &::std::option::Option<::std::vec::Vec> { &self.primary_needs_from_aws diff --git a/sdk/partnercentralselling/src/operation/get_resource_snapshot/_get_resource_snapshot_output.rs b/sdk/partnercentralselling/src/operation/get_resource_snapshot/_get_resource_snapshot_output.rs index af0a449edf76..bd2910491170 100644 --- a/sdk/partnercentralselling/src/operation/get_resource_snapshot/_get_resource_snapshot_output.rs +++ b/sdk/partnercentralselling/src/operation/get_resource_snapshot/_get_resource_snapshot_output.rs @@ -5,7 +5,7 @@ pub struct GetResourceSnapshotOutput { ///

    The catalog in which the snapshot was created. Matches the Catalog specified in the request.

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

    The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be used for resource-specific operations across AWS services.

    + ///

    The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

    pub arn: ::std::option::Option<::std::string::String>, ///

    The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

    pub created_by: ::std::option::Option<::std::string::String>, @@ -13,9 +13,9 @@ pub struct GetResourceSnapshotOutput { pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>, ///

    The identifier of the engagement associated with this snapshot. Matches the EngagementIdentifier specified in the request.

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

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    + ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

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

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    + ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    pub resource_id: ::std::option::Option<::std::string::String>, ///

    The name of the view used for this snapshot. This is the same as the template name.

    pub resource_snapshot_template_name: ::std::option::Option<::std::string::String>, @@ -31,7 +31,7 @@ impl GetResourceSnapshotOutput { use std::ops::Deref; self.catalog.deref() } - ///

    The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be used for resource-specific operations across AWS services.

    + ///

    The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

    pub fn arn(&self) -> ::std::option::Option<&str> { self.arn.as_deref() } @@ -47,11 +47,11 @@ impl GetResourceSnapshotOutput { pub fn engagement_id(&self) -> ::std::option::Option<&str> { self.engagement_id.as_deref() } - ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    + ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> { self.resource_type.as_ref() } - ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    + ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    pub fn resource_id(&self) -> ::std::option::Option<&str> { self.resource_id.as_deref() } @@ -129,17 +129,17 @@ impl GetResourceSnapshotOutputBuilder { pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { &self.catalog } - ///

    The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be used for resource-specific operations across AWS services.

    + ///

    The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

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

    The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be used for resource-specific operations across AWS services.

    + ///

    The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

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

    The Amazon Resource Name (ARN) of the snapshot. This globally unique identifier can be used for resource-specific operations across AWS services.

    + ///

    The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.

    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> { &self.arn } @@ -185,31 +185,31 @@ impl GetResourceSnapshotOutputBuilder { pub fn get_engagement_id(&self) -> &::std::option::Option<::std::string::String> { &self.engagement_id } - ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    + ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    pub fn resource_type(mut self, input: crate::types::ResourceType) -> Self { self.resource_type = ::std::option::Option::Some(input); self } - ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    + ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

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

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    + ///

    The type of the resource that was snapshotted. Matches the ResourceType specified in the request.

    pub fn get_resource_type(&self) -> &::std::option::Option { &self.resource_type } - ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    + ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

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

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    + ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

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

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    + ///

    The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.

    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> { &self.resource_id } diff --git a/sdk/partnercentralselling/src/operation/get_resource_snapshot_job/_get_resource_snapshot_job_output.rs b/sdk/partnercentralselling/src/operation/get_resource_snapshot_job/_get_resource_snapshot_job_output.rs index 909d371bc54a..b8c51e37d6e6 100644 --- a/sdk/partnercentralselling/src/operation/get_resource_snapshot_job/_get_resource_snapshot_job_output.rs +++ b/sdk/partnercentralselling/src/operation/get_resource_snapshot_job/_get_resource_snapshot_job_output.rs @@ -3,23 +3,23 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct GetResourceSnapshotJobOutput { - ///

    The catalog in which the snapshot job was created. This will match the catalog specified in the request.

    + ///

    The catalog in which the snapshot job was created. This will match the Catalog specified in the request.

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

    The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

    + ///

    The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

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

    he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

    + ///

    The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

    pub arn: ::std::option::Option<::std::string::String>, ///

    The identifier of the engagement associated with this snapshot job. This links the job to a specific engagement context.

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

    The type of resource being snapshotted. This would have Opportunity as a value as it is dependent on the supported resource type.

    + ///

    The type of resource being snapshotted. This would have "Opportunity" as a value as it is dependent on the supported resource type.

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

    The identifier of the specific resource being snapshotted. The format may vary depending on the ResourceType.

    + ///

    The identifier of the specific resource being snapshotted. The format might vary depending on the ResourceType.

    pub resource_id: ::std::option::Option<::std::string::String>, ///

    The Amazon Resource Name (ARN) of the resource being snapshotted. This provides a globally unique identifier for the resource across AWS.

    pub resource_arn: ::std::option::Option<::std::string::String>, ///

    The name of the template used for creating the snapshot. This is the same as the template name. It defines the structure and content of the snapshot.

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

    The date and time when the snapshot job was created, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

    + ///

    The date and time when the snapshot job was created in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>, ///

    The current status of the snapshot job. Valid values:

    ///
      @@ -36,16 +36,16 @@ pub struct GetResourceSnapshotJobOutput { _request_id: Option, } impl GetResourceSnapshotJobOutput { - ///

      The catalog in which the snapshot job was created. This will match the catalog specified in the request.

      + ///

      The catalog in which the snapshot job was created. This will match the Catalog specified in the request.

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

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

      + ///

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

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

      he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

      + ///

      The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

      pub fn arn(&self) -> ::std::option::Option<&str> { self.arn.as_deref() } @@ -53,11 +53,11 @@ impl GetResourceSnapshotJobOutput { pub fn engagement_id(&self) -> ::std::option::Option<&str> { self.engagement_id.as_deref() } - ///

      The type of resource being snapshotted. This would have Opportunity as a value as it is dependent on the supported resource type.

      + ///

      The type of resource being snapshotted. This would have "Opportunity" as a value as it is dependent on the supported resource type.

      pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> { self.resource_type.as_ref() } - ///

      The identifier of the specific resource being snapshotted. The format may vary depending on the ResourceType.

      + ///

      The identifier of the specific resource being snapshotted. The format might vary depending on the ResourceType.

      pub fn resource_id(&self) -> ::std::option::Option<&str> { self.resource_id.as_deref() } @@ -69,7 +69,7 @@ impl GetResourceSnapshotJobOutput { pub fn resource_snapshot_template_name(&self) -> ::std::option::Option<&str> { self.resource_snapshot_template_name.as_deref() } - ///

      The date and time when the snapshot job was created, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      + ///

      The date and time when the snapshot job was created in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> { self.created_at.as_ref() } @@ -123,46 +123,46 @@ pub struct GetResourceSnapshotJobOutputBuilder { _request_id: Option, } impl GetResourceSnapshotJobOutputBuilder { - ///

      The catalog in which the snapshot job was created. This will match the catalog specified in the request.

      + ///

      The catalog in which the snapshot job was created. This will match the Catalog specified in the request.

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

      The catalog in which the snapshot job was created. This will match the catalog specified in the request.

      + ///

      The catalog in which the snapshot job was created. This will match the Catalog specified in the request.

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

      The catalog in which the snapshot job was created. This will match the catalog specified in the request.

      + ///

      The catalog in which the snapshot job was created. This will match the Catalog specified in the request.

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

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

      + ///

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

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

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

      + ///

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

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

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

      + ///

      The unique identifier of the snapshot job. This matches the ResourceSnapshotJobIdentifier provided in the request.

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

      he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

      + ///

      The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

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

      he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

      + ///

      The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

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

      he Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

      + ///

      The Amazon Resource Name (ARN) of the snapshot job. This globally unique identifier can be used for resource-specific operations across AWS services.

      pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> { &self.arn } @@ -180,31 +180,31 @@ impl GetResourceSnapshotJobOutputBuilder { pub fn get_engagement_id(&self) -> &::std::option::Option<::std::string::String> { &self.engagement_id } - ///

      The type of resource being snapshotted. This would have Opportunity as a value as it is dependent on the supported resource type.

      + ///

      The type of resource being snapshotted. This would have "Opportunity" as a value as it is dependent on the supported resource type.

      pub fn resource_type(mut self, input: crate::types::ResourceType) -> Self { self.resource_type = ::std::option::Option::Some(input); self } - ///

      The type of resource being snapshotted. This would have Opportunity as a value as it is dependent on the supported resource type.

      + ///

      The type of resource being snapshotted. This would have "Opportunity" as a value as it is dependent on the supported resource type.

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

      The type of resource being snapshotted. This would have Opportunity as a value as it is dependent on the supported resource type.

      + ///

      The type of resource being snapshotted. This would have "Opportunity" as a value as it is dependent on the supported resource type.

      pub fn get_resource_type(&self) -> &::std::option::Option { &self.resource_type } - ///

      The identifier of the specific resource being snapshotted. The format may vary depending on the ResourceType.

      + ///

      The identifier of the specific resource being snapshotted. The format might vary depending on the ResourceType.

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

      The identifier of the specific resource being snapshotted. The format may vary depending on the ResourceType.

      + ///

      The identifier of the specific resource being snapshotted. The format might vary depending on the ResourceType.

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

      The identifier of the specific resource being snapshotted. The format may vary depending on the ResourceType.

      + ///

      The identifier of the specific resource being snapshotted. The format might vary depending on the ResourceType.

      pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> { &self.resource_id } @@ -236,17 +236,17 @@ impl GetResourceSnapshotJobOutputBuilder { pub fn get_resource_snapshot_template_name(&self) -> &::std::option::Option<::std::string::String> { &self.resource_snapshot_template_name } - ///

      The date and time when the snapshot job was created, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      + ///

      The date and time when the snapshot job was created in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.created_at = ::std::option::Option::Some(input); self } - ///

      The date and time when the snapshot job was created, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      + ///

      The date and time when the snapshot job was created in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.created_at = input; self } - ///

      The date and time when the snapshot job was created, in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      + ///

      The date and time when the snapshot job was created in ISO 8601 format (UTC). Example: "2023-05-01T20:37:46Z"

      pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.created_at } diff --git a/sdk/partnercentralselling/src/operation/list_engagement_members/_list_engagement_members_input.rs b/sdk/partnercentralselling/src/operation/list_engagement_members/_list_engagement_members_input.rs index 0c53b710fe3f..4ddffc02d65e 100644 --- a/sdk/partnercentralselling/src/operation/list_engagement_members/_list_engagement_members_input.rs +++ b/sdk/partnercentralselling/src/operation/list_engagement_members/_list_engagement_members_input.rs @@ -5,7 +5,7 @@ pub struct ListEngagementMembersInput { ///

      The catalog related to the request.

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

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

      pub identifier: ::std::option::Option<::std::string::String>, ///

      The maximum number of results to return in a single call.

      pub max_results: ::std::option::Option, @@ -17,7 +17,7 @@ impl ListEngagementMembersInput { pub fn catalog(&self) -> ::std::option::Option<&str> { self.catalog.as_deref() } - ///

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

      pub fn identifier(&self) -> ::std::option::Option<&str> { self.identifier.as_deref() } @@ -62,18 +62,18 @@ impl ListEngagementMembersInputBuilder { pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { &self.catalog } - ///

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

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

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

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

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

      pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.identifier } diff --git a/sdk/partnercentralselling/src/operation/list_engagement_members/builders.rs b/sdk/partnercentralselling/src/operation/list_engagement_members/builders.rs index b0ba6c425e04..861b0e989001 100644 --- a/sdk/partnercentralselling/src/operation/list_engagement_members/builders.rs +++ b/sdk/partnercentralselling/src/operation/list_engagement_members/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_engagement_members::builders::ListEngagementMembersI } /// Fluent builder constructing a request to `ListEngagementMembers`. /// -///

      Retrieves the details of member partners in an engagement. This operation can only be invoked by members of the engagement. The ListEngagementMembers operation allows you to fetch information about the members of a specific engagement. This action is restricted to members of the engagement being queried.

      +///

      Retrieves the details of member partners in an Engagement. This operation can only be invoked by members of the Engagement. The ListEngagementMembers operation allows you to fetch information about the members of a specific Engagement. This action is restricted to members of the Engagement being queried.

      #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListEngagementMembersFluentBuilder { handle: ::std::sync::Arc, @@ -128,17 +128,17 @@ impl ListEngagementMembersFluentBuilder { pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_catalog() } - ///

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

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

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

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

      Identifier of the engagement record to retrieve members from.

      + ///

      Identifier of the Engagement record to retrieve members from.

      pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_identifier() } diff --git a/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/_list_engagement_resource_associations_input.rs b/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/_list_engagement_resource_associations_input.rs index c425e00e7aea..480de3ab7804 100644 --- a/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/_list_engagement_resource_associations_input.rs +++ b/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/_list_engagement_resource_associations_input.rs @@ -3,7 +3,13 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct ListEngagementResourceAssociationsInput { - ///

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

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

      Limits the number of results returned in a single call. Use this to control the number of results returned, especially useful for pagination.

      pub max_results: ::std::option::Option, @@ -15,11 +21,17 @@ pub struct ListEngagementResourceAssociationsInput { pub resource_type: ::std::option::Option, ///

      Filters the results to include only associations with the specified resource. Varies depending on the resource type. Use this when you want to find all engagements associated with a specific resource.

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

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

      pub created_by: ::std::option::Option<::std::string::String>, } impl ListEngagementResourceAssociationsInput { - ///

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

      • + ///
      pub fn catalog(&self) -> ::std::option::Option<&str> { self.catalog.as_deref() } @@ -43,7 +55,7 @@ impl ListEngagementResourceAssociationsInput { pub fn resource_identifier(&self) -> ::std::option::Option<&str> { self.resource_identifier.as_deref() } - ///

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

      pub fn created_by(&self) -> ::std::option::Option<&str> { self.created_by.as_deref() } @@ -81,18 +93,36 @@ pub struct ListEngagementResourceAssociationsInputBuilder { pub(crate) created_by: ::std::option::Option<::std::string::String>, } impl ListEngagementResourceAssociationsInputBuilder { - ///

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

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

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

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

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

      • + ///
      pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { &self.catalog } @@ -166,17 +196,17 @@ impl ListEngagementResourceAssociationsInputBuilder { pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

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

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

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

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

      pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> { &self.created_by } diff --git a/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/builders.rs b/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/builders.rs index ed085d1ae65a..e5bd2fab45f4 100644 --- a/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/builders.rs +++ b/sdk/partnercentralselling/src/operation/list_engagement_resource_associations/builders.rs @@ -114,17 +114,35 @@ impl ListEngagementResourceAssociationsFluentBuilder { pub fn into_paginator(self) -> crate::operation::list_engagement_resource_associations::paginator::ListEngagementResourceAssociationsPaginator { crate::operation::list_engagement_resource_associations::paginator::ListEngagementResourceAssociationsPaginator::new(self.handle, self.inner) } - ///

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

      • + ///
      pub fn catalog(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.catalog(input.into()); self } - ///

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

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

      Specifies the catalog in which to search for engagement-resource associations.

      + ///

      Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"

      + ///
        + ///
      • + ///

        AWS for production environments.

      • + ///
      • + ///

        Sandbox for testing and development purposes.

      • + ///
      pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_catalog() } @@ -198,17 +216,17 @@ impl ListEngagementResourceAssociationsFluentBuilder { pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_identifier() } - ///

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

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

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

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

      Filters the results to include only associations with resources owned by the specified AWS account. Use this when you want to find associations related to resources owned by a particular account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.

      pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_created_by() } diff --git a/sdk/partnercentralselling/src/operation/list_engagements/builders.rs b/sdk/partnercentralselling/src/operation/list_engagements/builders.rs index 145d17aa3654..968fb94322df 100644 --- a/sdk/partnercentralselling/src/operation/list_engagements/builders.rs +++ b/sdk/partnercentralselling/src/operation/list_engagements/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_engagements::builders::ListEngagementsInputBuilder { } /// Fluent builder constructing a request to `ListEngagements`. /// -///

      This action allows users to retrieve a list of engagement records from Partner Central. This action can be used to manage and track various engagements across different stages of the partner selling process.

      +///

      This action allows users to retrieve a list of Engagement records from Partner Central. This action can be used to manage and track various engagements across different stages of the partner selling process.

      #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListEngagementsFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/partnercentralselling/src/operation/list_resource_snapshot_jobs.rs b/sdk/partnercentralselling/src/operation/list_resource_snapshot_jobs.rs index 90c3ad41c0b4..b80bd4274844 100644 --- a/sdk/partnercentralselling/src/operation/list_resource_snapshot_jobs.rs +++ b/sdk/partnercentralselling/src/operation/list_resource_snapshot_jobs.rs @@ -258,6 +258,9 @@ pub enum ListResourceSnapshotJobsError { ///

      This error occurs when you don't have permission to perform the requested action.

      ///

      You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

      AccessDeniedException(crate::types::error::AccessDeniedException), + ///

      This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.

      + ///

      Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.

      + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), ///

      This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.

      ///

      This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.

      ThrottlingException(crate::types::error::ThrottlingException), @@ -298,6 +301,7 @@ impl ListResourceSnapshotJobsError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, @@ -307,6 +311,10 @@ impl ListResourceSnapshotJobsError { pub fn is_access_denied_exception(&self) -> bool { matches!(self, Self::AccessDeniedException(_)) } + /// Returns `true` if the error kind is `ListResourceSnapshotJobsError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } /// Returns `true` if the error kind is `ListResourceSnapshotJobsError::ThrottlingException`. pub fn is_throttling_exception(&self) -> bool { matches!(self, Self::ThrottlingException(_)) @@ -320,6 +328,7 @@ impl ::std::error::Error for ListResourceSnapshotJobsError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), Self::ValidationException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), @@ -330,6 +339,7 @@ impl ::std::fmt::Display for ListResourceSnapshotJobsError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), Self::ThrottlingException(_inner) => _inner.fmt(f), Self::ValidationException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { @@ -354,6 +364,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListResourceS fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, diff --git a/sdk/partnercentralselling/src/operation/list_resource_snapshots/_list_resource_snapshots_input.rs b/sdk/partnercentralselling/src/operation/list_resource_snapshots/_list_resource_snapshots_input.rs index 138be61ac607..9c60b0acf2f6 100644 --- a/sdk/partnercentralselling/src/operation/list_resource_snapshots/_list_resource_snapshots_input.rs +++ b/sdk/partnercentralselling/src/operation/list_resource_snapshots/_list_resource_snapshots_input.rs @@ -17,7 +17,7 @@ pub struct ListResourceSnapshotsInput { pub resource_identifier: ::std::option::Option<::std::string::String>, ///

      Filters the response to include only snapshots created using the specified template.

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

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

      pub created_by: ::std::option::Option<::std::string::String>, } impl ListResourceSnapshotsInput { @@ -49,7 +49,7 @@ impl ListResourceSnapshotsInput { pub fn resource_snapshot_template_identifier(&self) -> ::std::option::Option<&str> { self.resource_snapshot_template_identifier.as_deref() } - ///

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

      pub fn created_by(&self) -> ::std::option::Option<&str> { self.created_by.as_deref() } @@ -189,17 +189,17 @@ impl ListResourceSnapshotsInputBuilder { pub fn get_resource_snapshot_template_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_snapshot_template_identifier } - ///

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

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

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

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

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

      pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> { &self.created_by } diff --git a/sdk/partnercentralselling/src/operation/list_resource_snapshots/builders.rs b/sdk/partnercentralselling/src/operation/list_resource_snapshots/builders.rs index 79629eac00ae..07314443a3d7 100644 --- a/sdk/partnercentralselling/src/operation/list_resource_snapshots/builders.rs +++ b/sdk/partnercentralselling/src/operation/list_resource_snapshots/builders.rs @@ -22,7 +22,19 @@ impl crate::operation::list_resource_snapshots::builders::ListResourceSnapshotsI } /// Fluent builder constructing a request to `ListResourceSnapshots`. /// -///

      Retrieves a list of resource view snapshots based on specified criteria.

      +///

      Retrieves a list of resource view snapshots based on specified criteria. This operation supports various use cases, including:

      +///
        +///
      • +///

        Fetching all snapshots associated with an engagement.

      • +///
      • +///

        Retrieving snapshots of a specific resource type within an engagement.

      • +///
      • +///

        Obtaining snapshots for a particular resource using a specified template.

      • +///
      • +///

        Accessing the latest snapshot of a resource within an engagement.

      • +///
      • +///

        Filtering snapshots by resource owner.

      • +///
      #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListResourceSnapshotsFluentBuilder { handle: ::std::sync::Arc, @@ -212,17 +224,17 @@ impl ListResourceSnapshotsFluentBuilder { pub fn get_resource_snapshot_template_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_snapshot_template_identifier() } - ///

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

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

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

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

      Filters the response to include only snapshots of resources created by the specified AWS account.

      + ///

      Filters the response to include only snapshots of resources owned by the specified AWS account.

      pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_created_by() } diff --git a/sdk/partnercentralselling/src/operation/list_tags_for_resource.rs b/sdk/partnercentralselling/src/operation/list_tags_for_resource.rs new file mode 100644 index 000000000000..90c37798ece1 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/list_tags_for_resource.rs @@ -0,0 +1,411 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `ListTagsForResource`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct ListTagsForResource; +impl ListTagsForResource { + /// Creates a new `ListTagsForResource` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::list_tags_for_resource::ListTagsForResourceInput, + ) -> ::std::result::Result< + crate::operation::list_tags_for_resource::ListTagsForResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::list_tags_for_resource::ListTagsForResourceError, + ::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::list_tags_for_resource::ListTagsForResourceInput, + 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( + "partnercentralselling", + "ListTagsForResource", + 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 ListTagsForResource { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ListTagsForResource"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + ListTagsForResourceRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + ListTagsForResourceResponseDeserializer, + )); + + 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( + "ListTagsForResource", + "partnercentralselling", + )); + 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("ListTagsForResource") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(ListTagsForResourceEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::list_tags_for_resource::ListTagsForResourceError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::list_tags_for_resource::ListTagsForResourceError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::list_tags_for_resource::ListTagsForResourceError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct ListTagsForResourceResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListTagsForResourceResponseDeserializer { + 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_list_tags_for_resource::de_list_tags_for_resource_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_list_tags_for_resource::de_list_tags_for_resource_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct ListTagsForResourceRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListTagsForResourceRequestSerializer { + #[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::list_tags_for_resource::ListTagsForResourceInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + ::std::write!(output, "/").expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::list_tags_for_resource::ListTagsForResourceInput, + 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("POST").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/x-amz-json-1.0"); + builder = _header_serialization_settings.set_default_header( + builder, + ::http::header::HeaderName::from_static("x-amz-target"), + "AWSPartnerCentralSelling.ListTagsForResource", + ); + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_tags_for_resource::ser_list_tags_for_resource_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 ListTagsForResourceEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListTagsForResourceEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "ListTagsForResourceEndpointParamsInterceptor" + } + + 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 ListTagsForResourceInput")?; + + let params = crate::config::endpoint::Params::builder() + .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())) + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .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 `ListTagsForResourceError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum ListTagsForResourceError { + ///

      This error occurs when you don't have permission to perform the requested action.

      + ///

      You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

      + AccessDeniedException(crate::types::error::AccessDeniedException), + ///

      This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.

      + ///

      Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.

      + InternalServerException(crate::types::error::InternalServerException), + ///

      This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.

      + ///

      Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.

      + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

      This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.

      + ///

      This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.

      + ThrottlingException(crate::types::error::ThrottlingException), + ///

      The input fails to satisfy the constraints specified by the service or business validation rules.

      + ///

      Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.

      + ValidationException(crate::types::error::ValidationException), + /// 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-ListTagsForResourceError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl ListTagsForResourceError { + /// Creates the `ListTagsForResourceError::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 `ListTagsForResourceError::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::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `ListTagsForResourceError::AccessDeniedException`. + pub fn is_access_denied_exception(&self) -> bool { + matches!(self, Self::AccessDeniedException(_)) + } + /// Returns `true` if the error kind is `ListTagsForResourceError::InternalServerException`. + pub fn is_internal_server_exception(&self) -> bool { + matches!(self, Self::InternalServerException(_)) + } + /// Returns `true` if the error kind is `ListTagsForResourceError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `ListTagsForResourceError::ThrottlingException`. + pub fn is_throttling_exception(&self) -> bool { + matches!(self, Self::ThrottlingException(_)) + } + /// Returns `true` if the error kind is `ListTagsForResourceError::ValidationException`. + pub fn is_validation_exception(&self) -> bool { + matches!(self, Self::ValidationException(_)) + } +} +impl ::std::error::Error for ListTagsForResourceError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), + Self::ValidationException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for ListTagsForResourceError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::InternalServerException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ThrottlingException(_inner) => _inner.fmt(f), + Self::ValidationException(_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 ListTagsForResourceError { + 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 ListTagsForResourceError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListTagsForResourceError { + 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::list_tags_for_resource::ListTagsForResourceError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::list_tags_for_resource::_list_tags_for_resource_output::ListTagsForResourceOutput; + +pub use crate::operation::list_tags_for_resource::_list_tags_for_resource_input::ListTagsForResourceInput; + +mod _list_tags_for_resource_input; + +mod _list_tags_for_resource_output; + +/// Builders +pub mod builders; diff --git a/sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_input.rs b/sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_input.rs new file mode 100644 index 000000000000..ebde28b0dbb2 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_input.rs @@ -0,0 +1,53 @@ +// 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 ListTagsForResourceInput { + ///

      The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.

      + pub resource_arn: ::std::option::Option<::std::string::String>, +} +impl ListTagsForResourceInput { + ///

      The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.

      + pub fn resource_arn(&self) -> ::std::option::Option<&str> { + self.resource_arn.as_deref() + } +} +impl ListTagsForResourceInput { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceInput`](crate::operation::list_tags_for_resource::ListTagsForResourceInput). + pub fn builder() -> crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder { + crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder::default() + } +} + +/// A builder for [`ListTagsForResourceInput`](crate::operation::list_tags_for_resource::ListTagsForResourceInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct ListTagsForResourceInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, +} +impl ListTagsForResourceInputBuilder { + ///

      The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.

      + /// 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 resource for which you want to retrieve tags.

      + 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 resource for which you want to retrieve tags.

      + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + /// Consumes the builder and constructs a [`ListTagsForResourceInput`](crate::operation::list_tags_for_resource::ListTagsForResourceInput). + pub fn build( + self, + ) -> ::std::result::Result + { + ::std::result::Result::Ok(crate::operation::list_tags_for_resource::ListTagsForResourceInput { + resource_arn: self.resource_arn, + }) + } +} diff --git a/sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_output.rs b/sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_output.rs new file mode 100644 index 000000000000..c67a9cfaed09 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/list_tags_for_resource/_list_tags_for_resource_output.rs @@ -0,0 +1,83 @@ +// 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 ListTagsForResourceOutput { + ///

      A map of the key-value pairs for the tag or tags assigned to the specified resource.

      + pub tags: ::std::vec::Vec, + _request_id: Option, +} +impl ListTagsForResourceOutput { + ///

      A map of the key-value pairs for the tag or tags assigned to the specified resource.

      + pub fn tags(&self) -> &[crate::types::Tag] { + use std::ops::Deref; + self.tags.deref() + } +} +impl ::aws_types::request_id::RequestId for ListTagsForResourceOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl ListTagsForResourceOutput { + /// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::operation::list_tags_for_resource::ListTagsForResourceOutput). + pub fn builder() -> crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder { + crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder::default() + } +} + +/// A builder for [`ListTagsForResourceOutput`](crate::operation::list_tags_for_resource::ListTagsForResourceOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct ListTagsForResourceOutputBuilder { + pub(crate) tags: ::std::option::Option<::std::vec::Vec>, + _request_id: Option, +} +impl ListTagsForResourceOutputBuilder { + /// Appends an item to `tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + ///

      A map of the key-value pairs for the tag or tags assigned to the specified resource.

      + pub fn tags(mut self, input: crate::types::Tag) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input); + self.tags = ::std::option::Option::Some(v); + self + } + ///

      A map of the key-value pairs for the tag or tags assigned to the specified resource.

      + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.tags = input; + self + } + ///

      A map of the key-value pairs for the tag or tags assigned to the specified resource.

      + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + &self.tags + } + 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 [`ListTagsForResourceOutput`](crate::operation::list_tags_for_resource::ListTagsForResourceOutput). + /// This method will fail if any of the following fields are not set: + /// - [`tags`](crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder::tags) + pub fn build( + self, + ) -> ::std::result::Result + { + ::std::result::Result::Ok(crate::operation::list_tags_for_resource::ListTagsForResourceOutput { + tags: self.tags.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "tags", + "tags was not specified but it is required when building ListTagsForResourceOutput", + ) + })?, + _request_id: self._request_id, + }) + } +} diff --git a/sdk/partnercentralselling/src/operation/list_tags_for_resource/builders.rs b/sdk/partnercentralselling/src/operation/list_tags_for_resource/builders.rs new file mode 100644 index 000000000000..e157ee5ea5a1 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/list_tags_for_resource/builders.rs @@ -0,0 +1,125 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::list_tags_for_resource::_list_tags_for_resource_output::ListTagsForResourceOutputBuilder; + +pub use crate::operation::list_tags_for_resource::_list_tags_for_resource_input::ListTagsForResourceInputBuilder; + +impl crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::list_tags_for_resource::ListTagsForResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::list_tags_for_resource::ListTagsForResourceError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.list_tags_for_resource(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `ListTagsForResource`. +/// +///

      Returns a list of tags for a resource.

      +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct ListTagsForResourceFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::list_tags_for_resource::ListTagsForResourceOutput, + crate::operation::list_tags_for_resource::ListTagsForResourceError, + > for ListTagsForResourceFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::list_tags_for_resource::ListTagsForResourceOutput, + crate::operation::list_tags_for_resource::ListTagsForResourceError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl ListTagsForResourceFluentBuilder { + /// Creates a new `ListTagsForResourceFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the ListTagsForResource as a reference. + pub fn as_input(&self) -> &crate::operation::list_tags_for_resource::builders::ListTagsForResourceInputBuilder { + &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::list_tags_for_resource::ListTagsForResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::list_tags_for_resource::ListTagsForResourceError, + ::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::list_tags_for_resource::ListTagsForResource::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::list_tags_for_resource::ListTagsForResource::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::list_tags_for_resource::ListTagsForResourceOutput, + crate::operation::list_tags_for_resource::ListTagsForResourceError, + 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 resource for which you want to retrieve tags.

      + 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 resource for which you want to retrieve tags.

      + 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 resource for which you want to retrieve tags.

      + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } +} diff --git a/sdk/partnercentralselling/src/operation/reject_engagement_invitation.rs b/sdk/partnercentralselling/src/operation/reject_engagement_invitation.rs index 0cf6806310b6..e31ea3cc4a55 100644 --- a/sdk/partnercentralselling/src/operation/reject_engagement_invitation.rs +++ b/sdk/partnercentralselling/src/operation/reject_engagement_invitation.rs @@ -258,6 +258,9 @@ pub enum RejectEngagementInvitationError { ///

      This error occurs when you don't have permission to perform the requested action.

      ///

      You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

      AccessDeniedException(crate::types::error::AccessDeniedException), + ///

      This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.

      + ///

      Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.

      + ConflictException(crate::types::error::ConflictException), ///

      This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.

      ///

      Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.

      InternalServerException(crate::types::error::InternalServerException), @@ -304,6 +307,7 @@ impl RejectEngagementInvitationError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), @@ -315,6 +319,10 @@ impl RejectEngagementInvitationError { pub fn is_access_denied_exception(&self) -> bool { matches!(self, Self::AccessDeniedException(_)) } + /// Returns `true` if the error kind is `RejectEngagementInvitationError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } /// Returns `true` if the error kind is `RejectEngagementInvitationError::InternalServerException`. pub fn is_internal_server_exception(&self) -> bool { matches!(self, Self::InternalServerException(_)) @@ -336,6 +344,7 @@ impl ::std::error::Error for RejectEngagementInvitationError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner), Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), @@ -348,6 +357,7 @@ impl ::std::fmt::Display for RejectEngagementInvitationError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), Self::InternalServerException(_inner) => _inner.fmt(f), Self::ResourceNotFoundException(_inner) => _inner.fmt(f), Self::ThrottlingException(_inner) => _inner.fmt(f), @@ -374,6 +384,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RejectEngagem fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), diff --git a/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_input.rs b/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_input.rs index 293ce27f03b2..a7b0272581e7 100644 --- a/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_input.rs +++ b/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_input.rs @@ -9,6 +9,8 @@ pub struct StartEngagementByAcceptingInvitationTaskInput { pub client_token: ::std::option::Option<::std::string::String>, ///

      Specifies the unique identifier of the EngagementInvitation to be accepted. Providing the correct identifier helps ensure that the correct engagement is processed.

      pub identifier: ::std::option::Option<::std::string::String>, + /// A list of objects specifying each tag name and value. + pub tags: ::std::option::Option<::std::vec::Vec>, } impl StartEngagementByAcceptingInvitationTaskInput { ///

      Specifies the catalog related to the task. Use AWS for production engagements and Sandbox for testing scenarios.

      @@ -23,6 +25,12 @@ impl StartEngagementByAcceptingInvitationTaskInput { pub fn identifier(&self) -> ::std::option::Option<&str> { self.identifier.as_deref() } + /// A list of objects specifying each tag name and value. + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`. + pub fn tags(&self) -> &[crate::types::Tag] { + self.tags.as_deref().unwrap_or_default() + } } impl StartEngagementByAcceptingInvitationTaskInput { /// Creates a new builder-style object to manufacture [`StartEngagementByAcceptingInvitationTaskInput`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskInput). @@ -39,6 +47,7 @@ pub struct StartEngagementByAcceptingInvitationTaskInputBuilder { pub(crate) catalog: ::std::option::Option<::std::string::String>, pub(crate) client_token: ::std::option::Option<::std::string::String>, pub(crate) identifier: ::std::option::Option<::std::string::String>, + pub(crate) tags: ::std::option::Option<::std::vec::Vec>, } impl StartEngagementByAcceptingInvitationTaskInputBuilder { ///

      Specifies the catalog related to the task. Use AWS for production engagements and Sandbox for testing scenarios.

      @@ -86,6 +95,26 @@ impl StartEngagementByAcceptingInvitationTaskInputBuilder { pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.identifier } + /// Appends an item to `tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + /// A list of objects specifying each tag name and value. + pub fn tags(mut self, input: crate::types::Tag) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input); + self.tags = ::std::option::Option::Some(v); + self + } + /// A list of objects specifying each tag name and value. + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.tags = input; + self + } + /// A list of objects specifying each tag name and value. + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + &self.tags + } /// Consumes the builder and constructs a [`StartEngagementByAcceptingInvitationTaskInput`](crate::operation::start_engagement_by_accepting_invitation_task::StartEngagementByAcceptingInvitationTaskInput). pub fn build( self, @@ -98,6 +127,7 @@ impl StartEngagementByAcceptingInvitationTaskInputBuilder { catalog: self.catalog, client_token: self.client_token, identifier: self.identifier, + tags: self.tags, }, ) } diff --git a/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_output.rs b/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_output.rs index ff2f93e175cb..a2b5e967c8a9 100644 --- a/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_output.rs +++ b/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/_start_engagement_by_accepting_invitation_task_output.rs @@ -17,7 +17,7 @@ pub struct StartEngagementByAcceptingInvitationTaskOutput { pub reason_code: ::std::option::Option, ///

      Returns the original opportunity identifier passed in the request. This is the unique identifier for the opportunity.

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

      The identifier of the resource snapshot job created as part of this task.

      + ///

      The identifier of the Resource Snapshot Job created as part of this task.

      pub resource_snapshot_job_id: ::std::option::Option<::std::string::String>, ///

      Returns the identifier of the engagement invitation that was accepted and used to create the opportunity.

      pub engagement_invitation_id: ::std::option::Option<::std::string::String>, @@ -52,7 +52,7 @@ impl StartEngagementByAcceptingInvitationTaskOutput { pub fn opportunity_id(&self) -> ::std::option::Option<&str> { self.opportunity_id.as_deref() } - ///

      The identifier of the resource snapshot job created as part of this task.

      + ///

      The identifier of the Resource Snapshot Job created as part of this task.

      pub fn resource_snapshot_job_id(&self) -> ::std::option::Option<&str> { self.resource_snapshot_job_id.as_deref() } @@ -188,17 +188,17 @@ impl StartEngagementByAcceptingInvitationTaskOutputBuilder { pub fn get_opportunity_id(&self) -> &::std::option::Option<::std::string::String> { &self.opportunity_id } - ///

      The identifier of the resource snapshot job created as part of this task.

      + ///

      The identifier of the Resource Snapshot Job created as part of this task.

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

      The identifier of the resource snapshot job created as part of this task.

      + ///

      The identifier of the Resource Snapshot Job created as part of this task.

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

      The identifier of the resource snapshot job created as part of this task.

      + ///

      The identifier of the Resource Snapshot Job created as part of this task.

      pub fn get_resource_snapshot_job_id(&self) -> &::std::option::Option<::std::string::String> { &self.resource_snapshot_job_id } diff --git a/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/builders.rs b/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/builders.rs index c01b515a2882..f7e6bade9a5e 100644 --- a/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/builders.rs +++ b/sdk/partnercentralselling/src/operation/start_engagement_by_accepting_invitation_task/builders.rs @@ -157,4 +157,23 @@ impl StartEngagementByAcceptingInvitationTaskFluentBuilder { pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_identifier() } + /// + /// Appends an item to `Tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + /// A list of objects specifying each tag name and value. + pub fn tags(mut self, input: crate::types::Tag) -> Self { + self.inner = self.inner.tags(input); + self + } + /// A list of objects specifying each tag name and value. + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.inner = self.inner.set_tags(input); + self + } + /// A list of objects specifying each tag name and value. + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + self.inner.get_tags() + } } diff --git a/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_input.rs b/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_input.rs index 20a55f6f02c5..c025a3ff66e8 100644 --- a/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_input.rs +++ b/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_input.rs @@ -11,6 +11,8 @@ pub struct StartEngagementFromOpportunityTaskInput { pub identifier: ::std::option::Option<::std::string::String>, ///

      Indicates the level of AWS involvement in the opportunity. This field helps track AWS participation throughout the engagement, such as providing technical support, deal assistance, and sales support.

      pub aws_submission: ::std::option::Option, + /// A list of objects specifying each tag name and value. + pub tags: ::std::option::Option<::std::vec::Vec>, } impl StartEngagementFromOpportunityTaskInput { ///

      Specifies the catalog in which the engagement is tracked. Acceptable values include AWS for production and Sandbox for testing environments.

      @@ -29,6 +31,12 @@ impl StartEngagementFromOpportunityTaskInput { pub fn aws_submission(&self) -> ::std::option::Option<&crate::types::AwsSubmission> { self.aws_submission.as_ref() } + /// A list of objects specifying each tag name and value. + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`. + pub fn tags(&self) -> &[crate::types::Tag] { + self.tags.as_deref().unwrap_or_default() + } } impl StartEngagementFromOpportunityTaskInput { /// Creates a new builder-style object to manufacture [`StartEngagementFromOpportunityTaskInput`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskInput). @@ -45,6 +53,7 @@ pub struct StartEngagementFromOpportunityTaskInputBuilder { pub(crate) client_token: ::std::option::Option<::std::string::String>, pub(crate) identifier: ::std::option::Option<::std::string::String>, pub(crate) aws_submission: ::std::option::Option, + pub(crate) tags: ::std::option::Option<::std::vec::Vec>, } impl StartEngagementFromOpportunityTaskInputBuilder { ///

      Specifies the catalog in which the engagement is tracked. Acceptable values include AWS for production and Sandbox for testing environments.

      @@ -107,6 +116,26 @@ impl StartEngagementFromOpportunityTaskInputBuilder { pub fn get_aws_submission(&self) -> &::std::option::Option { &self.aws_submission } + /// Appends an item to `tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + /// A list of objects specifying each tag name and value. + pub fn tags(mut self, input: crate::types::Tag) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input); + self.tags = ::std::option::Option::Some(v); + self + } + /// A list of objects specifying each tag name and value. + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.tags = input; + self + } + /// A list of objects specifying each tag name and value. + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + &self.tags + } /// Consumes the builder and constructs a [`StartEngagementFromOpportunityTaskInput`](crate::operation::start_engagement_from_opportunity_task::StartEngagementFromOpportunityTaskInput). pub fn build( self, @@ -120,6 +149,7 @@ impl StartEngagementFromOpportunityTaskInputBuilder { client_token: self.client_token, identifier: self.identifier, aws_submission: self.aws_submission, + tags: self.tags, }, ) } diff --git a/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_output.rs b/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_output.rs index d5bc797a5d13..ddb2b7eda37f 100644 --- a/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_output.rs +++ b/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/_start_engagement_from_opportunity_task_output.rs @@ -17,11 +17,11 @@ pub struct StartEngagementFromOpportunityTaskOutput { pub reason_code: ::std::option::Option, ///

      Returns the original opportunity identifier passed in the request, which is the unique identifier for the opportunity created in the partner’s system.

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

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

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

      The identifier of the newly created engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the newly created Engagement. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the new engagement invitation. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the new Engagement invitation. Only populated if TaskStatus is COMPLETE.

      pub engagement_invitation_id: ::std::option::Option<::std::string::String>, _request_id: Option, } @@ -54,15 +54,15 @@ impl StartEngagementFromOpportunityTaskOutput { pub fn opportunity_id(&self) -> ::std::option::Option<&str> { self.opportunity_id.as_deref() } - ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

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

      The identifier of the newly created engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the newly created Engagement. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the new engagement invitation. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the new Engagement invitation. Only populated if TaskStatus is COMPLETE.

      pub fn engagement_invitation_id(&self) -> ::std::option::Option<&str> { self.engagement_invitation_id.as_deref() } @@ -194,45 +194,45 @@ impl StartEngagementFromOpportunityTaskOutputBuilder { pub fn get_opportunity_id(&self) -> &::std::option::Option<::std::string::String> { &self.opportunity_id } - ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

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

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

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

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the resource snapshot job created to add the opportunity resource snapshot to the Engagement. Only populated if TaskStatus is COMPLETE

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

      The identifier of the newly created engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the newly created Engagement. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the newly created engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the newly created Engagement. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the newly created engagement. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the newly created Engagement. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the new engagement invitation. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the new Engagement invitation. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the new engagement invitation. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the new Engagement invitation. Only populated if TaskStatus is COMPLETE.

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

      The identifier of the new engagement invitation. Only populated if TaskStatus is COMPLETE.

      + ///

      The identifier of the new Engagement invitation. Only populated if TaskStatus is COMPLETE.

      pub fn get_engagement_invitation_id(&self) -> &::std::option::Option<::std::string::String> { &self.engagement_invitation_id } diff --git a/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/builders.rs b/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/builders.rs index a638e81907db..a61356eb4fc6 100644 --- a/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/builders.rs +++ b/sdk/partnercentralselling/src/operation/start_engagement_from_opportunity_task/builders.rs @@ -164,4 +164,23 @@ impl StartEngagementFromOpportunityTaskFluentBuilder { pub fn get_aws_submission(&self) -> &::std::option::Option { self.inner.get_aws_submission() } + /// + /// Appends an item to `Tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + /// A list of objects specifying each tag name and value. + pub fn tags(mut self, input: crate::types::Tag) -> Self { + self.inner = self.inner.tags(input); + self + } + /// A list of objects specifying each tag name and value. + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.inner = self.inner.set_tags(input); + self + } + /// A list of objects specifying each tag name and value. + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + self.inner.get_tags() + } } diff --git a/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/_start_resource_snapshot_job_input.rs b/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/_start_resource_snapshot_job_input.rs index 5ce8d99a2609..cd4a6d24bf17 100644 --- a/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/_start_resource_snapshot_job_input.rs +++ b/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/_start_resource_snapshot_job_input.rs @@ -3,13 +3,25 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct StartResourceSnapshotJobInput { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

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

      The identifier of the resource snapshot job to start.

      pub resource_snapshot_job_identifier: ::std::option::Option<::std::string::String>, } impl StartResourceSnapshotJobInput { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn catalog(&self) -> ::std::option::Option<&str> { self.catalog.as_deref() } @@ -33,18 +45,36 @@ pub struct StartResourceSnapshotJobInputBuilder { pub(crate) resource_snapshot_job_identifier: ::std::option::Option<::std::string::String>, } impl StartResourceSnapshotJobInputBuilder { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { &self.catalog } diff --git a/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/builders.rs b/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/builders.rs index b668970de2f5..d5c5ebd2f141 100644 --- a/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/builders.rs +++ b/sdk/partnercentralselling/src/operation/start_resource_snapshot_job/builders.rs @@ -108,17 +108,35 @@ impl StartResourceSnapshotJobFluentBuilder { self.config_override = config_override; self } - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn catalog(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.catalog(input.into()); self } - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Starts the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Starts the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_catalog() } diff --git a/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/_stop_resource_snapshot_job_input.rs b/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/_stop_resource_snapshot_job_input.rs index 15548ee3f76a..6d719997038e 100644 --- a/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/_stop_resource_snapshot_job_input.rs +++ b/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/_stop_resource_snapshot_job_input.rs @@ -3,13 +3,25 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct StopResourceSnapshotJobInput { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

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

      The identifier of the job to stop.

      pub resource_snapshot_job_identifier: ::std::option::Option<::std::string::String>, } impl StopResourceSnapshotJobInput { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn catalog(&self) -> ::std::option::Option<&str> { self.catalog.as_deref() } @@ -33,18 +45,36 @@ pub struct StopResourceSnapshotJobInputBuilder { pub(crate) resource_snapshot_job_identifier: ::std::option::Option<::std::string::String>, } impl StopResourceSnapshotJobInputBuilder { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { &self.catalog } diff --git a/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/builders.rs b/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/builders.rs index 07c139bd97d7..83bb631641f3 100644 --- a/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/builders.rs +++ b/sdk/partnercentralselling/src/operation/stop_resource_snapshot_job/builders.rs @@ -108,17 +108,35 @@ impl StopResourceSnapshotJobFluentBuilder { self.config_override = config_override; self } - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn catalog(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.catalog(input.into()); self } - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Stops the request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Stops the request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_catalog() } diff --git a/sdk/partnercentralselling/src/operation/submit_opportunity/_submit_opportunity_input.rs b/sdk/partnercentralselling/src/operation/submit_opportunity/_submit_opportunity_input.rs index fe7f62d32c46..c49825dfa92b 100644 --- a/sdk/partnercentralselling/src/operation/submit_opportunity/_submit_opportunity_input.rs +++ b/sdk/partnercentralselling/src/operation/submit_opportunity/_submit_opportunity_input.rs @@ -3,29 +3,65 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct SubmitOpportunityInput { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

      • + ///
      pub catalog: ::std::option::Option<::std::string::String>, - ///

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub involvement_type: ::std::option::Option, - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub visibility: ::std::option::Option, } impl SubmitOpportunityInput { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub fn involvement_type(&self) -> ::std::option::Option<&crate::types::SalesInvolvementType> { self.involvement_type.as_ref() } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn visibility(&self) -> ::std::option::Option<&crate::types::Visibility> { self.visibility.as_ref() } @@ -47,62 +83,116 @@ pub struct SubmitOpportunityInputBuilder { pub(crate) visibility: ::std::option::Option, } impl SubmitOpportunityInputBuilder { - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

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

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub fn set_involvement_type(mut self, input: ::std::option::Option) -> Self { self.involvement_type = input; self } - ///

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub fn get_involvement_type(&self) -> &::std::option::Option { &self.involvement_type } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn visibility(mut self, input: crate::types::Visibility) -> Self { self.visibility = ::std::option::Option::Some(input); self } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn set_visibility(mut self, input: ::std::option::Option) -> Self { self.visibility = input; self } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn get_visibility(&self) -> &::std::option::Option { &self.visibility } diff --git a/sdk/partnercentralselling/src/operation/submit_opportunity/builders.rs b/sdk/partnercentralselling/src/operation/submit_opportunity/builders.rs index 9616365beafa..7f3023d0f490 100644 --- a/sdk/partnercentralselling/src/operation/submit_opportunity/builders.rs +++ b/sdk/partnercentralselling/src/operation/submit_opportunity/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::submit_opportunity::builders::SubmitOpportunityInputBuild } /// Fluent builder constructing a request to `SubmitOpportunity`. /// -///

      Use this action to submit an opportunity that was previously created by partner for AWS review. After you perform this action, the opportunity becomes non-editable until it is reviewed by AWS and has LifeCycle.ReviewStatus as either Approved or Action Required.

      +///

      Use this action to submit an Opportunity that was previously created by partner for AWS review. After you perform this action, the Opportunity becomes non-editable until it is reviewed by AWS and has LifeCycle.ReviewStatus as either Approved or Action Required.

      #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct SubmitOpportunityFluentBuilder { handle: ::std::sync::Arc, @@ -108,59 +108,113 @@ impl SubmitOpportunityFluentBuilder { self.config_override = config_override; self } - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

      • + ///
      pub fn catalog(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.catalog(input.into()); self } - ///

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

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

      Specifies the catalog related to the request.

      + ///

      Specifies the catalog related to the request. Valid values are:

      + ///
        + ///
      • + ///

        AWS: Submits the opportunity request from the production AWS environment.

      • + ///
      • + ///

        Sandbox: Submits the opportunity request from a sandbox environment used for testing or development purposes.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      The identifier of the opportunity previously created by partner and needs to be submitted.

      + ///

      The identifier of the Opportunity previously created by partner and needs to be submitted.

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

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub fn involvement_type(mut self, input: crate::types::SalesInvolvementType) -> Self { self.inner = self.inner.involvement_type(input); self } - ///

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub fn set_involvement_type(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_involvement_type(input); self } - ///

      Specifies the level of AWS sellers' involvement on the opportunity.

      + ///

      Specifies the level of AWS sellers' involvement on the opportunity. Valid values:

      + ///
        + ///
      • + ///

        Co-sell: Indicates the user wants to co-sell with AWS. Share the opportunity with AWS to receive deal assistance and support.

      • + ///
      • + ///

        For Visibility Only: Indicates that the user does not need support from AWS Sales Rep. Share this opportunity with AWS for visibility only, you will not receive deal assistance and support.

      • + ///
      pub fn get_involvement_type(&self) -> &::std::option::Option { self.inner.get_involvement_type() } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn visibility(mut self, input: crate::types::Visibility) -> Self { self.inner = self.inner.visibility(input); self } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn set_visibility(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_visibility(input); self } - ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full.

      + ///

      Determines whether to restrict visibility of the opportunity from AWS sales. Default value is Full. Valid values:

      + ///
        + ///
      • + ///

        Full: The opportunity is fully visible to AWS sales.

      • + ///
      • + ///

        Limited: The opportunity has restricted visibility to AWS sales.

      • + ///
      pub fn get_visibility(&self) -> &::std::option::Option { self.inner.get_visibility() } diff --git a/sdk/partnercentralselling/src/operation/tag_resource.rs b/sdk/partnercentralselling/src/operation/tag_resource.rs new file mode 100644 index 000000000000..e245fbb56673 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/tag_resource.rs @@ -0,0 +1,414 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `TagResource`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct TagResource; +impl TagResource { + /// Creates a new `TagResource` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::tag_resource::TagResourceInput, + ) -> ::std::result::Result< + crate::operation::tag_resource::TagResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::tag_resource::TagResourceError, + ::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::tag_resource::TagResourceInput, + 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("partnercentralselling", "TagResource", 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 TagResource { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("TagResource"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + TagResourceRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + TagResourceResponseDeserializer, + )); + + 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( + "TagResource", + "partnercentralselling", + )); + 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("TagResource") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(TagResourceEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::tag_resource::TagResourceError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::tag_resource::TagResourceError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::tag_resource::TagResourceError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct TagResourceResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TagResourceResponseDeserializer { + 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_tag_resource::de_tag_resource_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_tag_resource::de_tag_resource_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct TagResourceRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for TagResourceRequestSerializer { + #[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::tag_resource::TagResourceInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + ::std::write!(output, "/").expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::tag_resource::TagResourceInput, + 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("POST").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/x-amz-json-1.0"); + builder = _header_serialization_settings.set_default_header( + builder, + ::http::header::HeaderName::from_static("x-amz-target"), + "AWSPartnerCentralSelling.TagResource", + ); + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_tag_resource::ser_tag_resource_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 TagResourceEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for TagResourceEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "TagResourceEndpointParamsInterceptor" + } + + 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 TagResourceInput")?; + + let params = crate::config::endpoint::Params::builder() + .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())) + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .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 `TagResourceError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum TagResourceError { + ///

      This error occurs when you don't have permission to perform the requested action.

      + ///

      You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

      + AccessDeniedException(crate::types::error::AccessDeniedException), + ///

      This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.

      + ///

      Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.

      + ConflictException(crate::types::error::ConflictException), + ///

      This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.

      + ///

      Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.

      + InternalServerException(crate::types::error::InternalServerException), + ///

      This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.

      + ///

      Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.

      + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

      This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.

      + ///

      This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.

      + ThrottlingException(crate::types::error::ThrottlingException), + ///

      The input fails to satisfy the constraints specified by the service or business validation rules.

      + ///

      Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.

      + ValidationException(crate::types::error::ValidationException), + /// 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-TagResourceError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl TagResourceError { + /// Creates the `TagResourceError::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 `TagResourceError::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::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `TagResourceError::AccessDeniedException`. + pub fn is_access_denied_exception(&self) -> bool { + matches!(self, Self::AccessDeniedException(_)) + } + /// Returns `true` if the error kind is `TagResourceError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } + /// Returns `true` if the error kind is `TagResourceError::InternalServerException`. + pub fn is_internal_server_exception(&self) -> bool { + matches!(self, Self::InternalServerException(_)) + } + /// Returns `true` if the error kind is `TagResourceError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `TagResourceError::ThrottlingException`. + pub fn is_throttling_exception(&self) -> bool { + matches!(self, Self::ThrottlingException(_)) + } + /// Returns `true` if the error kind is `TagResourceError::ValidationException`. + pub fn is_validation_exception(&self) -> bool { + matches!(self, Self::ValidationException(_)) + } +} +impl ::std::error::Error for TagResourceError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), + Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), + Self::ValidationException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for TagResourceError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), + Self::InternalServerException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ThrottlingException(_inner) => _inner.fmt(f), + Self::ValidationException(_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 TagResourceError { + 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 TagResourceError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for TagResourceError { + 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::tag_resource::TagResourceError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::tag_resource::_tag_resource_output::TagResourceOutput; + +pub use crate::operation::tag_resource::_tag_resource_input::TagResourceInput; + +mod _tag_resource_input; + +mod _tag_resource_output; + +/// Builders +pub mod builders; diff --git a/sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_input.rs b/sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_input.rs new file mode 100644 index 000000000000..7d6b417392c2 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_input.rs @@ -0,0 +1,80 @@ +// 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 TagResourceInput { + ///

      The Amazon Resource Name (ARN) of the resource that you want to tag.

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

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub tags: ::std::option::Option<::std::vec::Vec>, +} +impl TagResourceInput { + ///

      The Amazon Resource Name (ARN) of the resource that you want to tag.

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

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`. + pub fn tags(&self) -> &[crate::types::Tag] { + self.tags.as_deref().unwrap_or_default() + } +} +impl TagResourceInput { + /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput). + pub fn builder() -> crate::operation::tag_resource::builders::TagResourceInputBuilder { + crate::operation::tag_resource::builders::TagResourceInputBuilder::default() + } +} + +/// A builder for [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct TagResourceInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, + pub(crate) tags: ::std::option::Option<::std::vec::Vec>, +} +impl TagResourceInputBuilder { + ///

      The Amazon Resource Name (ARN) of the resource that you want to tag.

      + /// 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 resource that you want to tag.

      + 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 resource that you want to tag.

      + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + /// Appends an item to `tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + ///

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub fn tags(mut self, input: crate::types::Tag) -> Self { + let mut v = self.tags.unwrap_or_default(); + v.push(input); + self.tags = ::std::option::Option::Some(v); + self + } + ///

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.tags = input; + self + } + ///

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + &self.tags + } + /// Consumes the builder and constructs a [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput). + pub fn build(self) -> ::std::result::Result { + ::std::result::Result::Ok(crate::operation::tag_resource::TagResourceInput { + resource_arn: self.resource_arn, + tags: self.tags, + }) + } +} diff --git a/sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_output.rs b/sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_output.rs new file mode 100644 index 000000000000..deb8ac09be79 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/tag_resource/_tag_resource_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 TagResourceOutput { + _request_id: Option, +} +impl ::aws_types::request_id::RequestId for TagResourceOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl TagResourceOutput { + /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput). + pub fn builder() -> crate::operation::tag_resource::builders::TagResourceOutputBuilder { + crate::operation::tag_resource::builders::TagResourceOutputBuilder::default() + } +} + +/// A builder for [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct TagResourceOutputBuilder { + _request_id: Option, +} +impl TagResourceOutputBuilder { + 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 [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput). + pub fn build(self) -> crate::operation::tag_resource::TagResourceOutput { + crate::operation::tag_resource::TagResourceOutput { + _request_id: self._request_id, + } + } +} diff --git a/sdk/partnercentralselling/src/operation/tag_resource/builders.rs b/sdk/partnercentralselling/src/operation/tag_resource/builders.rs new file mode 100644 index 000000000000..96913475fb0b --- /dev/null +++ b/sdk/partnercentralselling/src/operation/tag_resource/builders.rs @@ -0,0 +1,144 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::tag_resource::_tag_resource_output::TagResourceOutputBuilder; + +pub use crate::operation::tag_resource::_tag_resource_input::TagResourceInputBuilder; + +impl crate::operation::tag_resource::builders::TagResourceInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::tag_resource::TagResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::tag_resource::TagResourceError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.tag_resource(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `TagResource`. +/// +///

      Assigns one or more tags (key-value pairs) to the specified resource.

      +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct TagResourceFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::tag_resource::builders::TagResourceInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::tag_resource::TagResourceOutput, + crate::operation::tag_resource::TagResourceError, + > for TagResourceFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::tag_resource::TagResourceOutput, + crate::operation::tag_resource::TagResourceError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl TagResourceFluentBuilder { + /// Creates a new `TagResourceFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the TagResource as a reference. + pub fn as_input(&self) -> &crate::operation::tag_resource::builders::TagResourceInputBuilder { + &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::tag_resource::TagResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::tag_resource::TagResourceError, + ::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::tag_resource::TagResource::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::tag_resource::TagResource::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::tag_resource::TagResourceOutput, + crate::operation::tag_resource::TagResourceError, + 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 resource that you want to tag.

      + 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 resource that you want to tag.

      + 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 resource that you want to tag.

      + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } + /// + /// Appends an item to `Tags`. + /// + /// To override the contents of this collection use [`set_tags`](Self::set_tags). + /// + ///

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub fn tags(mut self, input: crate::types::Tag) -> Self { + self.inner = self.inner.tags(input); + self + } + ///

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { + self.inner = self.inner.set_tags(input); + self + } + ///

      A map of the key-value pairs of the tag or tags to assign to the resource.

      + pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec> { + self.inner.get_tags() + } +} diff --git a/sdk/partnercentralselling/src/operation/untag_resource.rs b/sdk/partnercentralselling/src/operation/untag_resource.rs new file mode 100644 index 000000000000..8946cb8aeaea --- /dev/null +++ b/sdk/partnercentralselling/src/operation/untag_resource.rs @@ -0,0 +1,420 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `UntagResource`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct UntagResource; +impl UntagResource { + /// Creates a new `UntagResource` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::untag_resource::UntagResourceInput, + ) -> ::std::result::Result< + crate::operation::untag_resource::UntagResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::untag_resource::UntagResourceError, + ::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::untag_resource::UntagResourceInput, + 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( + "partnercentralselling", + "UntagResource", + 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 UntagResource { + fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> { + let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UntagResource"); + + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new( + UntagResourceRequestSerializer, + )); + cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new( + UntagResourceResponseDeserializer, + )); + + 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( + "UntagResource", + "partnercentralselling", + )); + 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("UntagResource") + .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default()) + .with_interceptor(UntagResourceEndpointParamsInterceptor) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::< + crate::operation::untag_resource::UntagResourceError, + >::new()) + .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::< + crate::operation::untag_resource::UntagResourceError, + >::new()) + .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::< + crate::operation::untag_resource::UntagResourceError, + >::new()); + + ::std::borrow::Cow::Owned(rcb) + } +} + +#[derive(Debug)] +struct UntagResourceResponseDeserializer; +impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UntagResourceResponseDeserializer { + 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_untag_resource::de_untag_resource_http_error(status, headers, body) + } else { + crate::protocol_serde::shape_untag_resource::de_untag_resource_http_response(status, headers, body) + }; + crate::protocol_serde::type_erase_result(parse_result) + } +} +#[derive(Debug)] +struct UntagResourceRequestSerializer; +impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UntagResourceRequestSerializer { + #[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::untag_resource::UntagResourceInput, + output: &mut ::std::string::String, + ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> { + use ::std::fmt::Write as _; + ::std::write!(output, "/").expect("formatting should succeed"); + ::std::result::Result::Ok(()) + } + #[allow(clippy::unnecessary_wraps)] + fn update_http_builder( + input: &crate::operation::untag_resource::UntagResourceInput, + 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("POST").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/x-amz-json-1.0"); + builder = _header_serialization_settings.set_default_header( + builder, + ::http::header::HeaderName::from_static("x-amz-target"), + "AWSPartnerCentralSelling.UntagResource", + ); + builder + }; + let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_untag_resource::ser_untag_resource_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 UntagResourceEndpointParamsInterceptor; + +impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UntagResourceEndpointParamsInterceptor { + fn name(&self) -> &'static str { + "UntagResourceEndpointParamsInterceptor" + } + + 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 UntagResourceInput")?; + + let params = crate::config::endpoint::Params::builder() + .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())) + .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned())) + .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 `UntagResourceError` operation. +#[non_exhaustive] +#[derive(::std::fmt::Debug)] +pub enum UntagResourceError { + ///

      This error occurs when you don't have permission to perform the requested action.

      + ///

      You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.

      + AccessDeniedException(crate::types::error::AccessDeniedException), + ///

      This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.

      + ///

      Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.

      + ConflictException(crate::types::error::ConflictException), + ///

      This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.

      + ///

      Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.

      + InternalServerException(crate::types::error::InternalServerException), + ///

      This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.

      + ///

      Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.

      + ResourceNotFoundException(crate::types::error::ResourceNotFoundException), + ///

      This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.

      + ///

      This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.

      + ThrottlingException(crate::types::error::ThrottlingException), + ///

      The input fails to satisfy the constraints specified by the service or business validation rules.

      + ///

      Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.

      + ValidationException(crate::types::error::ValidationException), + /// 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-UntagResourceError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl UntagResourceError { + /// Creates the `UntagResourceError::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 `UntagResourceError::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::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::Unhandled(e) => &e.meta, + } + } + /// Returns `true` if the error kind is `UntagResourceError::AccessDeniedException`. + pub fn is_access_denied_exception(&self) -> bool { + matches!(self, Self::AccessDeniedException(_)) + } + /// Returns `true` if the error kind is `UntagResourceError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } + /// Returns `true` if the error kind is `UntagResourceError::InternalServerException`. + pub fn is_internal_server_exception(&self) -> bool { + matches!(self, Self::InternalServerException(_)) + } + /// Returns `true` if the error kind is `UntagResourceError::ResourceNotFoundException`. + pub fn is_resource_not_found_exception(&self) -> bool { + matches!(self, Self::ResourceNotFoundException(_)) + } + /// Returns `true` if the error kind is `UntagResourceError::ThrottlingException`. + pub fn is_throttling_exception(&self) -> bool { + matches!(self, Self::ThrottlingException(_)) + } + /// Returns `true` if the error kind is `UntagResourceError::ValidationException`. + pub fn is_validation_exception(&self) -> bool { + matches!(self, Self::ValidationException(_)) + } +} +impl ::std::error::Error for UntagResourceError { + fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { + match self { + Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), + Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner), + Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner), + Self::ValidationException(_inner) => ::std::option::Option::Some(_inner), + Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), + } + } +} +impl ::std::fmt::Display for UntagResourceError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + match self { + Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), + Self::InternalServerException(_inner) => _inner.fmt(f), + Self::ResourceNotFoundException(_inner) => _inner.fmt(f), + Self::ThrottlingException(_inner) => _inner.fmt(f), + Self::ValidationException(_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 UntagResourceError { + 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 UntagResourceError { + fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { + match self { + Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::Unhandled(_inner) => &_inner.meta, + } + } +} +impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UntagResourceError { + 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::untag_resource::UntagResourceError { + fn request_id(&self) -> Option<&str> { + self.meta().request_id() + } +} + +pub use crate::operation::untag_resource::_untag_resource_output::UntagResourceOutput; + +pub use crate::operation::untag_resource::_untag_resource_input::UntagResourceInput; + +mod _untag_resource_input; + +mod _untag_resource_output; + +/// Builders +pub mod builders; diff --git a/sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_input.rs b/sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_input.rs new file mode 100644 index 000000000000..330667aecbe2 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_input.rs @@ -0,0 +1,82 @@ +// 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 UntagResourceInput { + ///

      The Amazon Resource Name (ARN) of the resource that you want to untag.

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

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

      + pub tag_keys: ::std::option::Option<::std::vec::Vec<::std::string::String>>, +} +impl UntagResourceInput { + ///

      The Amazon Resource Name (ARN) of the resource that you want to untag.

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

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

      + /// + /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tag_keys.is_none()`. + pub fn tag_keys(&self) -> &[::std::string::String] { + self.tag_keys.as_deref().unwrap_or_default() + } +} +impl UntagResourceInput { + /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput). + pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceInputBuilder { + crate::operation::untag_resource::builders::UntagResourceInputBuilder::default() + } +} + +/// A builder for [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct UntagResourceInputBuilder { + pub(crate) resource_arn: ::std::option::Option<::std::string::String>, + pub(crate) tag_keys: ::std::option::Option<::std::vec::Vec<::std::string::String>>, +} +impl UntagResourceInputBuilder { + ///

      The Amazon Resource Name (ARN) of the resource that you want to untag.

      + /// 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 resource that you want to untag.

      + 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 resource that you want to untag.

      + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + &self.resource_arn + } + /// Appends an item to `tag_keys`. + /// + /// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys). + /// + ///

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

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

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

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

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

      + pub fn get_tag_keys(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { + &self.tag_keys + } + /// Consumes the builder and constructs a [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput). + pub fn build( + self, + ) -> ::std::result::Result { + ::std::result::Result::Ok(crate::operation::untag_resource::UntagResourceInput { + resource_arn: self.resource_arn, + tag_keys: self.tag_keys, + }) + } +} diff --git a/sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_output.rs b/sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_output.rs new file mode 100644 index 000000000000..286734ed0167 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/untag_resource/_untag_resource_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 UntagResourceOutput { + _request_id: Option, +} +impl ::aws_types::request_id::RequestId for UntagResourceOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl UntagResourceOutput { + /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput). + pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceOutputBuilder { + crate::operation::untag_resource::builders::UntagResourceOutputBuilder::default() + } +} + +/// A builder for [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct UntagResourceOutputBuilder { + _request_id: Option, +} +impl UntagResourceOutputBuilder { + 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 [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput). + pub fn build(self) -> crate::operation::untag_resource::UntagResourceOutput { + crate::operation::untag_resource::UntagResourceOutput { + _request_id: self._request_id, + } + } +} diff --git a/sdk/partnercentralselling/src/operation/untag_resource/builders.rs b/sdk/partnercentralselling/src/operation/untag_resource/builders.rs new file mode 100644 index 000000000000..e26549fc4c17 --- /dev/null +++ b/sdk/partnercentralselling/src/operation/untag_resource/builders.rs @@ -0,0 +1,144 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub use crate::operation::untag_resource::_untag_resource_output::UntagResourceOutputBuilder; + +pub use crate::operation::untag_resource::_untag_resource_input::UntagResourceInputBuilder; + +impl crate::operation::untag_resource::builders::UntagResourceInputBuilder { + /// Sends a request with this input using the given client. + pub async fn send_with( + self, + client: &crate::Client, + ) -> ::std::result::Result< + crate::operation::untag_resource::UntagResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::untag_resource::UntagResourceError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let mut fluent_builder = client.untag_resource(); + fluent_builder.inner = self; + fluent_builder.send().await + } +} +/// Fluent builder constructing a request to `UntagResource`. +/// +///

      Removes a tag or tags from a resource.

      +#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct UntagResourceFluentBuilder { + handle: ::std::sync::Arc, + inner: crate::operation::untag_resource::builders::UntagResourceInputBuilder, + config_override: ::std::option::Option, +} +impl + crate::client::customize::internal::CustomizableSend< + crate::operation::untag_resource::UntagResourceOutput, + crate::operation::untag_resource::UntagResourceError, + > for UntagResourceFluentBuilder +{ + fn send( + self, + config_override: crate::config::Builder, + ) -> crate::client::customize::internal::BoxFuture< + crate::client::customize::internal::SendResult< + crate::operation::untag_resource::UntagResourceOutput, + crate::operation::untag_resource::UntagResourceError, + >, + > { + ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await }) + } +} +impl UntagResourceFluentBuilder { + /// Creates a new `UntagResourceFluentBuilder`. + pub(crate) fn new(handle: ::std::sync::Arc) -> Self { + Self { + handle, + inner: ::std::default::Default::default(), + config_override: ::std::option::Option::None, + } + } + /// Access the UntagResource as a reference. + pub fn as_input(&self) -> &crate::operation::untag_resource::builders::UntagResourceInputBuilder { + &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::untag_resource::UntagResourceOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::untag_resource::UntagResourceError, + ::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::untag_resource::UntagResource::operation_runtime_plugins( + self.handle.runtime_plugins.clone(), + &self.handle.conf, + self.config_override, + ); + crate::operation::untag_resource::UntagResource::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::untag_resource::UntagResourceOutput, + crate::operation::untag_resource::UntagResourceError, + 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 resource that you want to untag.

      + 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 resource that you want to untag.

      + 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 resource that you want to untag.

      + pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> { + self.inner.get_resource_arn() + } + /// + /// Appends an item to `TagKeys`. + /// + /// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys). + /// + ///

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

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

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

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

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

      + pub fn get_tag_keys(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { + self.inner.get_tag_keys() + } +} diff --git a/sdk/partnercentralselling/src/operation/update_opportunity/_update_opportunity_input.rs b/sdk/partnercentralselling/src/operation/update_opportunity/_update_opportunity_input.rs index f724cc8f4156..252ff6372793 100644 --- a/sdk/partnercentralselling/src/operation/update_opportunity/_update_opportunity_input.rs +++ b/sdk/partnercentralselling/src/operation/update_opportunity/_update_opportunity_input.rs @@ -24,8 +24,6 @@ pub struct UpdateOpportunityInput { ///

      Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

      ///
    • ///

      Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

    • - ///
    • - ///

      Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

    • ///
    pub primary_needs_from_aws: ::std::option::Option<::std::vec::Vec>, ///

    Specifies if the opportunity is associated with national security concerns. This flag is only applicable when the industry is Government. For national-security-related opportunities, validation and compliance rules may apply, impacting the opportunity's visibility and processing.

    @@ -82,8 +80,6 @@ impl UpdateOpportunityInput { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// /// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.primary_needs_from_aws.is_none()`. @@ -203,8 +199,6 @@ impl UpdateOpportunityInputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn primary_needs_from_aws(mut self, input: crate::types::PrimaryNeedFromAws) -> Self { let mut v = self.primary_needs_from_aws.unwrap_or_default(); @@ -231,8 +225,6 @@ impl UpdateOpportunityInputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn set_primary_needs_from_aws(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.primary_needs_from_aws = input; @@ -257,8 +249,6 @@ impl UpdateOpportunityInputBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn get_primary_needs_from_aws(&self) -> &::std::option::Option<::std::vec::Vec> { &self.primary_needs_from_aws diff --git a/sdk/partnercentralselling/src/operation/update_opportunity/builders.rs b/sdk/partnercentralselling/src/operation/update_opportunity/builders.rs index 5a7b4a49d93f..ed9f30daa3a2 100644 --- a/sdk/partnercentralselling/src/operation/update_opportunity/builders.rs +++ b/sdk/partnercentralselling/src/operation/update_opportunity/builders.rs @@ -147,8 +147,6 @@ impl UpdateOpportunityFluentBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn primary_needs_from_aws(mut self, input: crate::types::PrimaryNeedFromAws) -> Self { self.inner = self.inner.primary_needs_from_aws(input); @@ -173,8 +171,6 @@ impl UpdateOpportunityFluentBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn set_primary_needs_from_aws(mut self, input: ::std::option::Option<::std::vec::Vec>) -> Self { self.inner = self.inner.set_primary_needs_from_aws(input); @@ -199,8 +195,6 @@ impl UpdateOpportunityFluentBuilder { ///

    Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).

    ///
  • ///

    Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs RFx support from Amazon Web Services.

  • - ///
  • - ///

    Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an Amazon Web Services Sales representative. The opportunity is managed solely by the partner. It's possible to request coselling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity.

  • /// pub fn get_primary_needs_from_aws(&self) -> &::std::option::Option<::std::vec::Vec> { self.inner.get_primary_needs_from_aws() diff --git a/sdk/partnercentralselling/src/protocol_serde.rs b/sdk/partnercentralselling/src/protocol_serde.rs index 4dd82b6497f2..1b86a08ade75 100644 --- a/sdk/partnercentralselling/src/protocol_serde.rs +++ b/sdk/partnercentralselling/src/protocol_serde.rs @@ -77,6 +77,8 @@ pub(crate) mod shape_list_resource_snapshots; pub(crate) mod shape_list_solutions; +pub(crate) mod shape_list_tags_for_resource; + pub(crate) mod shape_put_selling_system_settings; pub(crate) mod shape_reject_engagement_invitation; @@ -91,6 +93,10 @@ pub(crate) mod shape_stop_resource_snapshot_job; pub(crate) mod shape_submit_opportunity; +pub(crate) mod shape_tag_resource; + +pub(crate) mod shape_untag_resource; + pub(crate) mod shape_update_opportunity; pub(crate) mod shape_accept_engagement_invitation_input; @@ -161,6 +167,8 @@ pub(crate) mod shape_list_resource_snapshots_input; pub(crate) mod shape_list_solutions_input; +pub(crate) mod shape_list_tags_for_resource_input; + pub(crate) mod shape_put_selling_system_settings_input; pub(crate) mod shape_reject_engagement_invitation_input; @@ -179,8 +187,12 @@ pub(crate) mod shape_stop_resource_snapshot_job_input; pub(crate) mod shape_submit_opportunity_input; +pub(crate) mod shape_tag_resource_input; + pub(crate) mod shape_throttling_exception; +pub(crate) mod shape_untag_resource_input; + pub(crate) mod shape_update_opportunity_input; pub(crate) mod shape_validation_exception; @@ -267,6 +279,10 @@ pub(crate) mod shape_solution_sort; pub(crate) mod shape_sort_object; +pub(crate) mod shape_tag; + +pub(crate) mod shape_tag_list; + pub(crate) mod shape_validation_exception_error_list; pub(crate) mod shape_account; diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_accept_engagement_invitation.rs b/sdk/partnercentralselling/src/protocol_serde/shape_accept_engagement_invitation.rs index e67193ca1332..fbc218bc7574 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_accept_engagement_invitation.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_accept_engagement_invitation.rs @@ -35,6 +35,21 @@ pub fn de_accept_engagement_invitation_http_error( } tmp }), + "ConflictException" => crate::operation::accept_engagement_invitation::AcceptEngagementInvitationError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::accept_engagement_invitation::AcceptEngagementInvitationError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "InternalServerException" => crate::operation::accept_engagement_invitation::AcceptEngagementInvitationError::InternalServerException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_create_resource_snapshot_job_input.rs b/sdk/partnercentralselling/src/protocol_serde/shape_create_resource_snapshot_job_input.rs index 70bd23f88fa0..4f5ca4ed87ee 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_create_resource_snapshot_job_input.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_create_resource_snapshot_job_input.rs @@ -21,5 +21,17 @@ pub fn ser_create_resource_snapshot_job_input_input( if let Some(var_6) = &input.resource_snapshot_template_identifier { object.key("ResourceSnapshotTemplateIdentifier").string(var_6.as_str()); } + if let Some(var_7) = &input.tags { + let mut array_8 = object.key("Tags").start_array(); + for item_9 in var_7 { + { + #[allow(unused_mut)] + let mut object_10 = array_8.value().start_object(); + crate::protocol_serde::shape_tag::ser_tag(&mut object_10, item_9)?; + object_10.finish(); + } + } + array_8.finish(); + } Ok(()) } diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_delete_resource_snapshot_job.rs b/sdk/partnercentralselling/src/protocol_serde/shape_delete_resource_snapshot_job.rs index f1e8db2a586e..5c49190754de 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_delete_resource_snapshot_job.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_delete_resource_snapshot_job.rs @@ -39,6 +39,21 @@ pub fn de_delete_resource_snapshot_job_http_error( } tmp }), + "ConflictException" => crate::operation::delete_resource_snapshot_job::DeleteResourceSnapshotJobError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_resource_snapshot_job::DeleteResourceSnapshotJobError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "ResourceNotFoundException" => crate::operation::delete_resource_snapshot_job::DeleteResourceSnapshotJobError::ResourceNotFoundException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_list_resource_snapshot_jobs.rs b/sdk/partnercentralselling/src/protocol_serde/shape_list_resource_snapshot_jobs.rs index 5019ca473c90..f4739ae1108e 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_list_resource_snapshot_jobs.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_list_resource_snapshot_jobs.rs @@ -39,6 +39,21 @@ pub fn de_list_resource_snapshot_jobs_http_error( } tmp }), + "ResourceNotFoundException" => crate::operation::list_resource_snapshot_jobs::ListResourceSnapshotJobsError::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::list_resource_snapshot_jobs::ListResourceSnapshotJobsError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "ThrottlingException" => crate::operation::list_resource_snapshot_jobs::ListResourceSnapshotJobsError::ThrottlingException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource.rs b/sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource.rs new file mode 100644 index 000000000000..4e8d8bbb294b --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource.rs @@ -0,0 +1,165 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_list_tags_for_resource_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::list_tags_for_resource::ListTagsForResourceOutput, + crate::operation::list_tags_for_resource::ListTagsForResourceError, +> { + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::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::list_tags_for_resource::ListTagsForResourceError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "AccessDeniedException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default(); + output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "InternalServerException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default(); + output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceNotFoundException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::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::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ThrottlingException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default(); + output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ValidationException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ValidationExceptionBuilder::default(); + output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::validation_exception_correct_errors(output) + .build() + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)? + }; + tmp + }), + _ => crate::operation::list_tags_for_resource::ListTagsForResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_list_tags_for_resource_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::list_tags_for_resource::ListTagsForResourceOutput, + crate::operation::list_tags_for_resource::ListTagsForResourceError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder::default(); + output = crate::protocol_serde::shape_list_tags_for_resource::de_list_tags_for_resource(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + crate::serde_util::list_tags_for_resource_output_output_correct_errors(output) + .build() + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)? + }) +} + +pub fn ser_list_tags_for_resource_input( + input: &crate::operation::list_tags_for_resource::ListTagsForResourceInput, +) -> 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_list_tags_for_resource_input::ser_list_tags_for_resource_input_input(&mut object, input)?; + object.finish(); + Ok(::aws_smithy_types::body::SdkBody::from(out)) +} + +pub(crate) fn de_list_tags_for_resource( + value: &[u8], + mut builder: crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder, +) -> Result< + crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder, + ::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() { + "Tags" => { + builder = builder.set_tags(crate::protocol_serde::shape_tag_list::de_tag_list(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/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource_input.rs b/sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource_input.rs new file mode 100644 index 000000000000..cfda79b621b5 --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_list_tags_for_resource_input.rs @@ -0,0 +1,10 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_list_tags_for_resource_input_input( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::operation::list_tags_for_resource::ListTagsForResourceInput, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.resource_arn { + object.key("ResourceArn").string(var_1.as_str()); + } + Ok(()) +} diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_reject_engagement_invitation.rs b/sdk/partnercentralselling/src/protocol_serde/shape_reject_engagement_invitation.rs index cde58bb4e1d2..499870f5f2c2 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_reject_engagement_invitation.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_reject_engagement_invitation.rs @@ -35,6 +35,21 @@ pub fn de_reject_engagement_invitation_http_error( } tmp }), + "ConflictException" => crate::operation::reject_engagement_invitation::RejectEngagementInvitationError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::reject_engagement_invitation::RejectEngagementInvitationError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "InternalServerException" => crate::operation::reject_engagement_invitation::RejectEngagementInvitationError::InternalServerException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_by_accepting_invitation_task_input.rs b/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_by_accepting_invitation_task_input.rs index df40f5db9c95..d4cc6c70f04e 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_by_accepting_invitation_task_input.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_by_accepting_invitation_task_input.rs @@ -12,5 +12,17 @@ pub fn ser_start_engagement_by_accepting_invitation_task_input_input( if let Some(var_3) = &input.identifier { object.key("Identifier").string(var_3.as_str()); } + if let Some(var_4) = &input.tags { + let mut array_5 = object.key("Tags").start_array(); + for item_6 in var_4 { + { + #[allow(unused_mut)] + let mut object_7 = array_5.value().start_object(); + crate::protocol_serde::shape_tag::ser_tag(&mut object_7, item_6)?; + object_7.finish(); + } + } + array_5.finish(); + } Ok(()) } diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_from_opportunity_task_input.rs b/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_from_opportunity_task_input.rs index ac9e27ac0114..05500032a84a 100644 --- a/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_from_opportunity_task_input.rs +++ b/sdk/partnercentralselling/src/protocol_serde/shape_start_engagement_from_opportunity_task_input.rs @@ -18,5 +18,17 @@ pub fn ser_start_engagement_from_opportunity_task_input_input( crate::protocol_serde::shape_aws_submission::ser_aws_submission(&mut object_5, var_4)?; object_5.finish(); } + if let Some(var_6) = &input.tags { + let mut array_7 = object.key("Tags").start_array(); + for item_8 in var_6 { + { + #[allow(unused_mut)] + let mut object_9 = array_7.value().start_object(); + crate::protocol_serde::shape_tag::ser_tag(&mut object_9, item_8)?; + object_9.finish(); + } + } + array_7.finish(); + } Ok(()) } diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_tag.rs b/sdk/partnercentralselling/src/protocol_serde/shape_tag.rs new file mode 100644 index 000000000000..1c4a971f3cec --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_tag.rs @@ -0,0 +1,62 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_tag( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::types::Tag, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + { + object.key("Key").string(input.key.as_str()); + } + { + object.key("Value").string(input.value.as_str()); + } + Ok(()) +} + +pub(crate) fn de_tag<'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::TagBuilder::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() { + "Key" => { + builder = builder.set_key( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Value" => { + builder = builder.set_value( + ::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 + ))) + } + } + } + Ok(Some(crate::serde_util::tag_correct_errors(builder).build().map_err(|err| { + ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err) + })?)) + } + _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_tag_list.rs b/sdk/partnercentralselling/src/protocol_serde/shape_tag_list.rs new file mode 100644 index 000000000000..6c4cac6e5c32 --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_tag_list.rs @@ -0,0 +1,32 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn de_tag_list<'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 = crate::protocol_serde::shape_tag::de_tag(tokens)?; + 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/partnercentralselling/src/protocol_serde/shape_tag_resource.rs b/sdk/partnercentralselling/src/protocol_serde/shape_tag_resource.rs new file mode 100644 index 000000000000..db5e1f2a1142 --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_tag_resource.rs @@ -0,0 +1,135 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_tag_resource_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::tag_resource::TagResourceError::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::tag_resource::TagResourceError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "AccessDeniedException" => crate::operation::tag_resource::TagResourceError::AccessDeniedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default(); + output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output) + .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ConflictException" => crate::operation::tag_resource::TagResourceError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "InternalServerException" => crate::operation::tag_resource::TagResourceError::InternalServerException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default(); + output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output) + .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceNotFoundException" => crate::operation::tag_resource::TagResourceError::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::tag_resource::TagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ThrottlingException" => crate::operation::tag_resource::TagResourceError::ThrottlingException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default(); + output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output) + .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ValidationException" => crate::operation::tag_resource::TagResourceError::ValidationException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ValidationExceptionBuilder::default(); + output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output) + .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::validation_exception_correct_errors(output) + .build() + .map_err(crate::operation::tag_resource::TagResourceError::unhandled)? + }; + tmp + }), + _ => crate::operation::tag_resource::TagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_tag_resource_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::tag_resource::builders::TagResourceOutputBuilder::default(); + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} + +pub fn ser_tag_resource_input( + input: &crate::operation::tag_resource::TagResourceInput, +) -> 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_tag_resource_input::ser_tag_resource_input_input(&mut object, input)?; + object.finish(); + Ok(::aws_smithy_types::body::SdkBody::from(out)) +} diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_tag_resource_input.rs b/sdk/partnercentralselling/src/protocol_serde/shape_tag_resource_input.rs new file mode 100644 index 000000000000..84c4a8b4a0db --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_tag_resource_input.rs @@ -0,0 +1,22 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_tag_resource_input_input( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::operation::tag_resource::TagResourceInput, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.resource_arn { + object.key("ResourceArn").string(var_1.as_str()); + } + if let Some(var_2) = &input.tags { + let mut array_3 = object.key("Tags").start_array(); + for item_4 in var_2 { + { + #[allow(unused_mut)] + let mut object_5 = array_3.value().start_object(); + crate::protocol_serde::shape_tag::ser_tag(&mut object_5, item_4)?; + object_5.finish(); + } + } + array_3.finish(); + } + Ok(()) +} diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_untag_resource.rs b/sdk/partnercentralselling/src/protocol_serde/shape_untag_resource.rs new file mode 100644 index 000000000000..5d88541d34bd --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_untag_resource.rs @@ -0,0 +1,135 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_untag_resource_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::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::unhandled(generic)), + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "AccessDeniedException" => crate::operation::untag_resource::UntagResourceError::AccessDeniedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default(); + output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output) + .map_err(crate::operation::untag_resource::UntagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ConflictException" => crate::operation::untag_resource::UntagResourceError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::untag_resource::UntagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "InternalServerException" => crate::operation::untag_resource::UntagResourceError::InternalServerException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default(); + output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output) + .map_err(crate::operation::untag_resource::UntagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ResourceNotFoundException" => crate::operation::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ThrottlingException" => crate::operation::untag_resource::UntagResourceError::ThrottlingException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default(); + output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output) + .map_err(crate::operation::untag_resource::UntagResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "ValidationException" => crate::operation::untag_resource::UntagResourceError::ValidationException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ValidationExceptionBuilder::default(); + output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output) + .map_err(crate::operation::untag_resource::UntagResourceError::unhandled)?; + let output = output.meta(generic); + crate::serde_util::validation_exception_correct_errors(output) + .build() + .map_err(crate::operation::untag_resource::UntagResourceError::unhandled)? + }; + tmp + }), + _ => crate::operation::untag_resource::UntagResourceError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_untag_resource_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::untag_resource::builders::UntagResourceOutputBuilder::default(); + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + output.build() + }) +} + +pub fn ser_untag_resource_input( + input: &crate::operation::untag_resource::UntagResourceInput, +) -> 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_untag_resource_input::ser_untag_resource_input_input(&mut object, input)?; + object.finish(); + Ok(::aws_smithy_types::body::SdkBody::from(out)) +} diff --git a/sdk/partnercentralselling/src/protocol_serde/shape_untag_resource_input.rs b/sdk/partnercentralselling/src/protocol_serde/shape_untag_resource_input.rs new file mode 100644 index 000000000000..ced548d8e058 --- /dev/null +++ b/sdk/partnercentralselling/src/protocol_serde/shape_untag_resource_input.rs @@ -0,0 +1,19 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_untag_resource_input_input( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::operation::untag_resource::UntagResourceInput, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.resource_arn { + object.key("ResourceArn").string(var_1.as_str()); + } + if let Some(var_2) = &input.tag_keys { + let mut array_3 = object.key("TagKeys").start_array(); + for item_4 in var_2 { + { + array_3.value().string(item_4.as_str()); + } + } + array_3.finish(); + } + Ok(()) +} diff --git a/sdk/partnercentralselling/src/serde_util.rs b/sdk/partnercentralselling/src/serde_util.rs index 1b4fc92f724b..85e5143922c8 100644 --- a/sdk/partnercentralselling/src/serde_util.rs +++ b/sdk/partnercentralselling/src/serde_util.rs @@ -167,6 +167,15 @@ pub(crate) fn list_solutions_output_output_correct_errors( builder } +pub(crate) fn list_tags_for_resource_output_output_correct_errors( + mut builder: crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder, +) -> crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder { + if builder.tags.is_none() { + builder.tags = Some(Default::default()) + } + builder +} + pub(crate) fn put_selling_system_settings_output_output_correct_errors( mut builder: crate::operation::put_selling_system_settings::builders::PutSellingSystemSettingsOutputBuilder, ) -> crate::operation::put_selling_system_settings::builders::PutSellingSystemSettingsOutputBuilder { @@ -298,6 +307,16 @@ pub(crate) fn solution_base_correct_errors(mut builder: crate::types::builders:: builder } +pub(crate) fn tag_correct_errors(mut builder: crate::types::builders::TagBuilder) -> crate::types::builders::TagBuilder { + if builder.key.is_none() { + builder.key = Some(Default::default()) + } + if builder.value.is_none() { + builder.value = Some(Default::default()) + } + builder +} + pub(crate) fn validation_exception_error_correct_errors( mut builder: crate::types::builders::ValidationExceptionErrorBuilder, ) -> crate::types::builders::ValidationExceptionErrorBuilder { diff --git a/sdk/partnercentralselling/src/types.rs b/sdk/partnercentralselling/src/types.rs index e6d045dd8a4b..e79dc43fdaa0 100644 --- a/sdk/partnercentralselling/src/types.rs +++ b/sdk/partnercentralselling/src/types.rs @@ -19,6 +19,8 @@ pub use crate::types::_resource_snapshot_job_status::ResourceSnapshotJobStatus; pub use crate::types::_resource_type::ResourceType; +pub use crate::types::_tag::Tag; + pub use crate::types::_resource_snapshot_job_summary::ResourceSnapshotJobSummary; pub use crate::types::_sort_object::SortObject; @@ -413,6 +415,8 @@ mod _sort_order; mod _stage; +mod _tag; + mod _task_status; mod _validation_exception_error; diff --git a/sdk/partnercentralselling/src/types/_engagement_resource_association_summary.rs b/sdk/partnercentralselling/src/types/_engagement_resource_association_summary.rs index 7b12b248501a..1f16501742be 100644 --- a/sdk/partnercentralselling/src/types/_engagement_resource_association_summary.rs +++ b/sdk/partnercentralselling/src/types/_engagement_resource_association_summary.rs @@ -12,7 +12,7 @@ pub struct EngagementResourceAssociationSummary { pub resource_type: ::std::option::Option, ///

    A unique identifier for the specific resource. Varies depending on the resource type.

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

    The AWS account ID of the entity that created the association.

    + ///

    The AWS account ID of the entity that owns the resource. Identifies the account responsible for or having primary control over the resource.

    pub created_by: ::std::option::Option<::std::string::String>, } impl EngagementResourceAssociationSummary { @@ -33,7 +33,7 @@ impl EngagementResourceAssociationSummary { pub fn resource_id(&self) -> ::std::option::Option<&str> { self.resource_id.as_deref() } - ///

    The AWS account ID of the entity that created the association.

    + ///

    The AWS account ID of the entity that owns the resource. Identifies the account responsible for or having primary control over the resource.

    pub fn created_by(&self) -> ::std::option::Option<&str> { self.created_by.as_deref() } @@ -124,17 +124,17 @@ impl EngagementResourceAssociationSummaryBuilder { pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> { &self.resource_id } - ///

    The AWS account ID of the entity that created the association.

    + ///

    The AWS account ID of the entity that owns the resource. Identifies the account responsible for or having primary control over the resource.

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

    The AWS account ID of the entity that created the association.

    + ///

    The AWS account ID of the entity that owns the resource. Identifies the account responsible for or having primary control over the resource.

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

    The AWS account ID of the entity that created the association.

    + ///

    The AWS account ID of the entity that owns the resource. Identifies the account responsible for or having primary control over the resource.

    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> { &self.created_by } diff --git a/sdk/partnercentralselling/src/types/_engagement_summary.rs b/sdk/partnercentralselling/src/types/_engagement_summary.rs index d3b2d817bb6d..e611cab28038 100644 --- a/sdk/partnercentralselling/src/types/_engagement_summary.rs +++ b/sdk/partnercentralselling/src/types/_engagement_summary.rs @@ -4,41 +4,41 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct EngagementSummary { - ///

    The Amazon Resource Name (ARN) of the created engagement.

    + ///

    The Amazon Resource Name (ARN) of the created Engagement.

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

    The unique identifier for the engagement.

    + ///

    The unique identifier for the Engagement.

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

    The title of the engagement.

    + ///

    The title of the Engagement.

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

    The date and time when the engagement was created.

    + ///

    The date and time when the Engagement was created.

    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>, - ///

    The AWS account ID of the engagement creator.

    + ///

    The AWS Account ID of the Engagement creator.

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

    The number of members in the engagement.

    + ///

    The number of members in the Engagement.

    pub member_count: ::std::option::Option, } impl EngagementSummary { - ///

    The Amazon Resource Name (ARN) of the created engagement.

    + ///

    The Amazon Resource Name (ARN) of the created Engagement.

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

    The unique identifier for the engagement.

    + ///

    The unique identifier for the Engagement.

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

    The title of the engagement.

    + ///

    The title of the Engagement.

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

    The date and time when the engagement was created.

    + ///

    The date and time when the Engagement was created.

    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> { self.created_at.as_ref() } - ///

    The AWS account ID of the engagement creator.

    + ///

    The AWS Account ID of the Engagement creator.

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

    The number of members in the engagement.

    + ///

    The number of members in the Engagement.

    pub fn member_count(&self) -> ::std::option::Option { self.member_count } @@ -74,87 +74,87 @@ pub struct EngagementSummaryBuilder { pub(crate) member_count: ::std::option::Option, } impl EngagementSummaryBuilder { - ///

    The Amazon Resource Name (ARN) of the created engagement.

    + ///

    The Amazon Resource Name (ARN) of the created Engagement.

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

    The Amazon Resource Name (ARN) of the created engagement.

    + ///

    The Amazon Resource Name (ARN) of the created Engagement.

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

    The Amazon Resource Name (ARN) of the created engagement.

    + ///

    The Amazon Resource Name (ARN) of the created Engagement.

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

    The unique identifier for the engagement.

    + ///

    The unique identifier for the Engagement.

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

    The unique identifier for the engagement.

    + ///

    The unique identifier for the Engagement.

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

    The unique identifier for the engagement.

    + ///

    The unique identifier for the Engagement.

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

    The title of the engagement.

    + ///

    The title of the Engagement.

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

    The title of the engagement.

    + ///

    The title of the Engagement.

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

    The title of the engagement.

    + ///

    The title of the Engagement.

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

    The date and time when the engagement was created.

    + ///

    The date and time when the Engagement was created.

    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.created_at = ::std::option::Option::Some(input); self } - ///

    The date and time when the engagement was created.

    + ///

    The date and time when the Engagement was created.

    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.created_at = input; self } - ///

    The date and time when the engagement was created.

    + ///

    The date and time when the Engagement was created.

    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.created_at } - ///

    The AWS account ID of the engagement creator.

    + ///

    The AWS Account ID of the Engagement creator.

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

    The AWS account ID of the engagement creator.

    + ///

    The AWS Account ID of the Engagement creator.

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

    The AWS account ID of the engagement creator.

    + ///

    The AWS Account ID of the Engagement creator.

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

    The number of members in the engagement.

    + ///

    The number of members in the Engagement.

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

    The number of members in the engagement.

    + ///

    The number of members in the Engagement.

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

    The number of members in the engagement.

    + ///

    The number of members in the Engagement.

    pub fn get_member_count(&self) -> &::std::option::Option { &self.member_count } diff --git a/sdk/partnercentralselling/src/types/_list_engagement_from_opportunity_task_summary.rs b/sdk/partnercentralselling/src/types/_list_engagement_from_opportunity_task_summary.rs index f441a5528773..559ab0e5b1de 100644 --- a/sdk/partnercentralselling/src/types/_list_engagement_from_opportunity_task_summary.rs +++ b/sdk/partnercentralselling/src/types/_list_engagement_from_opportunity_task_summary.rs @@ -22,7 +22,7 @@ pub struct ListEngagementFromOpportunityTaskSummary { pub resource_snapshot_job_id: ::std::option::Option<::std::string::String>, ///

    The unique identifier of the engagement created as a result of the task. This field is populated when the task is completed successfully.

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

    The unique identifier of the engagement identifier created as a result of the task. This field is populated when the task is completed successfully.

    + ///

    The unique identifier of the Engagement Invitation.

    pub engagement_invitation_id: ::std::option::Option<::std::string::String>, } impl ListEngagementFromOpportunityTaskSummary { @@ -62,7 +62,7 @@ impl ListEngagementFromOpportunityTaskSummary { pub fn engagement_id(&self) -> ::std::option::Option<&str> { self.engagement_id.as_deref() } - ///

    The unique identifier of the engagement identifier created as a result of the task. This field is populated when the task is completed successfully.

    + ///

    The unique identifier of the Engagement Invitation.

    pub fn engagement_invitation_id(&self) -> ::std::option::Option<&str> { self.engagement_invitation_id.as_deref() } @@ -216,17 +216,17 @@ impl ListEngagementFromOpportunityTaskSummaryBuilder { pub fn get_engagement_id(&self) -> &::std::option::Option<::std::string::String> { &self.engagement_id } - ///

    The unique identifier of the engagement identifier created as a result of the task. This field is populated when the task is completed successfully.

    + ///

    The unique identifier of the Engagement Invitation.

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

    The unique identifier of the engagement identifier created as a result of the task. This field is populated when the task is completed successfully.

    + ///

    The unique identifier of the Engagement Invitation.

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

    The unique identifier of the engagement identifier created as a result of the task. This field is populated when the task is completed successfully.

    + ///

    The unique identifier of the Engagement Invitation.

    pub fn get_engagement_invitation_id(&self) -> &::std::option::Option<::std::string::String> { &self.engagement_invitation_id } diff --git a/sdk/partnercentralselling/src/types/_resource_snapshot_job_summary.rs b/sdk/partnercentralselling/src/types/_resource_snapshot_job_summary.rs index 68abc06012d3..2e99060b19fb 100644 --- a/sdk/partnercentralselling/src/types/_resource_snapshot_job_summary.rs +++ b/sdk/partnercentralselling/src/types/_resource_snapshot_job_summary.rs @@ -8,9 +8,16 @@ pub struct ResourceSnapshotJobSummary { pub id: ::std::option::Option<::std::string::String>, ///

    The Amazon Resource Name (ARN) for the resource snapshot job.

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

    The unique identifier for the engagement within the AWS Partner Central system. This ID is used for direct references to the engagement within the service.

    + ///

    The unique identifier of the Engagement.

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

    Represents the current status of the resource snapshot job.

    + ///

    The current status of the snapshot job.

    + ///

    Valid values:

    + ///
      + ///
    • + ///

      STOPPED: The job is not currently running.

    • + ///
    • + ///

      RUNNING: The job is actively executing.

    • + ///
    pub status: ::std::option::Option, } impl ResourceSnapshotJobSummary { @@ -22,11 +29,18 @@ impl ResourceSnapshotJobSummary { pub fn arn(&self) -> ::std::option::Option<&str> { self.arn.as_deref() } - ///

    The unique identifier for the engagement within the AWS Partner Central system. This ID is used for direct references to the engagement within the service.

    + ///

    The unique identifier of the Engagement.

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

    Represents the current status of the resource snapshot job.

    + ///

    The current status of the snapshot job.

    + ///

    Valid values:

    + ///
      + ///
    • + ///

      STOPPED: The job is not currently running.

    • + ///
    • + ///

      RUNNING: The job is actively executing.

    • + ///
    pub fn status(&self) -> ::std::option::Option<&crate::types::ResourceSnapshotJobStatus> { self.status.as_ref() } @@ -76,31 +90,52 @@ impl ResourceSnapshotJobSummaryBuilder { pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> { &self.arn } - ///

    The unique identifier for the engagement within the AWS Partner Central system. This ID is used for direct references to the engagement within the service.

    + ///

    The unique identifier of the Engagement.

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

    The unique identifier for the engagement within the AWS Partner Central system. This ID is used for direct references to the engagement within the service.

    + ///

    The unique identifier of the Engagement.

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

    The unique identifier for the engagement within the AWS Partner Central system. This ID is used for direct references to the engagement within the service.

    + ///

    The unique identifier of the Engagement.

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

    Represents the current status of the resource snapshot job.

    + ///

    The current status of the snapshot job.

    + ///

    Valid values:

    + ///
      + ///
    • + ///

      STOPPED: The job is not currently running.

    • + ///
    • + ///

      RUNNING: The job is actively executing.

    • + ///
    pub fn status(mut self, input: crate::types::ResourceSnapshotJobStatus) -> Self { self.status = ::std::option::Option::Some(input); self } - ///

    Represents the current status of the resource snapshot job.

    + ///

    The current status of the snapshot job.

    + ///

    Valid values:

    + ///
      + ///
    • + ///

      STOPPED: The job is not currently running.

    • + ///
    • + ///

      RUNNING: The job is actively executing.

    • + ///
    pub fn set_status(mut self, input: ::std::option::Option) -> Self { self.status = input; self } - ///

    Represents the current status of the resource snapshot job.

    + ///

    The current status of the snapshot job.

    + ///

    Valid values:

    + ///
      + ///
    • + ///

      STOPPED: The job is not currently running.

    • + ///
    • + ///

      RUNNING: The job is actively executing.

    • + ///
    pub fn get_status(&self) -> &::std::option::Option { &self.status } diff --git a/sdk/partnercentralselling/src/types/_resource_snapshot_summary.rs b/sdk/partnercentralselling/src/types/_resource_snapshot_summary.rs index 4fe4c339af40..dd7766fe5283 100644 --- a/sdk/partnercentralselling/src/types/_resource_snapshot_summary.rs +++ b/sdk/partnercentralselling/src/types/_resource_snapshot_summary.rs @@ -14,7 +14,7 @@ pub struct ResourceSnapshotSummary { pub resource_id: ::std::option::Option<::std::string::String>, ///

    The name of the template used to create the snapshot.

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

    The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

    + ///

    The AWS account ID of the entity that owns the resource from which the snapshot was created.

    pub created_by: ::std::option::Option<::std::string::String>, } impl ResourceSnapshotSummary { @@ -38,7 +38,7 @@ impl ResourceSnapshotSummary { pub fn resource_snapshot_template_name(&self) -> ::std::option::Option<&str> { self.resource_snapshot_template_name.as_deref() } - ///

    The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

    + ///

    The AWS account ID of the entity that owns the resource from which the snapshot was created.

    pub fn created_by(&self) -> ::std::option::Option<&str> { self.created_by.as_deref() } @@ -144,17 +144,17 @@ impl ResourceSnapshotSummaryBuilder { pub fn get_resource_snapshot_template_name(&self) -> &::std::option::Option<::std::string::String> { &self.resource_snapshot_template_name } - ///

    The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

    + ///

    The AWS account ID of the entity that owns the resource from which the snapshot was created.

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

    The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

    + ///

    The AWS account ID of the entity that owns the resource from which the snapshot was created.

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

    The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.

    + ///

    The AWS account ID of the entity that owns the resource from which the snapshot was created.

    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> { &self.created_by } diff --git a/sdk/partnercentralselling/src/types/_tag.rs b/sdk/partnercentralselling/src/types/_tag.rs new file mode 100644 index 000000000000..d9fb7b8a66ac --- /dev/null +++ b/sdk/partnercentralselling/src/types/_tag.rs @@ -0,0 +1,86 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +///

    The key-value pair assigned to a specified resource.

    +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct Tag { + ///

    The key in the tag.

    + pub key: ::std::string::String, + ///

    The value in the tag.

    + pub value: ::std::string::String, +} +impl Tag { + ///

    The key in the tag.

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

    The value in the tag.

    + pub fn value(&self) -> &str { + use std::ops::Deref; + self.value.deref() + } +} +impl Tag { + /// Creates a new builder-style object to manufacture [`Tag`](crate::types::Tag). + pub fn builder() -> crate::types::builders::TagBuilder { + crate::types::builders::TagBuilder::default() + } +} + +/// A builder for [`Tag`](crate::types::Tag). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct TagBuilder { + pub(crate) key: ::std::option::Option<::std::string::String>, + pub(crate) value: ::std::option::Option<::std::string::String>, +} +impl TagBuilder { + ///

    The key in the tag.

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

    The key in the tag.

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

    The key in the tag.

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

    The value in the tag.

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

    The value in the tag.

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

    The value in the tag.

    + pub fn get_value(&self) -> &::std::option::Option<::std::string::String> { + &self.value + } + /// Consumes the builder and constructs a [`Tag`](crate::types::Tag). + /// This method will fail if any of the following fields are not set: + /// - [`key`](crate::types::builders::TagBuilder::key) + /// - [`value`](crate::types::builders::TagBuilder::value) + pub fn build(self) -> ::std::result::Result { + ::std::result::Result::Ok(crate::types::Tag { + key: self.key.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field("key", "key was not specified but it is required when building Tag") + })?, + value: self.value.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "value", + "value was not specified but it is required when building Tag", + ) + })?, + }) + } +} diff --git a/sdk/partnercentralselling/src/types/builders.rs b/sdk/partnercentralselling/src/types/builders.rs index 999bf5d3a91d..26b81a78c16e 100644 --- a/sdk/partnercentralselling/src/types/builders.rs +++ b/sdk/partnercentralselling/src/types/builders.rs @@ -5,6 +5,8 @@ pub use crate::types::_solution_base::SolutionBaseBuilder; pub use crate::types::_solution_sort::SolutionSortBuilder; +pub use crate::types::_tag::TagBuilder; + pub use crate::types::_resource_snapshot_job_summary::ResourceSnapshotJobSummaryBuilder; pub use crate::types::_sort_object::SortObjectBuilder; diff --git a/sdk/partnercentralselling/src/types/error.rs b/sdk/partnercentralselling/src/types/error.rs index e725c31ee25e..6dad27537c98 100644 --- a/sdk/partnercentralselling/src/types/error.rs +++ b/sdk/partnercentralselling/src/types/error.rs @@ -9,10 +9,10 @@ pub use crate::types::error::_access_denied_exception::AccessDeniedException; pub use crate::types::error::_throttling_exception::ThrottlingException; -pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededException; - pub use crate::types::error::_conflict_exception::ConflictException; +pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededException; + mod _access_denied_exception; mod _conflict_exception; diff --git a/sdk/partnercentralselling/src/types/error/builders.rs b/sdk/partnercentralselling/src/types/error/builders.rs index 5a2ec8ec2954..985ce366c203 100644 --- a/sdk/partnercentralselling/src/types/error/builders.rs +++ b/sdk/partnercentralselling/src/types/error/builders.rs @@ -9,6 +9,6 @@ pub use crate::types::error::_access_denied_exception::AccessDeniedExceptionBuil pub use crate::types::error::_throttling_exception::ThrottlingExceptionBuilder; -pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededExceptionBuilder; - pub use crate::types::error::_conflict_exception::ConflictExceptionBuilder; + +pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededExceptionBuilder; diff --git a/sdk/s3/src/client/complete_multipart_upload.rs b/sdk/s3/src/client/complete_multipart_upload.rs index c2c8c1e1da3e..8042dde43738 100644 --- a/sdk/s3/src/client/complete_multipart_upload.rs +++ b/sdk/s3/src/client/complete_multipart_upload.rs @@ -7,10 +7,13 @@ impl super::Client { /// - [`key(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::key) / [`set_key(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_key):
    required: **true**

    Object key for which the multipart upload was initiated.


    /// - [`multipart_upload(CompletedMultipartUpload)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::multipart_upload) / [`set_multipart_upload(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_multipart_upload):
    required: **false**

    The container for the multipart upload request information.


    /// - [`upload_id(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::upload_id) / [`set_upload_id(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_upload_id):
    required: **true**

    ID for the initiated multipart upload.


    - /// - [`checksum_crc32(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_crc32_c(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_sha1(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_sha256(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc32(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc32_c(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc64_nvme(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_crc64_nvme) / [`set_checksum_crc64_nvme(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_crc64_nvme):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha1(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha256(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_type(ChecksumType)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::checksum_type) / [`set_checksum_type(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_checksum_type):
    required: **false**

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`mpu_object_size(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::mpu_object_size) / [`set_mpu_object_size(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_mpu_object_size):
    required: **false**

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.


    /// - [`request_payer(RequestPayer)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::request_payer) / [`set_request_payer(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_request_payer):
    required: **false**

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    This functionality is not supported for directory buckets.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    /// - [`if_match(impl Into)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::if_match) / [`set_if_match(Option)`](crate::operation::complete_multipart_upload::builders::CompleteMultipartUploadFluentBuilder::set_if_match):
    required: **false**

    Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches the ETag of the object in S3. If the ETag values do not match, the operation returns a 412 Precondition Failed error.

    If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should fetch the object's ETag, re-initiate the multipart upload with CreateMultipartUpload, and re-upload each part.

    Expects the ETag value as a string.

    For more information about conditional requests, see RFC 7232, or Conditional requests in the Amazon S3 User Guide.


    @@ -24,10 +27,12 @@ impl super::Client { /// - [`key(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::key):

    The object key of the newly created object.

    /// - [`expiration(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::expiration):

    If the object expiration is configured, this will contain the expiration date (expiry-date) and rule ID (rule-id). The value of rule-id is URL-encoded.

    This functionality is not supported for directory buckets.

    /// - [`e_tag(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::e_tag):

    Entity tag that identifies the newly created object's data. Objects with different object data will have different entity tags. The entity tag is an opaque string. The entity tag may or may not be an MD5 digest of the object data. If the entity tag is not an MD5 digest of the object data, it will contain one or more nonhexadecimal characters and/or will consist of less than 32 or more than 32 hexadecimal digits. For more information about how the entity tag is calculated, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_crc32(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_crc32):

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_crc32_c(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_crc32_c):

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha1(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_sha1):

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha256(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_sha256):

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_crc32):

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32_c(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_crc32_c):

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc64_nvme(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_crc64_nvme):

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha1(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_sha1):

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha256(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_sha256):

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_type(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::checksum_type):

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum type that was specified during the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    /// - [`server_side_encryption(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::server_side_encryption):

    The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).

    /// - [`version_id(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::version_id):

    Version ID of the newly created object, in case the bucket has versioning turned on.

    This functionality is not supported for directory buckets.

    /// - [`ssekms_key_id(Option)`](crate::operation::complete_multipart_upload::CompleteMultipartUploadOutput::ssekms_key_id):

    If present, indicates the ID of the KMS key that was used for object encryption.

    diff --git a/sdk/s3/src/client/copy_object.rs b/sdk/s3/src/client/copy_object.rs index 851a16e4aa00..9a89720b4734 100644 --- a/sdk/s3/src/client/copy_object.rs +++ b/sdk/s3/src/client/copy_object.rs @@ -53,7 +53,7 @@ impl super::Client { /// - [`sse_customer_algorithm(Option)`](crate::operation::copy_object::CopyObjectOutput::sse_customer_algorithm):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.

    This functionality is not supported for directory buckets.

    /// - [`sse_customer_key_md5(Option)`](crate::operation::copy_object::CopyObjectOutput::sse_customer_key_md5):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.

    This functionality is not supported for directory buckets.

    /// - [`ssekms_key_id(Option)`](crate::operation::copy_object::CopyObjectOutput::ssekms_key_id):

    If present, indicates the ID of the KMS key that was used for object encryption.

    - /// - [`ssekms_encryption_context(Option)`](crate::operation::copy_object::CopyObjectOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    + /// - [`ssekms_encryption_context(Option)`](crate::operation::copy_object::CopyObjectOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    /// - [`bucket_key_enabled(Option)`](crate::operation::copy_object::CopyObjectOutput::bucket_key_enabled):

    Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

    /// - [`request_charged(Option)`](crate::operation::copy_object::CopyObjectOutput::request_charged):

    If present, indicates that the requester was successfully charged for the request.

    This functionality is not supported for directory buckets.

    /// - On failure, responds with [`SdkError`](crate::operation::copy_object::CopyObjectError) diff --git a/sdk/s3/src/client/create_multipart_upload.rs b/sdk/s3/src/client/create_multipart_upload.rs index c4334ad3c010..9be8d157dede 100644 --- a/sdk/s3/src/client/create_multipart_upload.rs +++ b/sdk/s3/src/client/create_multipart_upload.rs @@ -24,7 +24,7 @@ impl super::Client { /// - [`sse_customer_key(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::sse_customer_key) / [`set_sse_customer_key(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_sse_customer_key):
    required: **false**

    Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

    This functionality is not supported for directory buckets.


    /// - [`sse_customer_key_md5(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::sse_customer_key_md5) / [`set_sse_customer_key_md5(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_sse_customer_key_md5):
    required: **false**

    Specifies the 128-bit MD5 digest of the customer-provided encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

    This functionality is not supported for directory buckets.


    /// - [`ssekms_key_id(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::ssekms_key_id) / [`set_ssekms_key_id(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_ssekms_key_id):
    required: **false**

    Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account that's issuing the command, you must use the full Key ARN not the Key ID.

    General purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse, but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon Web Services managed key (aws/s3) to protect the data.

    Directory buckets - If you specify x-amz-server-side-encryption with aws:kms, the x-amz-server-side-encryption-aws-kms-key-id header is implicitly assigned the ID of the KMS symmetric encryption customer managed key that's configured for your directory bucket's default encryption setting. If you want to specify the x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only specify it with the ID (Key ID or Key ARN) of the KMS customer managed key that's configured for your directory bucket's default encryption setting. Otherwise, you get an HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported.


    - /// - [`ssekms_encryption_context(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::ssekms_encryption_context) / [`set_ssekms_encryption_context(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_ssekms_encryption_context):
    required: **false**

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.


    + /// - [`ssekms_encryption_context(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::ssekms_encryption_context) / [`set_ssekms_encryption_context(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_ssekms_encryption_context):
    required: **false**

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.


    /// - [`bucket_key_enabled(bool)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::bucket_key_enabled) / [`set_bucket_key_enabled(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_bucket_key_enabled):
    required: **false**

    Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).

    General purpose buckets - Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key.

    Directory buckets - S3 Bucket Keys are always enabled for GET and PUT operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through CopyObject, UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.


    /// - [`request_payer(RequestPayer)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::request_payer) / [`set_request_payer(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_request_payer):
    required: **false**

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    This functionality is not supported for directory buckets.


    /// - [`tagging(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::tagging) / [`set_tagging(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_tagging):
    required: **false**

    The tag-set for the object. The tag-set must be encoded as URL Query parameters.

    This functionality is not supported for directory buckets.


    @@ -33,6 +33,7 @@ impl super::Client { /// - [`object_lock_legal_hold_status(ObjectLockLegalHoldStatus)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::object_lock_legal_hold_status) / [`set_object_lock_legal_hold_status(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_object_lock_legal_hold_status):
    required: **false**

    Specifies whether you want to apply a legal hold to the uploaded object.

    This functionality is not supported for directory buckets.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_type(ChecksumType)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::checksum_type) / [`set_checksum_type(Option)`](crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::set_checksum_type):
    required: **false**

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.


    /// - On success, responds with [`CreateMultipartUploadOutput`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput) with field(s): /// - [`abort_date(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::abort_date):

    If the bucket has a lifecycle rule configured with an action to abort incomplete multipart uploads and the prefix in the lifecycle rule matches the object name in the request, the response includes this header. The header indicates when the initiated multipart upload becomes eligible for an abort operation. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.

    The response also includes the x-amz-abort-rule-id header that provides the ID of the lifecycle configuration rule that defines the abort action.

    This functionality is not supported for directory buckets.

    /// - [`abort_rule_id(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::abort_rule_id):

    This header is returned along with the x-amz-abort-date header. It identifies the applicable lifecycle configuration rule that defines the action to abort incomplete multipart uploads.

    This functionality is not supported for directory buckets.

    @@ -43,10 +44,11 @@ impl super::Client { /// - [`sse_customer_algorithm(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::sse_customer_algorithm):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.

    This functionality is not supported for directory buckets.

    /// - [`sse_customer_key_md5(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::sse_customer_key_md5):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.

    This functionality is not supported for directory buckets.

    /// - [`ssekms_key_id(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::ssekms_key_id):

    If present, indicates the ID of the KMS key that was used for object encryption.

    - /// - [`ssekms_encryption_context(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + /// - [`ssekms_encryption_context(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    /// - [`bucket_key_enabled(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::bucket_key_enabled):

    Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

    /// - [`request_charged(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::request_charged):

    If present, indicates that the requester was successfully charged for the request.

    This functionality is not supported for directory buckets.

    /// - [`checksum_algorithm(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::checksum_algorithm):

    The algorithm that was used to create a checksum of the object.

    + /// - [`checksum_type(Option)`](crate::operation::create_multipart_upload::CreateMultipartUploadOutput::checksum_type):

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    /// - On failure, responds with [`SdkError`](crate::operation::create_multipart_upload::CreateMultipartUploadError) pub fn create_multipart_upload(&self) -> crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder { crate::operation::create_multipart_upload::builders::CreateMultipartUploadFluentBuilder::new(self.handle.clone()) diff --git a/sdk/s3/src/client/create_session.rs b/sdk/s3/src/client/create_session.rs index 0b6a37b6bccf..8f1afc5ba0af 100644 --- a/sdk/s3/src/client/create_session.rs +++ b/sdk/s3/src/client/create_session.rs @@ -7,12 +7,12 @@ impl super::Client { /// - [`bucket(impl Into)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_bucket):
    required: **true**

    The name of the bucket that you create a session for.


    /// - [`server_side_encryption(ServerSideEncryption)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::server_side_encryption) / [`set_server_side_encryption(Option)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_server_side_encryption):
    required: **false**

    The server-side encryption algorithm to use when you store objects in the directory bucket.

    For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (AES256) and server-side encryption with KMS keys (SSE-KMS) (aws:kms). By default, Amazon S3 encrypts data with SSE-S3. For more information, see Protecting data with server-side encryption in the Amazon S3 User Guide.


    /// - [`ssekms_key_id(impl Into)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::ssekms_key_id) / [`set_ssekms_key_id(Option)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_ssekms_key_id):
    required: **false**

    If you specify x-amz-server-side-encryption with aws:kms, you must specify the x-amz-server-side-encryption-aws-kms-key-id header with the ID (Key ID or Key ARN) of the KMS symmetric encryption customer managed key to use. Otherwise, you get an HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Also, if the KMS key doesn't exist in the same account that't issuing the command, you must use the full Key ARN not the Key ID.

    Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported.


    - /// - [`ssekms_encryption_context(impl Into)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::ssekms_encryption_context) / [`set_ssekms_encryption_context(Option)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_ssekms_encryption_context):
    required: **false**

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.


    + /// - [`ssekms_encryption_context(impl Into)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::ssekms_encryption_context) / [`set_ssekms_encryption_context(Option)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_ssekms_encryption_context):
    required: **false**

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.


    /// - [`bucket_key_enabled(bool)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::bucket_key_enabled) / [`set_bucket_key_enabled(Option)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_bucket_key_enabled):
    required: **false**

    Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using KMS keys (SSE-KMS).

    S3 Bucket Keys are always enabled for GET and PUT operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through CopyObject, UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.


    /// - On success, responds with [`CreateSessionOutput`](crate::operation::create_session::CreateSessionOutput) with field(s): /// - [`server_side_encryption(Option)`](crate::operation::create_session::CreateSessionOutput::server_side_encryption):

    The server-side encryption algorithm used when you store objects in the directory bucket.

    /// - [`ssekms_key_id(Option)`](crate::operation::create_session::CreateSessionOutput::ssekms_key_id):

    If you specify x-amz-server-side-encryption with aws:kms, this header indicates the ID of the KMS symmetric encryption customer managed key that was used for object encryption.

    - /// - [`ssekms_encryption_context(Option)`](crate::operation::create_session::CreateSessionOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + /// - [`ssekms_encryption_context(Option)`](crate::operation::create_session::CreateSessionOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    /// - [`bucket_key_enabled(Option)`](crate::operation::create_session::CreateSessionOutput::bucket_key_enabled):

    Indicates whether to use an S3 Bucket Key for server-side encryption with KMS keys (SSE-KMS).

    /// - [`credentials(Option)`](crate::operation::create_session::CreateSessionOutput::credentials):

    The established temporary security credentials for the created session.

    /// - On failure, responds with [`SdkError`](crate::operation::create_session::CreateSessionError) diff --git a/sdk/s3/src/client/delete_objects.rs b/sdk/s3/src/client/delete_objects.rs index 3658e5ab6d4d..5338efb1645d 100644 --- a/sdk/s3/src/client/delete_objects.rs +++ b/sdk/s3/src/client/delete_objects.rs @@ -9,7 +9,7 @@ impl super::Client { /// - [`request_payer(RequestPayer)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::request_payer) / [`set_request_payer(Option)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::set_request_payer):
    required: **false**

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    This functionality is not supported for directory buckets.


    /// - [`bypass_governance_retention(bool)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::bypass_governance_retention) / [`set_bypass_governance_retention(Option)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::set_bypass_governance_retention):
    required: **false**

    Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. To use this header, you must have the s3:BypassGovernanceRetention permission.

    This functionality is not supported for directory buckets.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    - /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    • CRC32

    • CRC32C

    • SHA1

    • SHA256

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    + /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::delete_objects::builders::DeleteObjectsFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    • CRC-32

    • CRC-32C

    • CRC-64NVME

    • SHA-1

    • SHA-256

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - On success, responds with [`DeleteObjectsOutput`](crate::operation::delete_objects::DeleteObjectsOutput) with field(s): /// - [`deleted(Option>)`](crate::operation::delete_objects::DeleteObjectsOutput::deleted):

    Container element for a successful delete. It identifies the object that was successfully deleted.

    /// - [`request_charged(Option)`](crate::operation::delete_objects::DeleteObjectsOutput::request_charged):

    If present, indicates that the requester was successfully charged for the request.

    This functionality is not supported for directory buckets.

    diff --git a/sdk/s3/src/client/get_bucket_lifecycle_configuration.rs b/sdk/s3/src/client/get_bucket_lifecycle_configuration.rs index d29c104b6a9d..7bd4fef54739 100644 --- a/sdk/s3/src/client/get_bucket_lifecycle_configuration.rs +++ b/sdk/s3/src/client/get_bucket_lifecycle_configuration.rs @@ -7,7 +7,7 @@ impl super::Client { /// - [`expected_bucket_owner(impl Into)`](crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).

    This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.


    /// - On success, responds with [`GetBucketLifecycleConfigurationOutput`](crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationOutput) with field(s): /// - [`rules(Option>)`](crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationOutput::rules):

    Container for a lifecycle rule.

    - /// - [`transition_default_minimum_object_size(Option)`](crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationOutput::transition_default_minimum_object_size):

    Indicates which default minimum object size behavior is applied to the lifecycle configuration.

    This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.

    • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

    • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

    To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

    + /// - [`transition_default_minimum_object_size(Option)`](crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationOutput::transition_default_minimum_object_size):

    Indicates which default minimum object size behavior is applied to the lifecycle configuration.

    This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

    • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

    • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

    To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

    /// - On failure, responds with [`SdkError`](crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError) pub fn get_bucket_lifecycle_configuration( &self, diff --git a/sdk/s3/src/client/get_object.rs b/sdk/s3/src/client/get_object.rs index ec7f0320ba8c..f2134ae6e4f1 100644 --- a/sdk/s3/src/client/get_object.rs +++ b/sdk/s3/src/client/get_object.rs @@ -33,10 +33,12 @@ impl super::Client { /// - [`last_modified(Option)`](crate::operation::get_object::GetObjectOutput::last_modified):

    Date and time when the object was last modified.

    General purpose buckets - When you specify a versionId of the object in your request, if the specified version in the request is a delete marker, the response returns a 405 Method Not Allowed error and the Last-Modified: timestamp response header.

    /// - [`content_length(Option)`](crate::operation::get_object::GetObjectOutput::content_length):

    Size of the body in bytes.

    /// - [`e_tag(Option)`](crate::operation::get_object::GetObjectOutput::e_tag):

    An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

    - /// - [`checksum_crc32(Option)`](crate::operation::get_object::GetObjectOutput::checksum_crc32):

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_crc32_c(Option)`](crate::operation::get_object::GetObjectOutput::checksum_crc32_c):

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha1(Option)`](crate::operation::get_object::GetObjectOutput::checksum_sha1):

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha256(Option)`](crate::operation::get_object::GetObjectOutput::checksum_sha256):

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32(Option)`](crate::operation::get_object::GetObjectOutput::checksum_crc32):

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32_c(Option)`](crate::operation::get_object::GetObjectOutput::checksum_crc32_c):

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc64_nvme(Option)`](crate::operation::get_object::GetObjectOutput::checksum_crc64_nvme):

    The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha1(Option)`](crate::operation::get_object::GetObjectOutput::checksum_sha1):

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha256(Option)`](crate::operation::get_object::GetObjectOutput::checksum_sha256):

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_type(Option)`](crate::operation::get_object::GetObjectOutput::checksum_type):

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    /// - [`missing_meta(Option)`](crate::operation::get_object::GetObjectOutput::missing_meta):

    This is set to the number of metadata entries not returned in the headers that are prefixed with x-amz-meta-. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

    This functionality is not supported for directory buckets.

    /// - [`version_id(Option)`](crate::operation::get_object::GetObjectOutput::version_id):

    Version ID of the object.

    This functionality is not supported for directory buckets.

    /// - [`cache_control(Option)`](crate::operation::get_object::GetObjectOutput::cache_control):

    Specifies caching behavior along the request/reply chain.

    diff --git a/sdk/s3/src/client/head_object.rs b/sdk/s3/src/client/head_object.rs index eedad00ab2e7..231534c9efb0 100644 --- a/sdk/s3/src/client/head_object.rs +++ b/sdk/s3/src/client/head_object.rs @@ -32,10 +32,12 @@ impl super::Client { /// - [`archive_status(Option)`](crate::operation::head_object::HeadObjectOutput::archive_status):

    The archive state of the head object.

    This functionality is not supported for directory buckets.

    /// - [`last_modified(Option)`](crate::operation::head_object::HeadObjectOutput::last_modified):

    Date and time when the object was last modified.

    /// - [`content_length(Option)`](crate::operation::head_object::HeadObjectOutput::content_length):

    Size of the body in bytes.

    - /// - [`checksum_crc32(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_crc32):

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_crc32_c(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_crc32_c):

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha1(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_sha1):

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha256(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_sha256):

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_crc32):

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32_c(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_crc32_c):

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc64_nvme(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_crc64_nvme):

    The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha1(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_sha1):

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha256(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_sha256):

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_type(Option)`](crate::operation::head_object::HeadObjectOutput::checksum_type):

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    /// - [`e_tag(Option)`](crate::operation::head_object::HeadObjectOutput::e_tag):

    An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

    /// - [`missing_meta(Option)`](crate::operation::head_object::HeadObjectOutput::missing_meta):

    This is set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

    This functionality is not supported for directory buckets.

    /// - [`version_id(Option)`](crate::operation::head_object::HeadObjectOutput::version_id):

    Version ID of the object.

    This functionality is not supported for directory buckets.

    diff --git a/sdk/s3/src/client/list_parts.rs b/sdk/s3/src/client/list_parts.rs index a900d848dd75..3f9d086dc75d 100644 --- a/sdk/s3/src/client/list_parts.rs +++ b/sdk/s3/src/client/list_parts.rs @@ -30,6 +30,7 @@ impl super::Client { /// - [`storage_class(Option)`](crate::operation::list_parts::ListPartsOutput::storage_class):

    The class of storage used to store the uploaded object.

    Directory buckets - Only the S3 Express One Zone storage class is supported by directory buckets to store objects.

    /// - [`request_charged(Option)`](crate::operation::list_parts::ListPartsOutput::request_charged):

    If present, indicates that the requester was successfully charged for the request.

    This functionality is not supported for directory buckets.

    /// - [`checksum_algorithm(Option)`](crate::operation::list_parts::ListPartsOutput::checksum_algorithm):

    The algorithm that was used to create a checksum of the object.

    + /// - [`checksum_type(Option)`](crate::operation::list_parts::ListPartsOutput::checksum_type):

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    /// - On failure, responds with [`SdkError`](crate::operation::list_parts::ListPartsError) pub fn list_parts(&self) -> crate::operation::list_parts::builders::ListPartsFluentBuilder { crate::operation::list_parts::builders::ListPartsFluentBuilder::new(self.handle.clone()) diff --git a/sdk/s3/src/client/put_bucket_acl.rs b/sdk/s3/src/client/put_bucket_acl.rs index 727d653a6ab1..8b64aa7b3191 100644 --- a/sdk/s3/src/client/put_bucket_acl.rs +++ b/sdk/s3/src/client/put_bucket_acl.rs @@ -6,7 +6,7 @@ impl super::Client { /// - [`acl(BucketCannedAcl)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::acl) / [`set_acl(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_acl):
    required: **false**

    The canned ACL to apply to the bucket.


    /// - [`access_control_policy(AccessControlPolicy)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::access_control_policy) / [`set_access_control_policy(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_access_control_policy):
    required: **false**

    Contains the elements that set the ACL permissions for an object per grantee.


    /// - [`bucket(impl Into)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_bucket):
    required: **true**

    The bucket to which to apply the ACL.


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`grant_full_control(impl Into)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::grant_full_control) / [`set_grant_full_control(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_grant_full_control):
    required: **false**

    Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.


    /// - [`grant_read(impl Into)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::grant_read) / [`set_grant_read(Option)`](crate::operation::put_bucket_acl::builders::PutBucketAclFluentBuilder::set_grant_read):
    required: **false**

    Allows grantee to list the objects in the bucket.


    diff --git a/sdk/s3/src/client/put_bucket_cors.rs b/sdk/s3/src/client/put_bucket_cors.rs index 55c830b5dec7..ae998faec951 100644 --- a/sdk/s3/src/client/put_bucket_cors.rs +++ b/sdk/s3/src/client/put_bucket_cors.rs @@ -5,7 +5,7 @@ impl super::Client { /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::set_bucket):
    required: **true**

    Specifies the bucket impacted by the corsconfiguration.


    /// - [`cors_configuration(CorsConfiguration)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::cors_configuration) / [`set_cors_configuration(Option)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::set_cors_configuration):
    required: **true**

    Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide.


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::put_bucket_cors::builders::PutBucketCorsFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    /// - On success, responds with [`PutBucketCorsOutput`](crate::operation::put_bucket_cors::PutBucketCorsOutput) diff --git a/sdk/s3/src/client/put_bucket_encryption.rs b/sdk/s3/src/client/put_bucket_encryption.rs index b04b7a6086d2..2998c1e50107 100644 --- a/sdk/s3/src/client/put_bucket_encryption.rs +++ b/sdk/s3/src/client/put_bucket_encryption.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::set_bucket):
    required: **true**

    Specifies default encryption for a bucket using server-side encryption with different key options.

    Directory buckets - When you use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

    This functionality is not supported for directory buckets.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

    This functionality is not supported for directory buckets.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.


    /// - [`server_side_encryption_configuration(ServerSideEncryptionConfiguration)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::server_side_encryption_configuration) / [`set_server_side_encryption_configuration(Option)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::set_server_side_encryption_configuration):
    required: **true**

    Specifies the default server-side-encryption configuration.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::put_bucket_encryption::builders::PutBucketEncryptionFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).

    For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented.


    diff --git a/sdk/s3/src/client/put_bucket_policy.rs b/sdk/s3/src/client/put_bucket_policy.rs index 629df17a8b06..fbf75653b2bf 100644 --- a/sdk/s3/src/client/put_bucket_policy.rs +++ b/sdk/s3/src/client/put_bucket_policy.rs @@ -5,7 +5,7 @@ impl super::Client { /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_bucket):
    required: **true**

    The name of the bucket.

    Directory buckets - When you use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide


    /// - [`content_md5(impl Into)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_content_md5):
    required: **false**

    The MD5 hash of the request body.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

    This functionality is not supported for directory buckets.


    - /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    • CRC32

    • CRC32C

    • SHA1

    • SHA256

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.


    + /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    • CRC-32

    • CRC-32C

    • CRC-64NVME

    • SHA-1

    • SHA-256

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.


    /// - [`confirm_remove_self_bucket_access(bool)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::confirm_remove_self_bucket_access) / [`set_confirm_remove_self_bucket_access(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_confirm_remove_self_bucket_access):
    required: **false**

    Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.

    This functionality is not supported for directory buckets.


    /// - [`policy(impl Into)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::policy) / [`set_policy(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_policy):
    required: **true**

    The bucket policy as a JSON document.

    For directory buckets, the only IAM action supported in the bucket policy is s3express:CreateSession.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::put_bucket_policy::builders::PutBucketPolicyFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).

    For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented.


    diff --git a/sdk/s3/src/client/put_bucket_replication.rs b/sdk/s3/src/client/put_bucket_replication.rs index c6d013d6ea02..a01a6807ffb9 100644 --- a/sdk/s3/src/client/put_bucket_replication.rs +++ b/sdk/s3/src/client/put_bucket_replication.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_bucket):
    required: **true**

    The name of the bucket


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`replication_configuration(ReplicationConfiguration)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::replication_configuration) / [`set_replication_configuration(Option)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_replication_configuration):
    required: **true**

    A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.


    /// - [`token(impl Into)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::token) / [`set_token(Option)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_token):
    required: **false**

    A token to allow Object Lock to be enabled for an existing bucket.


    diff --git a/sdk/s3/src/client/put_bucket_request_payment.rs b/sdk/s3/src/client/put_bucket_request_payment.rs index 63b692b55ad9..0cf115f584c8 100644 --- a/sdk/s3/src/client/put_bucket_request_payment.rs +++ b/sdk/s3/src/client/put_bucket_request_payment.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::set_bucket):
    required: **true**

    The bucket name.


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`request_payment_configuration(RequestPaymentConfiguration)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::request_payment_configuration) / [`set_request_payment_configuration(Option)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::set_request_payment_configuration):
    required: **true**

    Container for Payer.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::put_bucket_request_payment::builders::PutBucketRequestPaymentFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    diff --git a/sdk/s3/src/client/put_bucket_tagging.rs b/sdk/s3/src/client/put_bucket_tagging.rs index 568e6d927e25..5153d8f02db7 100644 --- a/sdk/s3/src/client/put_bucket_tagging.rs +++ b/sdk/s3/src/client/put_bucket_tagging.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::set_bucket):
    required: **true**

    The bucket name.


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`tagging(Tagging)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::tagging) / [`set_tagging(Option)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::set_tagging):
    required: **true**

    Container for the TagSet and Tag elements.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::put_bucket_tagging::builders::PutBucketTaggingFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    diff --git a/sdk/s3/src/client/put_bucket_versioning.rs b/sdk/s3/src/client/put_bucket_versioning.rs index 55c5d9e3013d..e55486a96ac8 100644 --- a/sdk/s3/src/client/put_bucket_versioning.rs +++ b/sdk/s3/src/client/put_bucket_versioning.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::set_bucket):
    required: **true**

    The bucket name.


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::set_content_md5):
    required: **false**

    >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::set_content_md5):
    required: **false**

    >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`mfa(impl Into)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::mfa) / [`set_mfa(Option)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::set_mfa):
    required: **false**

    The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.


    /// - [`versioning_configuration(VersioningConfiguration)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::versioning_configuration) / [`set_versioning_configuration(Option)`](crate::operation::put_bucket_versioning::builders::PutBucketVersioningFluentBuilder::set_versioning_configuration):
    required: **true**

    Container for setting the versioning state.


    diff --git a/sdk/s3/src/client/put_bucket_website.rs b/sdk/s3/src/client/put_bucket_website.rs index 815d960fec5d..86e335ad0a8a 100644 --- a/sdk/s3/src/client/put_bucket_website.rs +++ b/sdk/s3/src/client/put_bucket_website.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`bucket(impl Into)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::set_bucket):
    required: **true**

    The bucket name.


    - /// - [`content_md5(impl Into)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`website_configuration(WebsiteConfiguration)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::website_configuration) / [`set_website_configuration(Option)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::set_website_configuration):
    required: **true**

    Container for the request.


    /// - [`expected_bucket_owner(impl Into)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option)`](crate::operation::put_bucket_website::builders::PutBucketWebsiteFluentBuilder::set_expected_bucket_owner):
    required: **false**

    The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).


    diff --git a/sdk/s3/src/client/put_object.rs b/sdk/s3/src/client/put_object.rs index 092a18f656cd..6440b736d063 100644 --- a/sdk/s3/src/client/put_object.rs +++ b/sdk/s3/src/client/put_object.rs @@ -11,13 +11,14 @@ impl super::Client { /// - [`content_encoding(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::content_encoding) / [`set_content_encoding(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_content_encoding):
    required: **false**

    Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding.


    /// - [`content_language(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::content_language) / [`set_content_language(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_content_language):
    required: **false**

    The language the content is in.


    /// - [`content_length(i64)`](crate::operation::put_object::builders::PutObjectFluentBuilder::content_length) / [`set_content_length(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_content_length):
    required: **false**

    Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length.


    - /// - [`content_md5(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

    The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

    This functionality is not supported for directory buckets.


    + /// - [`content_md5(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

    The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

    This functionality is not supported for directory buckets.


    /// - [`content_type(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::content_type) / [`set_content_type(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_content_type):
    required: **false**

    A standard MIME type describing the format of the contents. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type.


    - /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    • CRC32

    • CRC32C

    • SHA1

    • SHA256

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

    For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.


    - /// - [`checksum_crc32(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_crc32_c(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_sha1(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_sha256(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum-algorithm or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request.

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    • CRC-32

    • CRC-32C

    • CRC-64NVME

    • SHA-1

    • SHA-256

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

    For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.


    + /// - [`checksum_crc32(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc32_c(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc64_nvme(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_crc64_nvme) / [`set_checksum_crc64_nvme(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_crc64_nvme):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha1(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha256(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    /// - [`expires(DateTime)`](crate::operation::put_object::builders::PutObjectFluentBuilder::expires) / [`set_expires(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_expires):
    required: **false**

    The date and time at which the object is no longer cacheable. For more information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3.


    /// - [`if_match(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::if_match) / [`set_if_match(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_if_match):
    required: **false**

    Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches the ETag of the object in S3. If the ETag values do not match, the operation returns a 412 Precondition Failed error.

    If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should fetch the object's ETag and retry the upload.

    Expects the ETag value as a string.

    For more information about conditional requests, see RFC 7232, or Conditional requests in the Amazon S3 User Guide.


    /// - [`if_none_match(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::if_none_match) / [`set_if_none_match(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_if_none_match):
    required: **false**

    Uploads the object only if the object key name does not already exist in the bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error.

    If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should retry the upload.

    Expects the '*' (asterisk) character.

    For more information about conditional requests, see RFC 7232, or Conditional requests in the Amazon S3 User Guide.


    @@ -35,7 +36,7 @@ impl super::Client { /// - [`sse_customer_key(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::sse_customer_key) / [`set_sse_customer_key(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_sse_customer_key):
    required: **false**

    Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

    This functionality is not supported for directory buckets.


    /// - [`sse_customer_key_md5(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::sse_customer_key_md5) / [`set_sse_customer_key_md5(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_sse_customer_key_md5):
    required: **false**

    Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

    This functionality is not supported for directory buckets.


    /// - [`ssekms_key_id(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::ssekms_key_id) / [`set_ssekms_key_id(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_ssekms_key_id):
    required: **false**

    Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account that's issuing the command, you must use the full Key ARN not the Key ID.

    General purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse, but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon Web Services managed key (aws/s3) to protect the data.

    Directory buckets - If you specify x-amz-server-side-encryption with aws:kms, the x-amz-server-side-encryption-aws-kms-key-id header is implicitly assigned the ID of the KMS symmetric encryption customer managed key that's configured for your directory bucket's default encryption setting. If you want to specify the x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only specify it with the ID (Key ID or Key ARN) of the KMS customer managed key that's configured for your directory bucket's default encryption setting. Otherwise, you get an HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported.


    - /// - [`ssekms_encryption_context(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::ssekms_encryption_context) / [`set_ssekms_encryption_context(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_ssekms_encryption_context):
    required: **false**

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.


    + /// - [`ssekms_encryption_context(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::ssekms_encryption_context) / [`set_ssekms_encryption_context(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_ssekms_encryption_context):
    required: **false**

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.


    /// - [`bucket_key_enabled(bool)`](crate::operation::put_object::builders::PutObjectFluentBuilder::bucket_key_enabled) / [`set_bucket_key_enabled(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_bucket_key_enabled):
    required: **false**

    Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).

    General purpose buckets - Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. Also, specifying this header with a PUT action doesn't affect bucket-level settings for S3 Bucket Key.

    Directory buckets - S3 Bucket Keys are always enabled for GET and PUT operations in a directory bucket and can’t be disabled. S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through CopyObject, UploadPartCopy, the Copy operation in Batch Operations, or the import jobs. In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object.


    /// - [`request_payer(RequestPayer)`](crate::operation::put_object::builders::PutObjectFluentBuilder::request_payer) / [`set_request_payer(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_request_payer):
    required: **false**

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    This functionality is not supported for directory buckets.


    /// - [`tagging(impl Into)`](crate::operation::put_object::builders::PutObjectFluentBuilder::tagging) / [`set_tagging(Option)`](crate::operation::put_object::builders::PutObjectFluentBuilder::set_tagging):
    required: **false**

    The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For example, "Key1=Value1")

    This functionality is not supported for directory buckets.


    @@ -46,18 +47,20 @@ impl super::Client { /// - On success, responds with [`PutObjectOutput`](crate::operation::put_object::PutObjectOutput) with field(s): /// - [`expiration(Option)`](crate::operation::put_object::PutObjectOutput::expiration):

    If the expiration is configured for the object (see PutBucketLifecycleConfiguration) in the Amazon S3 User Guide, the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide information about object expiration. The value of the rule-id is URL-encoded.

    Object expiration information is not returned in directory buckets and this header returns the value "NotImplemented" in all responses for directory buckets.

    /// - [`e_tag(Option)`](crate::operation::put_object::PutObjectOutput::e_tag):

    Entity tag for the uploaded object.

    General purpose buckets - To ensure that data is not corrupted traversing the network, for objects where the ETag is the MD5 digest of the object, you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to the calculated MD5 value.

    Directory buckets - The ETag for the object in a directory bucket isn't the MD5 digest of the object.

    - /// - [`checksum_crc32(Option)`](crate::operation::put_object::PutObjectOutput::checksum_crc32):

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_crc32_c(Option)`](crate::operation::put_object::PutObjectOutput::checksum_crc32_c):

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha1(Option)`](crate::operation::put_object::PutObjectOutput::checksum_sha1):

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha256(Option)`](crate::operation::put_object::PutObjectOutput::checksum_sha256):

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32(Option)`](crate::operation::put_object::PutObjectOutput::checksum_crc32):

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32_c(Option)`](crate::operation::put_object::PutObjectOutput::checksum_crc32_c):

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc64_nvme(Option)`](crate::operation::put_object::PutObjectOutput::checksum_crc64_nvme):

    The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha1(Option)`](crate::operation::put_object::PutObjectOutput::checksum_sha1):

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha256(Option)`](crate::operation::put_object::PutObjectOutput::checksum_sha256):

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_type(Option)`](crate::operation::put_object::PutObjectOutput::checksum_type):

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. For PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

    /// - [`server_side_encryption(Option)`](crate::operation::put_object::PutObjectOutput::server_side_encryption):

    The server-side encryption algorithm used when you store this object in Amazon S3.

    /// - [`version_id(Option)`](crate::operation::put_object::PutObjectOutput::version_id):

    Version ID of the object.

    If you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID for the object being stored. Amazon S3 returns this ID in the response. When you enable versioning for a bucket, if Amazon S3 receives multiple write requests for the same object simultaneously, it stores all of the objects. For more information about versioning, see Adding Objects to Versioning-Enabled Buckets in the Amazon S3 User Guide. For information about returning the versioning state of a bucket, see GetBucketVersioning.

    This functionality is not supported for directory buckets.

    /// - [`sse_customer_algorithm(Option)`](crate::operation::put_object::PutObjectOutput::sse_customer_algorithm):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.

    This functionality is not supported for directory buckets.

    /// - [`sse_customer_key_md5(Option)`](crate::operation::put_object::PutObjectOutput::sse_customer_key_md5):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.

    This functionality is not supported for directory buckets.

    /// - [`ssekms_key_id(Option)`](crate::operation::put_object::PutObjectOutput::ssekms_key_id):

    If present, indicates the ID of the KMS key that was used for object encryption.

    - /// - [`ssekms_encryption_context(Option)`](crate::operation::put_object::PutObjectOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + /// - [`ssekms_encryption_context(Option)`](crate::operation::put_object::PutObjectOutput::ssekms_encryption_context):

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    /// - [`bucket_key_enabled(Option)`](crate::operation::put_object::PutObjectOutput::bucket_key_enabled):

    Indicates whether the uploaded object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

    - /// - [`size(Option)`](crate::operation::put_object::PutObjectOutput::size):

    The size of the object in bytes. This will only be present if you append to an object.

    This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

    + /// - [`size(Option)`](crate::operation::put_object::PutObjectOutput::size):

    The size of the object in bytes. This value is only be present if you append to an object.

    This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

    /// - [`request_charged(Option)`](crate::operation::put_object::PutObjectOutput::request_charged):

    If present, indicates that the requester was successfully charged for the request.

    This functionality is not supported for directory buckets.

    /// - On failure, responds with [`SdkError`](crate::operation::put_object::PutObjectError) pub fn put_object(&self) -> crate::operation::put_object::builders::PutObjectFluentBuilder { diff --git a/sdk/s3/src/client/put_object_acl.rs b/sdk/s3/src/client/put_object_acl.rs index b8acd19d8ddf..1aa533f98141 100644 --- a/sdk/s3/src/client/put_object_acl.rs +++ b/sdk/s3/src/client/put_object_acl.rs @@ -6,7 +6,7 @@ impl super::Client { /// - [`acl(ObjectCannedAcl)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::acl) / [`set_acl(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_acl):
    required: **false**

    The canned ACL to apply to the object. For more information, see Canned ACL.


    /// - [`access_control_policy(AccessControlPolicy)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::access_control_policy) / [`set_access_control_policy(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_access_control_policy):
    required: **false**

    Contains the elements that set the ACL permissions for an object per grantee.


    /// - [`bucket(impl Into)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_bucket):
    required: **true**

    The bucket name that contains the object to which you want to attach the ACL.

    Access points - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

    S3 on Outposts - When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? in the Amazon S3 User Guide.


    - /// - [`content_md5(impl Into)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    + /// - [`content_md5(impl Into)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

    For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.


    /// - [`grant_full_control(impl Into)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::grant_full_control) / [`set_grant_full_control(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_grant_full_control):
    required: **false**

    Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.

    This functionality is not supported for Amazon S3 on Outposts.


    /// - [`grant_read(impl Into)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::grant_read) / [`set_grant_read(Option)`](crate::operation::put_object_acl::builders::PutObjectAclFluentBuilder::set_grant_read):
    required: **false**

    Allows grantee to list the objects in the bucket.

    This functionality is not supported for Amazon S3 on Outposts.


    diff --git a/sdk/s3/src/client/upload_part.rs b/sdk/s3/src/client/upload_part.rs index 7b12092830a0..633519be0c22 100644 --- a/sdk/s3/src/client/upload_part.rs +++ b/sdk/s3/src/client/upload_part.rs @@ -6,12 +6,13 @@ impl super::Client { /// - [`body(ByteStream)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::body) / [`set_body(ByteStream)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_body):
    required: **false**

    Object data.


    /// - [`bucket(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::bucket) / [`set_bucket(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_bucket):
    required: **true**

    The name of the bucket to which the multipart upload was initiated.

    Directory buckets - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format Bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide.

    Access points - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

    Access points and Object Lambda access points are not supported by directory buckets.

    S3 on Outposts - When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? in the Amazon S3 User Guide.


    /// - [`content_length(i64)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::content_length) / [`set_content_length(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_content_length):
    required: **false**

    Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.


    - /// - [`content_md5(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_content_md5):
    required: **false**

    The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

    This functionality is not supported for directory buckets.


    + /// - [`content_md5(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::content_md5) / [`set_content_md5(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_content_md5):
    required: **false**

    The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

    This functionality is not supported for directory buckets.


    /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_algorithm):
    required: **false**

    Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    This checksum algorithm must be the same for all parts and it match the checksum value supplied in the CreateMultipartUpload request.


    - /// - [`checksum_crc32(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_crc32_c(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_sha1(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    - /// - [`checksum_sha256(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc32(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc32_c(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_crc64_nvme(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_crc64_nvme) / [`set_checksum_crc64_nvme(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_crc64_nvme):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha1(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha256(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.


    /// - [`key(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::key) / [`set_key(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_key):
    required: **true**

    Object key for which the multipart upload was initiated.


    /// - [`part_number(i32)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::part_number) / [`set_part_number(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_part_number):
    required: **true**

    Part number of part being uploaded. This is a positive integer between 1 and 10,000.


    /// - [`upload_id(impl Into)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::upload_id) / [`set_upload_id(Option)`](crate::operation::upload_part::builders::UploadPartFluentBuilder::set_upload_id):
    required: **true**

    Upload ID identifying the multipart upload whose part is being uploaded.


    @@ -23,10 +24,11 @@ impl super::Client { /// - On success, responds with [`UploadPartOutput`](crate::operation::upload_part::UploadPartOutput) with field(s): /// - [`server_side_encryption(Option)`](crate::operation::upload_part::UploadPartOutput::server_side_encryption):

    The server-side encryption algorithm used when you store this object in Amazon S3 (for example, AES256, aws:kms).

    /// - [`e_tag(Option)`](crate::operation::upload_part::UploadPartOutput::e_tag):

    Entity tag for the uploaded object.

    - /// - [`checksum_crc32(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_crc32):

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_crc32_c(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_crc32_c):

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha1(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_sha1):

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    - /// - [`checksum_sha256(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_sha256):

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_crc32):

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc32_c(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_crc32_c):

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_crc64_nvme(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_crc64_nvme):

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha1(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_sha1):

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + /// - [`checksum_sha256(Option)`](crate::operation::upload_part::UploadPartOutput::checksum_sha256):

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    /// - [`sse_customer_algorithm(Option)`](crate::operation::upload_part::UploadPartOutput::sse_customer_algorithm):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.

    This functionality is not supported for directory buckets.

    /// - [`sse_customer_key_md5(Option)`](crate::operation::upload_part::UploadPartOutput::sse_customer_key_md5):

    If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide the round-trip message integrity verification of the customer-provided encryption key.

    This functionality is not supported for directory buckets.

    /// - [`ssekms_key_id(Option)`](crate::operation::upload_part::UploadPartOutput::ssekms_key_id):

    If present, indicates the ID of the KMS key that was used for object encryption.

    diff --git a/sdk/s3/src/client/write_get_object_response.rs b/sdk/s3/src/client/write_get_object_response.rs index 4e179b822c5d..8f34f4361a38 100644 --- a/sdk/s3/src/client/write_get_object_response.rs +++ b/sdk/s3/src/client/write_get_object_response.rs @@ -17,10 +17,11 @@ impl super::Client { /// - [`content_length(i64)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::content_length) / [`set_content_length(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_content_length):
    required: **false**

    The size of the content body in bytes.


    /// - [`content_range(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::content_range) / [`set_content_range(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_content_range):
    required: **false**

    The portion of the object returned in the response.


    /// - [`content_type(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::content_type) / [`set_content_type(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_content_type):
    required: **false**

    A standard MIME type describing the format of the object data.


    - /// - [`checksum_crc32(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    - /// - [`checksum_crc32_c(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    - /// - [`checksum_sha1(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    - /// - [`checksum_sha256(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    + /// - [`checksum_crc32(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_crc32) / [`set_checksum_crc32(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_crc32):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    + /// - [`checksum_crc32_c(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_crc32_c) / [`set_checksum_crc32_c(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_crc32_c):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    + /// - [`checksum_crc64_nvme(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_crc64_nvme) / [`set_checksum_crc64_nvme(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_crc64_nvme):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.


    + /// - [`checksum_sha1(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_sha1) / [`set_checksum_sha1(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_sha1):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    + /// - [`checksum_sha256(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::checksum_sha256) / [`set_checksum_sha256(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_checksum_sha256):
    required: **false**

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

    Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.


    /// - [`delete_marker(bool)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::delete_marker) / [`set_delete_marker(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_delete_marker):
    required: **false**

    Specifies whether an object stored in Amazon S3 is (true) or is not (false) a delete marker.


    /// - [`e_tag(impl Into)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::e_tag) / [`set_e_tag(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_e_tag):
    required: **false**

    An opaque identifier assigned by a web server to a specific version of a resource found at a URL.


    /// - [`expires(DateTime)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::expires) / [`set_expires(Option)`](crate::operation::write_get_object_response::builders::WriteGetObjectResponseFluentBuilder::set_expires):
    required: **false**

    The date and time at which the object is no longer cacheable.


    diff --git a/sdk/s3/src/operation/abort_multipart_upload/builders.rs b/sdk/s3/src/operation/abort_multipart_upload/builders.rs index 126393c35261..e313cda86c62 100644 --- a/sdk/s3/src/operation/abort_multipart_upload/builders.rs +++ b/sdk/s3/src/operation/abort_multipart_upload/builders.rs @@ -28,7 +28,7 @@ impl crate::operation::abort_multipart_upload::builders::AbortMultipartUploadInp ///
  • ///

    Directory buckets - If multipart uploads in a directory bucket are in progress, you can't delete the bucket until all the in-progress multipart uploads are aborted or completed. To delete these in-progress multipart uploads, use the ListMultipartUploads operation to list the in-progress multipart uploads in the bucket and use the AbortMultipartUpload operation to abort all the in-progress multipart uploads.

  • ///
  • -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

  • +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    /// /// ///
    diff --git a/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_input.rs b/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_input.rs index 2777f36628a8..c4348a50dfcf 100644 --- a/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_input.rs +++ b/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_input.rs @@ -16,14 +16,20 @@ pub struct CompleteMultipartUploadInput { pub multipart_upload: ::std::option::Option, ///

    ID for the initiated multipart upload.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub checksum_type: ::std::option::Option, + ///

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    ///

    This functionality is not supported for directory buckets.

    ///
    @@ -75,22 +81,34 @@ impl CompleteMultipartUploadInput { pub fn upload_id(&self) -> ::std::option::Option<&str> { self.upload_id.as_deref() } - ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } + ///

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    ///

    This functionality is not supported for directory buckets.

    ///
    @@ -143,8 +161,11 @@ impl ::std::fmt::Debug for CompleteMultipartUploadInput { formatter.field("upload_id", &self.upload_id); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); + formatter.field("mpu_object_size", &self.mpu_object_size); formatter.field("request_payer", &self.request_payer); formatter.field("expected_bucket_owner", &self.expected_bucket_owner); formatter.field("if_match", &self.if_match); @@ -172,8 +193,11 @@ pub struct CompleteMultipartUploadInputBuilder { pub(crate) upload_id: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, + pub(crate) checksum_type: ::std::option::Option, + pub(crate) mpu_object_size: ::std::option::Option<::std::string::String>, pub(crate) request_payer: ::std::option::Option, pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>, pub(crate) if_match: ::std::option::Option<::std::string::String>, @@ -257,62 +281,104 @@ impl CompleteMultipartUploadInputBuilder { pub fn get_upload_id(&self) -> &::std::option::Option<::std::string::String> { &self.upload_id } - ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } + ///

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    ///

    This functionality is not supported for directory buckets.

    ///
    @@ -467,8 +533,11 @@ impl CompleteMultipartUploadInputBuilder { upload_id: self.upload_id, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, + checksum_type: self.checksum_type, + mpu_object_size: self.mpu_object_size, request_payer: self.request_payer, expected_bucket_owner: self.expected_bucket_owner, if_match: self.if_match, @@ -488,8 +557,11 @@ impl ::std::fmt::Debug for CompleteMultipartUploadInputBuilder { formatter.field("upload_id", &self.upload_id); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); + formatter.field("mpu_object_size", &self.mpu_object_size); formatter.field("request_payer", &self.request_payer); formatter.field("expected_bucket_owner", &self.expected_bucket_owner); formatter.field("if_match", &self.if_match); diff --git a/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_output.rs b/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_output.rs index f2bd404552bd..8a4d5015bd6b 100644 --- a/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_output.rs +++ b/sdk/s3/src/operation/complete_multipart_upload/_complete_multipart_upload_output.rs @@ -17,14 +17,18 @@ pub struct CompleteMultipartUploadOutput { pub expiration: ::std::option::Option<::std::string::String>, ///

    Entity tag that identifies the newly created object's data. Objects with different object data will have different entity tags. The entity tag is an opaque string. The entity tag may or may not be an MD5 digest of the object data. If the entity tag is not an MD5 digest of the object data, it will contain one or more nonhexadecimal characters and/or will consist of less than 32 or more than 32 hexadecimal digits. For more information about how the entity tag is calculated, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum type that was specified during the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub checksum_type: ::std::option::Option, ///

    The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).

    pub server_side_encryption: ::std::option::Option, ///

    Version ID of the newly created object, in case the bucket has versioning turned on.

    @@ -67,22 +71,30 @@ impl CompleteMultipartUploadOutput { pub fn e_tag(&self) -> ::std::option::Option<&str> { self.e_tag.as_deref() } - ///

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum type that was specified during the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } ///

    The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).

    pub fn server_side_encryption(&self) -> ::std::option::Option<&crate::types::ServerSideEncryption> { self.server_side_encryption.as_ref() @@ -118,8 +130,10 @@ impl ::std::fmt::Debug for CompleteMultipartUploadOutput { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("server_side_encryption", &self.server_side_encryption); formatter.field("version_id", &self.version_id); formatter.field("ssekms_key_id", &"*** Sensitive Data Redacted ***"); @@ -158,8 +172,10 @@ pub struct CompleteMultipartUploadOutputBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) server_side_encryption: ::std::option::Option, pub(crate) version_id: ::std::option::Option<::std::string::String>, pub(crate) ssekms_key_id: ::std::option::Option<::std::string::String>, @@ -251,62 +267,90 @@ impl CompleteMultipartUploadOutputBuilder { pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> { &self.e_tag } - ///

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum type that was specified during the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum type that was specified during the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum type that was specified during the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } ///

    The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).

    pub fn server_side_encryption(mut self, input: crate::types::ServerSideEncryption) -> Self { self.server_side_encryption = ::std::option::Option::Some(input); @@ -417,8 +461,10 @@ impl CompleteMultipartUploadOutputBuilder { e_tag: self.e_tag, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, + checksum_type: self.checksum_type, server_side_encryption: self.server_side_encryption, version_id: self.version_id, ssekms_key_id: self.ssekms_key_id, @@ -439,8 +485,10 @@ impl ::std::fmt::Debug for CompleteMultipartUploadOutputBuilder { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("server_side_encryption", &self.server_side_encryption); formatter.field("version_id", &self.version_id); formatter.field("ssekms_key_id", &"*** Sensitive Data Redacted ***"); diff --git a/sdk/s3/src/operation/complete_multipart_upload/builders.rs b/sdk/s3/src/operation/complete_multipart_upload/builders.rs index 3c3deff88112..d9ddc88eaaa6 100644 --- a/sdk/s3/src/operation/complete_multipart_upload/builders.rs +++ b/sdk/s3/src/operation/complete_multipart_upload/builders.rs @@ -29,7 +29,7 @@ impl crate::operation::complete_multipart_upload::builders::CompleteMultipartUpl ///

    You can't use Content-Type: application/x-www-form-urlencoded for the CompleteMultipartUpload requests. Also, if you don't provide a Content-Type header, CompleteMultipartUpload can still return a 200 OK response.

    /// ///

    For more information about multipart uploads, see Uploading Objects Using Multipart Upload in the Amazon S3 User Guide.

    -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

    +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    ///
    ///
    ///
    @@ -260,62 +260,104 @@ impl CompleteMultipartUploadFluentBuilder { pub fn get_upload_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_upload_id() } - ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + ///

    This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.inner = self.inner.checksum_type(input); + self + } + ///

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn get_checksum_type(&self) -> &::std::option::Option { + self.inner.get_checksum_type() + } + ///

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error.

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

    Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

    ///

    This functionality is not supported for directory buckets.

    ///
    diff --git a/sdk/s3/src/operation/copy_object/_copy_object_output.rs b/sdk/s3/src/operation/copy_object/_copy_object_output.rs index 86ae308fe478..6fa39aa8889c 100644 --- a/sdk/s3/src/operation/copy_object/_copy_object_output.rs +++ b/sdk/s3/src/operation/copy_object/_copy_object_output.rs @@ -29,7 +29,7 @@ pub struct CopyObjectOutput { pub sse_customer_key_md5: ::std::option::Option<::std::string::String>, ///

    If present, indicates the ID of the KMS key that was used for object encryption.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, ///

    Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

    pub bucket_key_enabled: ::std::option::Option, @@ -83,7 +83,7 @@ impl CopyObjectOutput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { self.ssekms_encryption_context.as_deref() } @@ -295,17 +295,17 @@ impl CopyObjectOutputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value pairs.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value pairs.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded UTF-8 string holding JSON with the encryption context key-value pairs.

    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_encryption_context } diff --git a/sdk/s3/src/operation/copy_object/builders.rs b/sdk/s3/src/operation/copy_object/builders.rs index 57d30290a0fb..5c99058557cc 100644 --- a/sdk/s3/src/operation/copy_object/builders.rs +++ b/sdk/s3/src/operation/copy_object/builders.rs @@ -30,7 +30,7 @@ impl crate::operation::copy_object::builders::CopyObjectInputBuilder { ///
  • ///

    Amazon S3 supports copy operations using Multi-Region Access Points only as a destination when using the Multi-Region Access Point ARN.

  • ///
  • -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

  • +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    ///
  • ///

    VPC endpoints don't support cross-Region requests (including copies). If you're using VPC endpoints, your source and destination buckets should be in the same Amazon Web Services Region as your VPC endpoint.

  • /// diff --git a/sdk/s3/src/operation/create_bucket/builders.rs b/sdk/s3/src/operation/create_bucket/builders.rs index d2b7f6dcdf88..0264d27296fa 100644 --- a/sdk/s3/src/operation/create_bucket/builders.rs +++ b/sdk/s3/src/operation/create_bucket/builders.rs @@ -31,7 +31,7 @@ impl crate::operation::create_bucket::builders::CreateBucketInputBuilder { ///
  • ///

    General purpose buckets - If you send your CreateBucket request to the s3.amazonaws.com global endpoint, the request goes to the us-east-1 Region. So the signature calculations in Signature Version 4 must use us-east-1 as the Region, even if the location constraint in the request specifies another Region where the bucket is to be created. If you create a bucket in a Region other than US East (N. Virginia), your application must be able to handle 307 redirect. For more information, see Virtual hosting of buckets in the Amazon S3 User Guide.

  • ///
  • -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

  • +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    /// /// ///
    diff --git a/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_input.rs b/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_input.rs index e0efd7e295af..db4959c923b0 100644 --- a/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_input.rs +++ b/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_input.rs @@ -244,7 +244,7 @@ pub struct CreateMultipartUploadInput { ///

    General purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse, but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon Web Services managed key (aws/s3) to protect the data.

    ///

    Directory buckets - If you specify x-amz-server-side-encryption with aws:kms, the x-amz-server-side-encryption-aws-kms-key-id header is implicitly assigned the ID of the KMS symmetric encryption customer managed key that's configured for your directory bucket's default encryption setting. If you want to specify the x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only specify it with the ID (Key ID or Key ARN) of the KMS customer managed key that's configured for your directory bucket's default encryption setting. Otherwise, you get an HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported.

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

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, ///

    Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).

    @@ -275,6 +275,8 @@ pub struct CreateMultipartUploadInput { pub expected_bucket_owner: ::std::option::Option<::std::string::String>, ///

    Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

    pub checksum_algorithm: ::std::option::Option, + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub checksum_type: ::std::option::Option, } impl CreateMultipartUploadInput { ///

    The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined set of grantees and permissions. For more information, see Canned ACL in the Amazon S3 User Guide.

    @@ -560,7 +562,7 @@ impl CreateMultipartUploadInput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { self.ssekms_encryption_context.as_deref() @@ -609,6 +611,10 @@ impl CreateMultipartUploadInput { pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } } impl ::std::fmt::Debug for CreateMultipartUploadInput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -643,6 +649,7 @@ impl ::std::fmt::Debug for CreateMultipartUploadInput { formatter.field("object_lock_legal_hold_status", &self.object_lock_legal_hold_status); formatter.field("expected_bucket_owner", &self.expected_bucket_owner); formatter.field("checksum_algorithm", &self.checksum_algorithm); + formatter.field("checksum_type", &self.checksum_type); formatter.finish() } } @@ -687,6 +694,7 @@ pub struct CreateMultipartUploadInputBuilder { pub(crate) object_lock_legal_hold_status: ::std::option::Option, pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>, pub(crate) checksum_algorithm: ::std::option::Option, + pub(crate) checksum_type: ::std::option::Option, } impl CreateMultipartUploadInputBuilder { ///

    The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined set of grantees and permissions. For more information, see Canned ACL in the Amazon S3 User Guide.

    @@ -1588,19 +1596,19 @@ impl CreateMultipartUploadInputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_encryption_context @@ -1753,6 +1761,20 @@ impl CreateMultipartUploadInputBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } /// Consumes the builder and constructs a [`CreateMultipartUploadInput`](crate::operation::create_multipart_upload::CreateMultipartUploadInput). pub fn build( self, @@ -1789,6 +1811,7 @@ impl CreateMultipartUploadInputBuilder { object_lock_legal_hold_status: self.object_lock_legal_hold_status, expected_bucket_owner: self.expected_bucket_owner, checksum_algorithm: self.checksum_algorithm, + checksum_type: self.checksum_type, }) } } @@ -1825,6 +1848,7 @@ impl ::std::fmt::Debug for CreateMultipartUploadInputBuilder { formatter.field("object_lock_legal_hold_status", &self.object_lock_legal_hold_status); formatter.field("expected_bucket_owner", &self.expected_bucket_owner); formatter.field("checksum_algorithm", &self.checksum_algorithm); + formatter.field("checksum_type", &self.checksum_type); formatter.finish() } } diff --git a/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_output.rs b/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_output.rs index 74fe4ad88584..e02c941d2ba9 100644 --- a/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_output.rs +++ b/sdk/s3/src/operation/create_multipart_upload/_create_multipart_upload_output.rs @@ -32,7 +32,7 @@ pub struct CreateMultipartUploadOutput { pub sse_customer_key_md5: ::std::option::Option<::std::string::String>, ///

    If present, indicates the ID of the KMS key that was used for object encryption.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, ///

    Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

    pub bucket_key_enabled: ::std::option::Option, @@ -42,6 +42,8 @@ pub struct CreateMultipartUploadOutput { pub request_charged: ::std::option::Option, ///

    The algorithm that was used to create a checksum of the object.

    pub checksum_algorithm: ::std::option::Option, + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub checksum_type: ::std::option::Option, _extended_request_id: Option, _request_id: Option, } @@ -93,7 +95,7 @@ impl CreateMultipartUploadOutput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { self.ssekms_encryption_context.as_deref() } @@ -111,6 +113,10 @@ impl CreateMultipartUploadOutput { pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } } impl ::std::fmt::Debug for CreateMultipartUploadOutput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -128,6 +134,7 @@ impl ::std::fmt::Debug for CreateMultipartUploadOutput { formatter.field("bucket_key_enabled", &self.bucket_key_enabled); formatter.field("request_charged", &self.request_charged); formatter.field("checksum_algorithm", &self.checksum_algorithm); + formatter.field("checksum_type", &self.checksum_type); formatter.field("_extended_request_id", &self._extended_request_id); formatter.field("_request_id", &self._request_id); formatter.finish() @@ -167,6 +174,7 @@ pub struct CreateMultipartUploadOutputBuilder { pub(crate) bucket_key_enabled: ::std::option::Option, pub(crate) request_charged: ::std::option::Option, pub(crate) checksum_algorithm: ::std::option::Option, + pub(crate) checksum_type: ::std::option::Option, _extended_request_id: Option, _request_id: Option, } @@ -330,17 +338,17 @@ impl CreateMultipartUploadOutputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_encryption_context } @@ -392,6 +400,20 @@ impl CreateMultipartUploadOutputBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } pub(crate) fn _extended_request_id(mut self, extended_request_id: impl Into) -> Self { self._extended_request_id = Some(extended_request_id.into()); self @@ -426,6 +448,7 @@ impl CreateMultipartUploadOutputBuilder { bucket_key_enabled: self.bucket_key_enabled, request_charged: self.request_charged, checksum_algorithm: self.checksum_algorithm, + checksum_type: self.checksum_type, _extended_request_id: self._extended_request_id, _request_id: self._request_id, } @@ -447,6 +470,7 @@ impl ::std::fmt::Debug for CreateMultipartUploadOutputBuilder { formatter.field("bucket_key_enabled", &self.bucket_key_enabled); formatter.field("request_charged", &self.request_charged); formatter.field("checksum_algorithm", &self.checksum_algorithm); + formatter.field("checksum_type", &self.checksum_type); formatter.field("_extended_request_id", &self._extended_request_id); formatter.field("_request_id", &self._request_id); formatter.finish() diff --git a/sdk/s3/src/operation/create_multipart_upload/builders.rs b/sdk/s3/src/operation/create_multipart_upload/builders.rs index f8bf17c2c108..d497cb14d231 100644 --- a/sdk/s3/src/operation/create_multipart_upload/builders.rs +++ b/sdk/s3/src/operation/create_multipart_upload/builders.rs @@ -30,7 +30,7 @@ impl crate::operation::create_multipart_upload::builders::CreateMultipartUploadI ///
  • ///

    Directory buckets - S3 Lifecycle is not supported by directory buckets.

  • ///
  • -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

  • +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    /// /// ///
    @@ -1103,19 +1103,19 @@ impl CreateMultipartUploadFluentBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_ssekms_key_id() } - ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_ssekms_encryption_context() @@ -1268,4 +1268,18 @@ impl CreateMultipartUploadFluentBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { self.inner.get_checksum_algorithm() } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.inner = self.inner.checksum_type(input); + self + } + ///

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

    Indicates the checksum type that you want Amazon S3 to use to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

    + pub fn get_checksum_type(&self) -> &::std::option::Option { + self.inner.get_checksum_type() + } } diff --git a/sdk/s3/src/operation/create_session/_create_session_input.rs b/sdk/s3/src/operation/create_session/_create_session_input.rs index d71fe3a61643..003937267a94 100644 --- a/sdk/s3/src/operation/create_session/_create_session_input.rs +++ b/sdk/s3/src/operation/create_session/_create_session_input.rs @@ -13,7 +13,7 @@ pub struct CreateSessionInput { ///

    If you specify x-amz-server-side-encryption with aws:kms, you must specify the x-amz-server-side-encryption-aws-kms-key-id header with the ID (Key ID or Key ARN) of the KMS symmetric encryption customer managed key to use. Otherwise, you get an HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Also, if the KMS key doesn't exist in the same account that't issuing the command, you must use the full Key ARN not the Key ID.

    ///

    Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported.

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

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    ///

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, @@ -40,7 +40,7 @@ impl CreateSessionInput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    ///

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { @@ -146,21 +146,21 @@ impl CreateSessionInputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    ///

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    ///

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    ///

    General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

    ///

    Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { diff --git a/sdk/s3/src/operation/create_session/_create_session_output.rs b/sdk/s3/src/operation/create_session/_create_session_output.rs index 4695611c5402..c9718097adc2 100644 --- a/sdk/s3/src/operation/create_session/_create_session_output.rs +++ b/sdk/s3/src/operation/create_session/_create_session_output.rs @@ -7,7 +7,7 @@ pub struct CreateSessionOutput { pub server_side_encryption: ::std::option::Option, ///

    If you specify x-amz-server-side-encryption with aws:kms, this header indicates the ID of the KMS symmetric encryption customer managed key that was used for object encryption.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, ///

    Indicates whether to use an S3 Bucket Key for server-side encryption with KMS keys (SSE-KMS).

    pub bucket_key_enabled: ::std::option::Option, @@ -25,7 +25,7 @@ impl CreateSessionOutput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { self.ssekms_encryption_context.as_deref() } @@ -109,17 +109,17 @@ impl CreateSessionOutputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

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

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    + ///

    If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

    pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_encryption_context } diff --git a/sdk/s3/src/operation/create_session/builders.rs b/sdk/s3/src/operation/create_session/builders.rs index c7fb55a4eb17..b533e30a09a8 100644 --- a/sdk/s3/src/operation/create_session/builders.rs +++ b/sdk/s3/src/operation/create_session/builders.rs @@ -27,7 +27,7 @@ impl crate::operation::create_session::builders::CreateSessionInputBuilder { ///

    If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to initiate and manage requests to the CreateSession API. For more information, see Performance guidelines and design patterns in the Amazon S3 User Guide.

    ///
      ///
    • -///

      You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

    • +///

      You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

      ///
    • ///

      CopyObject API operation - Unlike other Zonal endpoint API operations, the CopyObject API operation doesn't use the temporary security credentials returned from the CreateSession API operation for authentication and authorization. For information about authentication and authorization of the CopyObject API operation on directory buckets, see CopyObject.

    • ///
    • @@ -209,21 +209,21 @@ impl CreateSessionFluentBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_ssekms_key_id() } - ///

      Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

      + ///

      Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

      ///

      General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

      ///

      Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

      Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

      + ///

      Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

      ///

      General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

      ///

      Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

      Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

      + ///

      Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

      ///

      General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

      ///

      Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

      pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { diff --git a/sdk/s3/src/operation/delete_bucket/builders.rs b/sdk/s3/src/operation/delete_bucket/builders.rs index 5752c4cfea28..538379a6c6a9 100644 --- a/sdk/s3/src/operation/delete_bucket/builders.rs +++ b/sdk/s3/src/operation/delete_bucket/builders.rs @@ -27,7 +27,7 @@ impl crate::operation::delete_bucket::builders::DeleteBucketInputBuilder { ///
    • ///

      Directory buckets - If multipart uploads in a directory bucket are in progress, you can't delete the bucket until all the in-progress multipart uploads are aborted or completed.

    • ///
    • -///

      Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

    • +///

      Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

      ///
    ///
    ///
    diff --git a/sdk/s3/src/operation/delete_bucket_lifecycle/builders.rs b/sdk/s3/src/operation/delete_bucket_lifecycle/builders.rs index f948b5c31a9f..6bd884282671 100644 --- a/sdk/s3/src/operation/delete_bucket_lifecycle/builders.rs +++ b/sdk/s3/src/operation/delete_bucket_lifecycle/builders.rs @@ -37,7 +37,7 @@ impl crate::operation::delete_bucket_lifecycle::builders::DeleteBucketLifecycleI ///
  • ///

    Directory bucket permissions - You must have the s3express:PutLifecycleConfiguration permission in an IAM identity-based policy to use this operation. Cross-account access to this API operation isn't supported. The resource owner can optionally grant access permissions to others by creating a role or user for them as long as they are within the same account as the owner and resource.

    ///

    For more information about directory bucket policies and permissions, see Authorizing Regional endpoint APIs with IAM in the Amazon S3 User Guide.

    -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

    +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    ///
  • /// /// diff --git a/sdk/s3/src/operation/delete_bucket_policy/builders.rs b/sdk/s3/src/operation/delete_bucket_policy/builders.rs index dd8fbc85b1ee..dd2f51f8b73d 100644 --- a/sdk/s3/src/operation/delete_bucket_policy/builders.rs +++ b/sdk/s3/src/operation/delete_bucket_policy/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::delete_bucket_policy::builders::DeleteBucketPolicyInputBu /// Fluent builder constructing a request to `DeleteBucketPolicy`. /// ///

    Deletes the policy of a specified bucket.

    -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

    +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    ///
    ///
    ///
    diff --git a/sdk/s3/src/operation/delete_object/builders.rs b/sdk/s3/src/operation/delete_object/builders.rs index add70b984152..adbacf8cc2b7 100644 --- a/sdk/s3/src/operation/delete_object/builders.rs +++ b/sdk/s3/src/operation/delete_object/builders.rs @@ -35,7 +35,7 @@ impl crate::operation::delete_object::builders::DeleteObjectInputBuilder { ///
  • ///

    Directory buckets - S3 Versioning isn't enabled and supported for directory buckets. For this API operation, only the null value of the version ID is supported by directory buckets. You can only specify null to the versionId query parameter in the request.

  • ///
  • -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

  • +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    /// /// ///

    To remove a specific version, you must use the versionId query parameter. Using this query parameter permanently deletes the version. If the object deleted is a delete marker, Amazon S3 sets the response header x-amz-delete-marker to true.

    diff --git a/sdk/s3/src/operation/delete_objects/_delete_objects_input.rs b/sdk/s3/src/operation/delete_objects/_delete_objects_input.rs index 8d09188de50d..bcba5489ddd2 100644 --- a/sdk/s3/src/operation/delete_objects/_delete_objects_input.rs +++ b/sdk/s3/src/operation/delete_objects/_delete_objects_input.rs @@ -31,16 +31,18 @@ pub struct DeleteObjectsInput { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      ///
    • - ///

      CRC32C

    • + ///

      CRC-32C

      ///
    • - ///

      SHA1

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA256

    • + ///

      SHA-1

      + ///
    • + ///

      SHA-256

    • ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub checksum_algorithm: ::std::option::Option, } @@ -85,16 +87,18 @@ impl DeleteObjectsInput { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      + ///
    • + ///

      CRC-32C

    • ///
    • - ///

      CRC32C

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA1

    • + ///

      SHA-1

      ///
    • - ///

      SHA256

    • + ///

      SHA-256

      ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() @@ -246,16 +250,18 @@ impl DeleteObjectsInputBuilder { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      + ///
    • + ///

      CRC-32C

    • ///
    • - ///

      CRC32C

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA1

    • + ///

      SHA-1

      ///
    • - ///

      SHA256

    • + ///

      SHA-256

      ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self { self.checksum_algorithm = ::std::option::Option::Some(input); @@ -265,16 +271,18 @@ impl DeleteObjectsInputBuilder { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      ///
    • - ///

      CRC32C

    • + ///

      CRC-32C

      ///
    • - ///

      SHA1

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA256

    • + ///

      SHA-1

      + ///
    • + ///

      SHA-256

    • ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn set_checksum_algorithm(mut self, input: ::std::option::Option) -> Self { self.checksum_algorithm = input; @@ -284,16 +292,18 @@ impl DeleteObjectsInputBuilder { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      + ///
    • + ///

      CRC-32C

    • ///
    • - ///

      CRC32C

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA1

    • + ///

      SHA-1

      ///
    • - ///

      SHA256

    • + ///

      SHA-256

      ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm diff --git a/sdk/s3/src/operation/delete_objects/builders.rs b/sdk/s3/src/operation/delete_objects/builders.rs index 8f526c42b00c..c204f361f155 100644 --- a/sdk/s3/src/operation/delete_objects/builders.rs +++ b/sdk/s3/src/operation/delete_objects/builders.rs @@ -28,7 +28,7 @@ impl crate::operation::delete_objects::builders::DeleteObjectsInputBuilder { ///
  • ///

    Directory buckets - S3 Versioning isn't enabled and supported for directory buckets.

  • ///
  • -///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

  • +///

    Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

    /// /// ///

    The operation supports two modes for the response: verbose and quiet. By default, the operation uses verbose mode in which the response includes the result of deletion of each key in your request. In quiet mode the response includes only keys where the delete operation encountered an error. For a successful deletion in a quiet mode, the operation does not return any information about the delete in the response body.

    @@ -293,16 +293,18 @@ impl DeleteObjectsFluentBuilder { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      ///
    • - ///

      CRC32C

    • + ///

      CRC-32C

      ///
    • - ///

      SHA1

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA256

    • + ///

      SHA-1

      + ///
    • + ///

      SHA-256

    • ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self { self.inner = self.inner.checksum_algorithm(input); @@ -312,16 +314,18 @@ impl DeleteObjectsFluentBuilder { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      + ///
    • + ///

      CRC-32C

    • ///
    • - ///

      CRC32C

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA1

    • + ///

      SHA-1

      ///
    • - ///

      SHA256

    • + ///

      SHA-256

      ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn set_checksum_algorithm(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_checksum_algorithm(input); @@ -331,16 +335,18 @@ impl DeleteObjectsFluentBuilder { ///

    For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

    ///
      ///
    • - ///

      CRC32

    • + ///

      CRC-32

      + ///
    • + ///

      CRC-32C

    • ///
    • - ///

      CRC32C

    • + ///

      CRC-64NVME

      ///
    • - ///

      SHA1

    • + ///

      SHA-1

      ///
    • - ///

      SHA256

    • + ///

      SHA-256

      ///
    ///

    For more information, see Checking object integrity in the Amazon S3 User Guide.

    - ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

    + ///

    If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

    ///

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

    pub fn get_checksum_algorithm(&self) -> &::std::option::Option { self.inner.get_checksum_algorithm() diff --git a/sdk/s3/src/operation/get_bucket_lifecycle_configuration/_get_bucket_lifecycle_configuration_output.rs b/sdk/s3/src/operation/get_bucket_lifecycle_configuration/_get_bucket_lifecycle_configuration_output.rs index a864625219c9..0e348428b16e 100644 --- a/sdk/s3/src/operation/get_bucket_lifecycle_configuration/_get_bucket_lifecycle_configuration_output.rs +++ b/sdk/s3/src/operation/get_bucket_lifecycle_configuration/_get_bucket_lifecycle_configuration_output.rs @@ -6,7 +6,7 @@ pub struct GetBucketLifecycleConfigurationOutput { ///

    Container for a lifecycle rule.

    pub rules: ::std::option::Option<::std::vec::Vec>, ///

    Indicates which default minimum object size behavior is applied to the lifecycle configuration.

    - ///

    This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.

    + ///

    This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

    ///
    ///
      ///
    • @@ -27,7 +27,7 @@ impl GetBucketLifecycleConfigurationOutput { self.rules.as_deref().unwrap_or_default() } ///

      Indicates which default minimum object size behavior is applied to the lifecycle configuration.

      - ///

      This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.

      + ///

      This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

      ///
      ///
        ///
      • @@ -88,7 +88,7 @@ impl GetBucketLifecycleConfigurationOutputBuilder { &self.rules } ///

        Indicates which default minimum object size behavior is applied to the lifecycle configuration.

        - ///

        This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.

        + ///

        This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

        ///
        ///
          ///
        • @@ -102,7 +102,7 @@ impl GetBucketLifecycleConfigurationOutputBuilder { self } ///

          Indicates which default minimum object size behavior is applied to the lifecycle configuration.

          - ///

          This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.

          + ///

          This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

          ///
          ///
            ///
          • @@ -119,7 +119,7 @@ impl GetBucketLifecycleConfigurationOutputBuilder { self } ///

            Indicates which default minimum object size behavior is applied to the lifecycle configuration.

            - ///

            This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.

            + ///

            This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.

            ///
            ///
              ///
            • diff --git a/sdk/s3/src/operation/get_bucket_lifecycle_configuration/builders.rs b/sdk/s3/src/operation/get_bucket_lifecycle_configuration/builders.rs index e9394e58a352..ff5111af5eae 100644 --- a/sdk/s3/src/operation/get_bucket_lifecycle_configuration/builders.rs +++ b/sdk/s3/src/operation/get_bucket_lifecycle_configuration/builders.rs @@ -40,7 +40,7 @@ impl crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLi ///
            • ///

              Directory bucket permissions - You must have the s3express:GetLifecycleConfiguration permission in an IAM identity-based policy to use this operation. Cross-account access to this API operation isn't supported. The resource owner can optionally grant access permissions to others by creating a role or user for them as long as they are within the same account as the owner and resource.

              ///

              For more information about directory bucket policies and permissions, see Authorizing Regional endpoint APIs with IAM in the Amazon S3 User Guide.

              -///

              Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

              +///

              Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

              ///
            • ///
            /// diff --git a/sdk/s3/src/operation/get_bucket_policy/builders.rs b/sdk/s3/src/operation/get_bucket_policy/builders.rs index 33bf0c550626..865358f1b89e 100644 --- a/sdk/s3/src/operation/get_bucket_policy/builders.rs +++ b/sdk/s3/src/operation/get_bucket_policy/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::get_bucket_policy::builders::GetBucketPolicyInputBuilder /// Fluent builder constructing a request to `GetBucketPolicy`. /// ///

            Returns the policy of a specified bucket.

            -///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            ///
            diff --git a/sdk/s3/src/operation/get_object.rs b/sdk/s3/src/operation/get_object.rs index fa4a99cdfb1f..8bfea98a3838 100644 --- a/sdk/s3/src/operation/get_object.rs +++ b/sdk/s3/src/operation/get_object.rs @@ -122,7 +122,7 @@ impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetObje .with_interceptor(GetObjectEndpointParamsInterceptor) .with_interceptor(crate::s3_expires_interceptor::S3ExpiresInterceptor) .with_interceptor(crate::http_response_checksum::ResponseChecksumInterceptor::new( - ["crc32", "crc32c", "sha256", "sha1"].as_slice(), + ["crc64nvme", "crc32", "crc32c", "sha256", "sha1"].as_slice(), |input: &::aws_smithy_runtime_api::client::interceptors::context::Input| { let input: &crate::operation::get_object::GetObjectInput = input.downcast_ref().expect("correct type"); matches!(input.checksum_mode(), ::std::option::Option::Some(crate::types::ChecksumMode::Enabled)) diff --git a/sdk/s3/src/operation/get_object/_get_object_output.rs b/sdk/s3/src/operation/get_object/_get_object_output.rs index 27092d0626cb..d92346a452c7 100644 --- a/sdk/s3/src/operation/get_object/_get_object_output.rs +++ b/sdk/s3/src/operation/get_object/_get_object_output.rs @@ -30,14 +30,18 @@ pub struct GetObjectOutput { pub content_length: ::std::option::Option, ///

            An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

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

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub checksum_type: ::std::option::Option, ///

            This is set to the number of metadata entries not returned in the headers that are prefixed with x-amz-meta-. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

            ///

            This functionality is not supported for directory buckets.

            ///
            @@ -162,22 +166,30 @@ impl GetObjectOutput { pub fn e_tag(&self) -> ::std::option::Option<&str> { self.e_tag.as_deref() } - ///

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } ///

            This is set to the number of metadata entries not returned in the headers that are prefixed with x-amz-meta-. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

            ///

            This functionality is not supported for directory buckets.

            ///
            @@ -318,8 +330,10 @@ impl ::std::fmt::Debug for GetObjectOutput { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("missing_meta", &self.missing_meta); formatter.field("version_id", &self.version_id); formatter.field("cache_control", &self.cache_control); @@ -381,8 +395,10 @@ pub struct GetObjectOutputBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) missing_meta: ::std::option::Option, pub(crate) version_id: ::std::option::Option<::std::string::String>, pub(crate) cache_control: ::std::option::Option<::std::string::String>, @@ -560,62 +576,90 @@ impl GetObjectOutputBuilder { pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> { &self.e_tag } - ///

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in the CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } ///

            This is set to the number of metadata entries not returned in the headers that are prefixed with x-amz-meta-. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

            ///

            This functionality is not supported for directory buckets.

            ///
            @@ -1081,8 +1125,10 @@ impl GetObjectOutputBuilder { e_tag: self.e_tag, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, + checksum_type: self.checksum_type, missing_meta: self.missing_meta, version_id: self.version_id, cache_control: self.cache_control, @@ -1126,8 +1172,10 @@ impl ::std::fmt::Debug for GetObjectOutputBuilder { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("missing_meta", &self.missing_meta); formatter.field("version_id", &self.version_id); formatter.field("cache_control", &self.cache_control); diff --git a/sdk/s3/src/operation/get_object/builders.rs b/sdk/s3/src/operation/get_object/builders.rs index 45b6a6be6f5a..5b8cb23abe2b 100644 --- a/sdk/s3/src/operation/get_object/builders.rs +++ b/sdk/s3/src/operation/get_object/builders.rs @@ -25,7 +25,7 @@ impl crate::operation::get_object::builders::GetObjectInputBuilder { ///

            Retrieves an object from Amazon S3.

            ///

            In the GetObject request, specify the full key name for the object.

            ///

            General purpose buckets - Both the virtual-hosted-style requests and the path-style requests are supported. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg, specify the object key name as /photos/2006/February/sample.jpg. For a path-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket, specify the object key name as /examplebucket/photos/2006/February/sample.jpg. For more information about request types, see HTTP Host Header Bucket Specification in the Amazon S3 User Guide.

            -///

            Directory buckets - Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket--use1-az5--x-s3, specify the object key name as /photos/2006/February/sample.jpg. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            Directory buckets - Only virtual-hosted-style requests are supported. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket--use1-az5--x-s3, specify the object key name as /photos/2006/February/sample.jpg. Also, when you make requests to this API operation, your requests are sent to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            /// Permissions diff --git a/sdk/s3/src/operation/get_object_attributes/builders.rs b/sdk/s3/src/operation/get_object_attributes/builders.rs index aaec14ae5f0b..ad0ca17b518d 100644 --- a/sdk/s3/src/operation/get_object_attributes/builders.rs +++ b/sdk/s3/src/operation/get_object_attributes/builders.rs @@ -24,7 +24,7 @@ impl crate::operation::get_object_attributes::builders::GetObjectAttributesInput /// ///

            Retrieves all the metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata.

            ///

            GetObjectAttributes combines the functionality of HeadObject and ListParts. All of the data returned with each of those individual calls can be returned with a single call to GetObjectAttributes.

            -///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            ///
            diff --git a/sdk/s3/src/operation/head_bucket/builders.rs b/sdk/s3/src/operation/head_bucket/builders.rs index 6df30887ea53..9a1b9d535e50 100644 --- a/sdk/s3/src/operation/head_bucket/builders.rs +++ b/sdk/s3/src/operation/head_bucket/builders.rs @@ -52,7 +52,7 @@ impl crate::operation::head_bucket::builders::HeadBucketInputBuilder { ///
            ///
            ///

            Directory buckets - The HTTP Host header syntax is Bucket-name.s3express-zone-id.region-code.amazonaws.com.

            -///

            You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            ///
            diff --git a/sdk/s3/src/operation/head_object/_head_object_output.rs b/sdk/s3/src/operation/head_object/_head_object_output.rs index 0e4aeefc6770..c515a641df08 100644 --- a/sdk/s3/src/operation/head_object/_head_object_output.rs +++ b/sdk/s3/src/operation/head_object/_head_object_output.rs @@ -29,14 +29,18 @@ pub struct HeadObjectOutput { pub last_modified: ::std::option::Option<::aws_smithy_types::DateTime>, ///

            Size of the body in bytes.

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

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub checksum_type: ::std::option::Option, ///

            An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

            pub e_tag: ::std::option::Option<::std::string::String>, ///

            This is set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

            @@ -164,22 +168,30 @@ impl HeadObjectOutput { pub fn content_length(&self) -> ::std::option::Option { self.content_length } - ///

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } ///

            An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

            pub fn e_tag(&self) -> ::std::option::Option<&str> { self.e_tag.as_deref() @@ -324,8 +336,10 @@ impl ::std::fmt::Debug for HeadObjectOutput { formatter.field("content_length", &self.content_length); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("e_tag", &self.e_tag); formatter.field("missing_meta", &self.missing_meta); formatter.field("version_id", &self.version_id); @@ -385,8 +399,10 @@ pub struct HeadObjectOutputBuilder { pub(crate) content_length: ::std::option::Option, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) missing_meta: ::std::option::Option, pub(crate) version_id: ::std::option::Option<::std::string::String>, @@ -549,62 +565,90 @@ impl HeadObjectOutputBuilder { pub fn get_content_length(&self) -> &::std::option::Option { &self.content_length } - ///

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 64-bit CRC-64NVME checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

            + ///

            The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

            The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

            + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } ///

            An entity tag (ETag) is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

            pub fn e_tag(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.e_tag = ::std::option::Option::Some(input.into()); @@ -1082,8 +1126,10 @@ impl HeadObjectOutputBuilder { content_length: self.content_length, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, + checksum_type: self.checksum_type, e_tag: self.e_tag, missing_meta: self.missing_meta, version_id: self.version_id, @@ -1125,8 +1171,10 @@ impl ::std::fmt::Debug for HeadObjectOutputBuilder { formatter.field("content_length", &self.content_length); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("e_tag", &self.e_tag); formatter.field("missing_meta", &self.missing_meta); formatter.field("version_id", &self.version_id); diff --git a/sdk/s3/src/operation/head_object/builders.rs b/sdk/s3/src/operation/head_object/builders.rs index a4984f5d86b7..0040d1f8f970 100644 --- a/sdk/s3/src/operation/head_object/builders.rs +++ b/sdk/s3/src/operation/head_object/builders.rs @@ -90,7 +90,7 @@ impl crate::operation::head_object::builders::HeadObjectInputBuilder { ///
            ///
            ///

            Directory buckets - The HTTP Host header syntax is Bucket-name.s3express-zone-id.region-code.amazonaws.com.

            -///

            For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            ///
            diff --git a/sdk/s3/src/operation/list_directory_buckets/builders.rs b/sdk/s3/src/operation/list_directory_buckets/builders.rs index df9354ccadba..58d268b19414 100644 --- a/sdk/s3/src/operation/list_directory_buckets/builders.rs +++ b/sdk/s3/src/operation/list_directory_buckets/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::list_directory_buckets::builders::ListDirectoryBucketsInp /// Fluent builder constructing a request to `ListDirectoryBuckets`. /// ///

            Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide.

            -///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            ///
            diff --git a/sdk/s3/src/operation/list_multipart_uploads/builders.rs b/sdk/s3/src/operation/list_multipart_uploads/builders.rs index b558232c3ba7..3d5c6d20a5d0 100644 --- a/sdk/s3/src/operation/list_multipart_uploads/builders.rs +++ b/sdk/s3/src/operation/list_multipart_uploads/builders.rs @@ -29,7 +29,7 @@ impl crate::operation::list_multipart_uploads::builders::ListMultipartUploadsInp ///

            Directory buckets - The upload-id-marker element and the NextUploadIdMarker element aren't supported by directory buckets. To list the additional multipart uploads, you only need to set the value of key-marker to the NextKeyMarker value from the previous response.

            /// ///

            For more information about multipart uploads, see Uploading Objects Using Multipart Upload in the Amazon S3 User Guide.

            -///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
            ///
            ///
            diff --git a/sdk/s3/src/operation/list_objects_v2/builders.rs b/sdk/s3/src/operation/list_objects_v2/builders.rs index 32918bd06cae..f4abaa501631 100644 --- a/sdk/s3/src/operation/list_objects_v2/builders.rs +++ b/sdk/s3/src/operation/list_objects_v2/builders.rs @@ -29,7 +29,7 @@ impl crate::operation::list_objects_v2::builders::ListObjectsV2InputBuilder { ///
          • ///

            Directory buckets - For directory buckets, ListObjectsV2 response includes the prefixes that are related only to in-progress multipart uploads.

          • ///
          • -///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

          • +///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

          • ///
          /// ///
          diff --git a/sdk/s3/src/operation/list_parts/_list_parts_output.rs b/sdk/s3/src/operation/list_parts/_list_parts_output.rs index 775a50517bb8..653e2d7c9e9c 100644 --- a/sdk/s3/src/operation/list_parts/_list_parts_output.rs +++ b/sdk/s3/src/operation/list_parts/_list_parts_output.rs @@ -44,6 +44,8 @@ pub struct ListPartsOutput { pub request_charged: ::std::option::Option, ///

          The algorithm that was used to create a checksum of the object.

          pub checksum_algorithm: ::std::option::Option, + ///

          The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_type: ::std::option::Option, _extended_request_id: Option, _request_id: Option, } @@ -121,6 +123,10 @@ impl ListPartsOutput { pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() } + ///

          The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } } impl crate::s3_request_id::RequestIdExt for ListPartsOutput { fn extended_request_id(&self) -> Option<&str> { @@ -158,6 +164,7 @@ pub struct ListPartsOutputBuilder { pub(crate) storage_class: ::std::option::Option, pub(crate) request_charged: ::std::option::Option, pub(crate) checksum_algorithm: ::std::option::Option, + pub(crate) checksum_type: ::std::option::Option, _extended_request_id: Option, _request_id: Option, } @@ -411,6 +418,20 @@ impl ListPartsOutputBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm } + ///

          The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

          The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The checksum type, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header response to verify that the checksum type that is received is the same checksum type that was specified in CreateMultipartUpload request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } pub(crate) fn _extended_request_id(mut self, extended_request_id: impl Into) -> Self { self._extended_request_id = Some(extended_request_id.into()); self @@ -447,6 +468,7 @@ impl ListPartsOutputBuilder { storage_class: self.storage_class, request_charged: self.request_charged, checksum_algorithm: self.checksum_algorithm, + checksum_type: self.checksum_type, _extended_request_id: self._extended_request_id, _request_id: self._request_id, } diff --git a/sdk/s3/src/operation/list_parts/builders.rs b/sdk/s3/src/operation/list_parts/builders.rs index d8cb1cc87935..aef59dfe2d68 100644 --- a/sdk/s3/src/operation/list_parts/builders.rs +++ b/sdk/s3/src/operation/list_parts/builders.rs @@ -26,7 +26,7 @@ impl crate::operation::list_parts::builders::ListPartsInputBuilder { ///

          To use this operation, you must provide the upload ID in the request. You obtain this uploadID by sending the initiate multipart upload request through CreateMultipartUpload.

          ///

          The ListParts request returns a maximum of 1,000 uploaded parts. The limit of 1,000 parts is also the default value. You can restrict the number of parts in a response by specifying the max-parts request parameter. If your multipart upload consists of more than 1,000 parts, the response returns an IsTruncated field with the value of true, and a NextPartNumberMarker element. To list remaining uploaded parts, in subsequent ListParts requests, include the part-number-marker query string parameter and set its value to the NextPartNumberMarker field value from the previous response.

          ///

          For more information on multipart uploads, see Uploading Objects Using Multipart Upload in the Amazon S3 User Guide.

          -///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

          +///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

          ///
          ///
          ///
          diff --git a/sdk/s3/src/operation/put_bucket_acl/_put_bucket_acl_input.rs b/sdk/s3/src/operation/put_bucket_acl/_put_bucket_acl_input.rs index ee9b9cfc4035..f6680a3fd63e 100644 --- a/sdk/s3/src/operation/put_bucket_acl/_put_bucket_acl_input.rs +++ b/sdk/s3/src/operation/put_bucket_acl/_put_bucket_acl_input.rs @@ -9,7 +9,7 @@ pub struct PutBucketAclInput { pub access_control_policy: ::std::option::Option, ///

          The bucket to which to apply the ACL.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -42,7 +42,7 @@ impl PutBucketAclInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -145,19 +145,19 @@ impl PutBucketAclInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_acl/builders.rs b/sdk/s3/src/operation/put_bucket_acl/builders.rs index a993d21248a8..d200b356863d 100644 --- a/sdk/s3/src/operation/put_bucket_acl/builders.rs +++ b/sdk/s3/src/operation/put_bucket_acl/builders.rs @@ -276,19 +276,19 @@ impl PutBucketAclFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_bucket_cors/_put_bucket_cors_input.rs b/sdk/s3/src/operation/put_bucket_cors/_put_bucket_cors_input.rs index 2282f669f33b..38c0f71349d5 100644 --- a/sdk/s3/src/operation/put_bucket_cors/_put_bucket_cors_input.rs +++ b/sdk/s3/src/operation/put_bucket_cors/_put_bucket_cors_input.rs @@ -7,7 +7,7 @@ pub struct PutBucketCorsInput { pub bucket: ::std::option::Option<::std::string::String>, ///

          Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -25,7 +25,7 @@ impl PutBucketCorsInput { pub fn cors_configuration(&self) -> ::std::option::Option<&crate::types::CorsConfiguration> { self.cors_configuration.as_ref() } - ///

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -88,19 +88,19 @@ impl PutBucketCorsInputBuilder { pub fn get_cors_configuration(&self) -> &::std::option::Option { &self.cors_configuration } - ///

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_cors/builders.rs b/sdk/s3/src/operation/put_bucket_cors/builders.rs index d18a3d8d77be..adc480f67d70 100644 --- a/sdk/s3/src/operation/put_bucket_cors/builders.rs +++ b/sdk/s3/src/operation/put_bucket_cors/builders.rs @@ -161,19 +161,19 @@ impl PutBucketCorsFluentBuilder { pub fn get_cors_configuration(&self) -> &::std::option::Option { self.inner.get_cors_configuration() } - ///

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_bucket_encryption/_put_bucket_encryption_input.rs b/sdk/s3/src/operation/put_bucket_encryption/_put_bucket_encryption_input.rs index d1fc9c0f2900..aaf5d64f2208 100644 --- a/sdk/s3/src/operation/put_bucket_encryption/_put_bucket_encryption_input.rs +++ b/sdk/s3/src/operation/put_bucket_encryption/_put_bucket_encryption_input.rs @@ -6,7 +6,7 @@ pub struct PutBucketEncryptionInput { ///

          Specifies default encryption for a bucket using server-side encryption with different key options.

          ///

          Directory buckets - When you use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide

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

          The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

          + ///

          The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          ///

          This functionality is not supported for directory buckets.

          ///
          @@ -29,7 +29,7 @@ impl PutBucketEncryptionInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

          + ///

          The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          ///

          This functionality is not supported for directory buckets.

          ///
          @@ -90,7 +90,7 @@ impl PutBucketEncryptionInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

          + ///

          The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          ///

          This functionality is not supported for directory buckets.

          ///
          @@ -98,7 +98,7 @@ impl PutBucketEncryptionInputBuilder { self.content_md5 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

          + ///

          The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          ///

          This functionality is not supported for directory buckets.

          ///
          @@ -106,7 +106,7 @@ impl PutBucketEncryptionInputBuilder { self.content_md5 = input; self } - ///

          The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

          + ///

          The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          ///

          This functionality is not supported for directory buckets.

          ///
          diff --git a/sdk/s3/src/operation/put_bucket_encryption/builders.rs b/sdk/s3/src/operation/put_bucket_encryption/builders.rs index 2c3aaeeb5d01..3409108ceb98 100644 --- a/sdk/s3/src/operation/put_bucket_encryption/builders.rs +++ b/sdk/s3/src/operation/put_bucket_encryption/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::put_bucket_encryption::builders::PutBucketEncryptionInput /// Fluent builder constructing a request to `PutBucketEncryption`. /// ///

          This operation configures default encryption and Amazon S3 Bucket Keys for an existing bucket.

          -///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

          +///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

          ///
          ///

          By default, all buckets have a default encryption configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3).

          ///
            @@ -183,7 +183,7 @@ impl PutBucketEncryptionFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

            The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

            + ///

            The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

            ///

            For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

            ///

            This functionality is not supported for directory buckets.

            ///
            @@ -191,7 +191,7 @@ impl PutBucketEncryptionFluentBuilder { self.inner = self.inner.content_md5(input.into()); self } - ///

            The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

            + ///

            The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

            ///

            For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

            ///

            This functionality is not supported for directory buckets.

            ///
            @@ -199,7 +199,7 @@ impl PutBucketEncryptionFluentBuilder { self.inner = self.inner.set_content_md5(input); self } - ///

            The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

            + ///

            The Base64 encoded 128-bit MD5 digest of the server-side encryption configuration.

            ///

            For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

            ///

            This functionality is not supported for directory buckets.

            ///
            diff --git a/sdk/s3/src/operation/put_bucket_lifecycle_configuration/builders.rs b/sdk/s3/src/operation/put_bucket_lifecycle_configuration/builders.rs index 030324688cf1..1762da272da7 100644 --- a/sdk/s3/src/operation/put_bucket_lifecycle_configuration/builders.rs +++ b/sdk/s3/src/operation/put_bucket_lifecycle_configuration/builders.rs @@ -70,7 +70,7 @@ impl crate::operation::put_bucket_lifecycle_configuration::builders::PutBucketLi ///
          • ///

            Directory bucket permissions - You must have the s3express:PutLifecycleConfiguration permission in an IAM identity-based policy to use this operation. Cross-account access to this API operation isn't supported. The resource owner can optionally grant access permissions to others by creating a role or user for them as long as they are within the same account as the owner and resource.

            ///

            For more information about directory bucket policies and permissions, see Authorizing Regional endpoint APIs with IAM in the Amazon S3 User Guide.

            -///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

            +///

            Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

            ///
          • ///
          /// diff --git a/sdk/s3/src/operation/put_bucket_policy/_put_bucket_policy_input.rs b/sdk/s3/src/operation/put_bucket_policy/_put_bucket_policy_input.rs index f2d4b422953f..7d69ddff8cf0 100644 --- a/sdk/s3/src/operation/put_bucket_policy/_put_bucket_policy_input.rs +++ b/sdk/s3/src/operation/put_bucket_policy/_put_bucket_policy_input.rs @@ -15,16 +15,18 @@ pub struct PutBucketPolicyInput { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            ///
          • - ///

            CRC32C

          • + ///

            CRC-32C

            ///
          • - ///

            SHA1

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA256

          • + ///

            SHA-1

            + ///
          • + ///

            SHA-256

          • ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub checksum_algorithm: ::std::option::Option, @@ -57,16 +59,18 @@ impl PutBucketPolicyInput { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { @@ -154,16 +158,18 @@ impl PutBucketPolicyInputBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self { @@ -174,16 +180,18 @@ impl PutBucketPolicyInputBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            ///
          • - ///

            CRC32C

          • + ///

            CRC-32C

            ///
          • - ///

            SHA1

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA256

          • + ///

            SHA-1

            + ///
          • + ///

            SHA-256

          • ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn set_checksum_algorithm(mut self, input: ::std::option::Option) -> Self { @@ -194,16 +202,18 @@ impl PutBucketPolicyInputBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn get_checksum_algorithm(&self) -> &::std::option::Option { diff --git a/sdk/s3/src/operation/put_bucket_policy/builders.rs b/sdk/s3/src/operation/put_bucket_policy/builders.rs index cc5969ce9c4e..6b87e2e04437 100644 --- a/sdk/s3/src/operation/put_bucket_policy/builders.rs +++ b/sdk/s3/src/operation/put_bucket_policy/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::put_bucket_policy::builders::PutBucketPolicyInputBuilder /// Fluent builder constructing a request to `PutBucketPolicy`. /// ///

          Applies an Amazon S3 bucket policy to an Amazon S3 bucket.

          -///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

          +///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

          ///
          ///
          ///
          @@ -191,16 +191,18 @@ impl PutBucketPolicyFluentBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            ///
          • - ///

            CRC32C

          • + ///

            CRC-32C

            ///
          • - ///

            SHA1

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA256

          • + ///

            SHA-1

            + ///
          • + ///

            SHA-256

          • ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn checksum_algorithm(mut self, input: crate::types::ChecksumAlgorithm) -> Self { @@ -211,16 +213,18 @@ impl PutBucketPolicyFluentBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn set_checksum_algorithm(mut self, input: ::std::option::Option) -> Self { @@ -231,16 +235,18 @@ impl PutBucketPolicyFluentBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          ///
          pub fn get_checksum_algorithm(&self) -> &::std::option::Option { diff --git a/sdk/s3/src/operation/put_bucket_replication/_put_bucket_replication_input.rs b/sdk/s3/src/operation/put_bucket_replication/_put_bucket_replication_input.rs index b496db3b3394..9d8d3964ec7f 100644 --- a/sdk/s3/src/operation/put_bucket_replication/_put_bucket_replication_input.rs +++ b/sdk/s3/src/operation/put_bucket_replication/_put_bucket_replication_input.rs @@ -5,7 +5,7 @@ pub struct PutBucketReplicationInput { ///

          The name of the bucket

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -23,7 +23,7 @@ impl PutBucketReplicationInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -80,19 +80,19 @@ impl PutBucketReplicationInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_replication/builders.rs b/sdk/s3/src/operation/put_bucket_replication/builders.rs index a9a6d8b24847..7aa155d3ce58 100644 --- a/sdk/s3/src/operation/put_bucket_replication/builders.rs +++ b/sdk/s3/src/operation/put_bucket_replication/builders.rs @@ -156,19 +156,19 @@ impl PutBucketReplicationFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_bucket_request_payment/_put_bucket_request_payment_input.rs b/sdk/s3/src/operation/put_bucket_request_payment/_put_bucket_request_payment_input.rs index 8d4f61840202..41eb91dd318c 100644 --- a/sdk/s3/src/operation/put_bucket_request_payment/_put_bucket_request_payment_input.rs +++ b/sdk/s3/src/operation/put_bucket_request_payment/_put_bucket_request_payment_input.rs @@ -5,7 +5,7 @@ pub struct PutBucketRequestPaymentInput { ///

          The bucket name.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -21,7 +21,7 @@ impl PutBucketRequestPaymentInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -73,19 +73,19 @@ impl PutBucketRequestPaymentInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_request_payment/builders.rs b/sdk/s3/src/operation/put_bucket_request_payment/builders.rs index c0585ec86b5f..6da2efd3d3f2 100644 --- a/sdk/s3/src/operation/put_bucket_request_payment/builders.rs +++ b/sdk/s3/src/operation/put_bucket_request_payment/builders.rs @@ -132,19 +132,19 @@ impl PutBucketRequestPaymentFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_bucket_tagging/_put_bucket_tagging_input.rs b/sdk/s3/src/operation/put_bucket_tagging/_put_bucket_tagging_input.rs index f62ed34b541b..b60bf7622f1d 100644 --- a/sdk/s3/src/operation/put_bucket_tagging/_put_bucket_tagging_input.rs +++ b/sdk/s3/src/operation/put_bucket_tagging/_put_bucket_tagging_input.rs @@ -5,7 +5,7 @@ pub struct PutBucketTaggingInput { ///

          The bucket name.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -21,7 +21,7 @@ impl PutBucketTaggingInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -73,19 +73,19 @@ impl PutBucketTaggingInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_tagging/builders.rs b/sdk/s3/src/operation/put_bucket_tagging/builders.rs index db1008f634af..826ad8c85f10 100644 --- a/sdk/s3/src/operation/put_bucket_tagging/builders.rs +++ b/sdk/s3/src/operation/put_bucket_tagging/builders.rs @@ -147,19 +147,19 @@ impl PutBucketTaggingFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_bucket_versioning/_put_bucket_versioning_input.rs b/sdk/s3/src/operation/put_bucket_versioning/_put_bucket_versioning_input.rs index 94f6de03f005..645d9117c2a4 100644 --- a/sdk/s3/src/operation/put_bucket_versioning/_put_bucket_versioning_input.rs +++ b/sdk/s3/src/operation/put_bucket_versioning/_put_bucket_versioning_input.rs @@ -5,7 +5,7 @@ pub struct PutBucketVersioningInput { ///

          The bucket name.

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

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -23,7 +23,7 @@ impl PutBucketVersioningInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -80,19 +80,19 @@ impl PutBucketVersioningInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_versioning/builders.rs b/sdk/s3/src/operation/put_bucket_versioning/builders.rs index 992987b4589d..6e0b62a80aa3 100644 --- a/sdk/s3/src/operation/put_bucket_versioning/builders.rs +++ b/sdk/s3/src/operation/put_bucket_versioning/builders.rs @@ -25,7 +25,7 @@ impl crate::operation::put_bucket_versioning::builders::PutBucketVersioningInput /// ///

          This operation is not supported for directory buckets.

          ///
          -///

          When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. While this change is propagating, you may encounter intermittent HTTP 404 NoSuchKey errors for requests to objects created or updated after enabling versioning. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (PUT or DELETE) on objects in the bucket.

          +///

          When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. While this change is propagating, you might encounter intermittent HTTP 404 NoSuchKey errors for requests to objects created or updated after enabling versioning. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (PUT or DELETE) on objects in the bucket.

          ///
          ///

          Sets the versioning state of an existing bucket.

          ///

          You can set the versioning state with one of the following values:

          @@ -143,19 +143,19 @@ impl PutBucketVersioningFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          >The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          >The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_bucket_website/_put_bucket_website_input.rs b/sdk/s3/src/operation/put_bucket_website/_put_bucket_website_input.rs index d4b27c7ee6bf..eea7533cf677 100644 --- a/sdk/s3/src/operation/put_bucket_website/_put_bucket_website_input.rs +++ b/sdk/s3/src/operation/put_bucket_website/_put_bucket_website_input.rs @@ -5,7 +5,7 @@ pub struct PutBucketWebsiteInput { ///

          The bucket name.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub content_md5: ::std::option::Option<::std::string::String>, ///

          Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

          @@ -21,7 +21,7 @@ impl PutBucketWebsiteInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -73,19 +73,19 @@ impl PutBucketWebsiteInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_bucket_website/builders.rs b/sdk/s3/src/operation/put_bucket_website/builders.rs index 0492aa7cb6d8..51312a13ed4e 100644 --- a/sdk/s3/src/operation/put_bucket_website/builders.rs +++ b/sdk/s3/src/operation/put_bucket_website/builders.rs @@ -174,19 +174,19 @@ impl PutBucketWebsiteFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

          The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          + ///

          The Base64 encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

          ///

          For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

          pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/put_object/_put_object_input.rs b/sdk/s3/src/operation/put_object/_put_object_input.rs index 6ab27e11c09c..ad9c7b6466f6 100644 --- a/sdk/s3/src/operation/put_object/_put_object_input.rs +++ b/sdk/s3/src/operation/put_object/_put_object_input.rs @@ -32,7 +32,7 @@ pub struct PutObjectInput { pub content_language: ::std::option::Option<::std::string::String>, ///

          Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length.

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

          The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          + ///

          The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          This functionality is not supported for directory buckets.

          @@ -44,27 +44,31 @@ pub struct PutObjectInput { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            ///
          • - ///

            CRC32C

          • + ///

            CRC-32C

            ///
          • - ///

            SHA1

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA256

          • + ///

            SHA-1

            + ///
          • + ///

            SHA-256

          • ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha256: ::std::option::Option<::std::string::String>, ///

          The date and time at which the object is no longer cacheable. For more information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3.

          pub expires: ::std::option::Option<::aws_smithy_types::DateTime>, @@ -167,7 +171,7 @@ pub struct PutObjectInput { ///

          General purpose buckets - If you specify x-amz-server-side-encryption with aws:kms or aws:kms:dsse, this header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key to use. If you specify x-amz-server-side-encryption:aws:kms or x-amz-server-side-encryption:aws:kms:dsse, but do not provide x-amz-server-side-encryption-aws-kms-key-id, Amazon S3 uses the Amazon Web Services managed key (aws/s3) to protect the data.

          ///

          Directory buckets - If you specify x-amz-server-side-encryption with aws:kms, the x-amz-server-side-encryption-aws-kms-key-id header is implicitly assigned the ID of the KMS symmetric encryption customer managed key that's configured for your directory bucket's default encryption setting. If you want to specify the x-amz-server-side-encryption-aws-kms-key-id header explicitly, you can only specify it with the ID (Key ID or Key ARN) of the KMS customer managed key that's configured for your directory bucket's default encryption setting. Otherwise, you get an HTTP 400 Bad Request error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Your SSE-KMS configuration can only support 1 customer managed key per directory bucket for the lifetime of the bucket. The Amazon Web Services managed key (aws/s3) isn't supported.

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

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          ///

          General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

          ///

          Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

          pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, @@ -245,7 +249,7 @@ impl PutObjectInput { pub fn content_length(&self) -> ::std::option::Option { self.content_length } - ///

          The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          + ///

          The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          This functionality is not supported for directory buckets.

          @@ -261,35 +265,41 @@ impl PutObjectInput { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -428,7 +438,7 @@ impl PutObjectInput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          ///

          General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

          ///

          Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

          pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { @@ -491,6 +501,7 @@ impl ::std::fmt::Debug for PutObjectInput { formatter.field("checksum_algorithm", &self.checksum_algorithm); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("expires", &self.expires); @@ -545,6 +556,7 @@ pub struct PutObjectInputBuilder { pub(crate) checksum_algorithm: ::std::option::Option, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, pub(crate) expires: ::std::option::Option<::aws_smithy_types::DateTime>, @@ -729,7 +741,7 @@ impl PutObjectInputBuilder { pub fn get_content_length(&self) -> &::std::option::Option { &self.content_length } - ///

          The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          + ///

          The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          This functionality is not supported for directory buckets.

          @@ -738,7 +750,7 @@ impl PutObjectInputBuilder { self.content_md5 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          + ///

          The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          This functionality is not supported for directory buckets.

          @@ -747,7 +759,7 @@ impl PutObjectInputBuilder { self.content_md5 = input; self } - ///

          The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          + ///

          The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          This functionality is not supported for directory buckets.

          @@ -773,16 +785,18 @@ impl PutObjectInputBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            ///
          • - ///

            CRC32C

          • + ///

            CRC-32C

            ///
          • - ///

            SHA1

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA256

          • + ///

            SHA-1

            + ///
          • + ///

            SHA-256

          • ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          @@ -794,16 +808,18 @@ impl PutObjectInputBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          @@ -815,75 +831,91 @@ impl PutObjectInputBuilder { ///

          For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

          ///
            ///
          • - ///

            CRC32

          • + ///

            CRC-32

            + ///
          • + ///

            CRC-32C

          • ///
          • - ///

            CRC32C

          • + ///

            CRC-64NVME

            ///
          • - ///

            SHA1

          • + ///

            SHA-1

            ///
          • - ///

            SHA256

          • + ///

            SHA-256

            ///
          ///

          For more information, see Checking object integrity in the Amazon S3 User Guide.

          - ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

          + ///

          If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

          ///

          The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

          ///
          ///

          For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

          pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -1333,21 +1365,21 @@ impl PutObjectInputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          ///

          General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

          ///

          Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          ///

          General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

          ///

          Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          ///

          General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

          ///

          Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

          pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { @@ -1503,6 +1535,7 @@ impl PutObjectInputBuilder { checksum_algorithm: self.checksum_algorithm, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, expires: self.expires, @@ -1549,6 +1582,7 @@ impl ::std::fmt::Debug for PutObjectInputBuilder { formatter.field("checksum_algorithm", &self.checksum_algorithm); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("expires", &self.expires); diff --git a/sdk/s3/src/operation/put_object/_put_object_output.rs b/sdk/s3/src/operation/put_object/_put_object_output.rs index 39db8ef4b54a..30a744855651 100644 --- a/sdk/s3/src/operation/put_object/_put_object_output.rs +++ b/sdk/s3/src/operation/put_object/_put_object_output.rs @@ -11,14 +11,18 @@ pub struct PutObjectOutput { ///

          General purpose buckets - To ensure that data is not corrupted traversing the network, for objects where the ETag is the MD5 digest of the object, you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to the calculated MD5 value.

          ///

          Directory buckets - The ETag for the object in a directory bucket isn't the MD5 digest of the object.

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

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. For PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_type: ::std::option::Option, ///

          The server-side encryption algorithm used when you store this object in Amazon S3.

          pub server_side_encryption: ::std::option::Option, ///

          Version ID of the object.

          @@ -36,11 +40,11 @@ pub struct PutObjectOutput { pub sse_customer_key_md5: ::std::option::Option<::std::string::String>, ///

          If present, indicates the ID of the KMS key that was used for object encryption.

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

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          pub ssekms_encryption_context: ::std::option::Option<::std::string::String>, ///

          Indicates whether the uploaded object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

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

          The size of the object in bytes. This will only be present if you append to an object.

          + ///

          The size of the object in bytes. This value is only be present if you append to an object.

          ///

          This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

          ///
          pub size: ::std::option::Option, @@ -64,22 +68,30 @@ impl PutObjectOutput { pub fn e_tag(&self) -> ::std::option::Option<&str> { self.e_tag.as_deref() } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. For PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } ///

          The server-side encryption algorithm used when you store this object in Amazon S3.

          pub fn server_side_encryption(&self) -> ::std::option::Option<&crate::types::ServerSideEncryption> { self.server_side_encryption.as_ref() @@ -107,7 +119,7 @@ impl PutObjectOutput { pub fn ssekms_key_id(&self) -> ::std::option::Option<&str> { self.ssekms_key_id.as_deref() } - ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          pub fn ssekms_encryption_context(&self) -> ::std::option::Option<&str> { self.ssekms_encryption_context.as_deref() } @@ -115,7 +127,7 @@ impl PutObjectOutput { pub fn bucket_key_enabled(&self) -> ::std::option::Option { self.bucket_key_enabled } - ///

          The size of the object in bytes. This will only be present if you append to an object.

          + ///

          The size of the object in bytes. This value is only be present if you append to an object.

          ///

          This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

          ///
          pub fn size(&self) -> ::std::option::Option { @@ -135,8 +147,10 @@ impl ::std::fmt::Debug for PutObjectOutput { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("server_side_encryption", &self.server_side_encryption); formatter.field("version_id", &self.version_id); formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm); @@ -176,8 +190,10 @@ pub struct PutObjectOutputBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) server_side_encryption: ::std::option::Option, pub(crate) version_id: ::std::option::Option<::std::string::String>, pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>, @@ -231,62 +247,90 @@ impl PutObjectOutputBuilder { pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> { &self.e_tag } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This header is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

          This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. For PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

          This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. For PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. For PutObject uploads, the checksum type is always FULL_OBJECT. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } ///

          The server-side encryption algorithm used when you store this object in Amazon S3.

          pub fn server_side_encryption(mut self, input: crate::types::ServerSideEncryption) -> Self { self.server_side_encryption = ::std::option::Option::Some(input); @@ -378,17 +422,17 @@ impl PutObjectOutputBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_key_id } - ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

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

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

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

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          + ///

          If present, indicates the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

          pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { &self.ssekms_encryption_context } @@ -406,21 +450,21 @@ impl PutObjectOutputBuilder { pub fn get_bucket_key_enabled(&self) -> &::std::option::Option { &self.bucket_key_enabled } - ///

          The size of the object in bytes. This will only be present if you append to an object.

          + ///

          The size of the object in bytes. This value is only be present if you append to an object.

          ///

          This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

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

          The size of the object in bytes. This will only be present if you append to an object.

          + ///

          The size of the object in bytes. This value is only be present if you append to an object.

          ///

          This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

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

          The size of the object in bytes. This will only be present if you append to an object.

          + ///

          The size of the object in bytes. This value is only be present if you append to an object.

          ///

          This functionality is only supported for objects in the Amazon S3 Express One Zone storage class in directory buckets.

          ///
          pub fn get_size(&self) -> &::std::option::Option { @@ -471,8 +515,10 @@ impl PutObjectOutputBuilder { e_tag: self.e_tag, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, + checksum_type: self.checksum_type, server_side_encryption: self.server_side_encryption, version_id: self.version_id, sse_customer_algorithm: self.sse_customer_algorithm, @@ -494,8 +540,10 @@ impl ::std::fmt::Debug for PutObjectOutputBuilder { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); + formatter.field("checksum_type", &self.checksum_type); formatter.field("server_side_encryption", &self.server_side_encryption); formatter.field("version_id", &self.version_id); formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm); diff --git a/sdk/s3/src/operation/put_object/builders.rs b/sdk/s3/src/operation/put_object/builders.rs index 1e996335bce8..de4f4c2d2f11 100644 --- a/sdk/s3/src/operation/put_object/builders.rs +++ b/sdk/s3/src/operation/put_object/builders.rs @@ -29,7 +29,7 @@ impl crate::operation::put_object::builders::PutObjectInputBuilder { ///
        • ///

          If your bucket uses the bucket owner enforced setting for Object Ownership, ACLs are disabled and no longer affect permissions. All objects written to the bucket by any account will be owned by the bucket owner.

        • ///
        • -///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

        • +///

          Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

        • ///
        /// ///

        Amazon S3 is a distributed system. If it receives multiple write requests for the same object simultaneously, it overwrites all but the last object written. However, Amazon S3 provides features that can modify this behavior:

        @@ -374,7 +374,7 @@ impl PutObjectFluentBuilder { pub fn get_content_length(&self) -> &::std::option::Option { self.inner.get_content_length() } - ///

        The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

        + ///

        The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

        ///

        The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

        ///
        ///

        This functionality is not supported for directory buckets.

        @@ -383,7 +383,7 @@ impl PutObjectFluentBuilder { self.inner = self.inner.content_md5(input.into()); self } - ///

        The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

        + ///

        The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

        ///

        The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

        ///
        ///

        This functionality is not supported for directory buckets.

        @@ -392,7 +392,7 @@ impl PutObjectFluentBuilder { self.inner = self.inner.set_content_md5(input); self } - ///

        The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

        + ///

        The Base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

        ///

        The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

        ///
        ///

        This functionality is not supported for directory buckets.

        @@ -418,16 +418,18 @@ impl PutObjectFluentBuilder { ///

        For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

        ///
          ///
        • - ///

          CRC32

        • + ///

          CRC-32

          ///
        • - ///

          CRC32C

        • + ///

          CRC-32C

          ///
        • - ///

          SHA1

        • + ///

          CRC-64NVME

          ///
        • - ///

          SHA256

        • + ///

          SHA-1

          + ///
        • + ///

          SHA-256

        • ///
        ///

        For more information, see Checking object integrity in the Amazon S3 User Guide.

        - ///

        If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

        + ///

        If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

        ///

        The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

        ///
        ///

        For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

        @@ -439,16 +441,18 @@ impl PutObjectFluentBuilder { ///

        For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

        ///
          ///
        • - ///

          CRC32

        • + ///

          CRC-32

          + ///
        • + ///

          CRC-32C

        • ///
        • - ///

          CRC32C

        • + ///

          CRC-64NVME

          ///
        • - ///

          SHA1

        • + ///

          SHA-1

          ///
        • - ///

          SHA256

        • + ///

          SHA-256

          ///
        ///

        For more information, see Checking object integrity in the Amazon S3 User Guide.

        - ///

        If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

        + ///

        If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

        ///

        The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

        ///
        ///

        For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

        @@ -460,75 +464,91 @@ impl PutObjectFluentBuilder { ///

        For the x-amz-checksum-algorithm header, replace algorithm with the supported algorithm from the following list:

        ///
          ///
        • - ///

          CRC32

        • + ///

          CRC-32

          ///
        • - ///

          CRC32C

        • + ///

          CRC-32C

          ///
        • - ///

          SHA1

        • + ///

          CRC-64NVME

          ///
        • - ///

          SHA256

        • + ///

          SHA-1

          + ///
        • + ///

          SHA-256

        • ///
        ///

        For more information, see Checking object integrity in the Amazon S3 User Guide.

        - ///

        If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 ignores any provided ChecksumAlgorithm parameter and uses the checksum algorithm that matches the provided value in x-amz-checksum-algorithm .

        + ///

        If the individual checksum value you provide through x-amz-checksum-algorithm doesn't match the checksum algorithm you set through x-amz-sdk-checksum-algorithm, Amazon S3 fails the request with a BadDigest error.

        ///

        The Content-MD5 or x-amz-sdk-checksum-algorithm header is required for any request to upload an object with a retention period configured using Amazon S3 Object Lock. For more information, see Uploading objects to an Object Lock enabled bucket in the Amazon S3 User Guide.

        ///
        ///

        For directory buckets, when you use Amazon Web Services SDKs, CRC32 is the default checksum algorithm that's used for performance.

        pub fn get_checksum_algorithm(&self) -> &::std::option::Option { self.inner.get_checksum_algorithm() } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the object. The CRC-64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_checksum_sha256() } @@ -976,21 +996,21 @@ impl PutObjectFluentBuilder { pub fn get_ssekms_key_id(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_ssekms_key_id() } - ///

        Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

        + ///

        Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

        ///

        General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

        ///

        Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

        Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

        + ///

        Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

        ///

        General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

        ///

        Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

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

        Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64-encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

        + ///

        Specifies the Amazon Web Services KMS Encryption Context as an additional encryption context to use for object encryption. The value of this header is a Base64 encoded string of a UTF-8 encoded JSON, which contains the encryption context as key-value pairs. This value is stored as object metadata and automatically gets passed on to Amazon Web Services KMS for future GetObject operations on this object.

        ///

        General purpose buckets - This value must be explicitly added during CopyObject operations if you want an additional encryption context for your object. For more information, see Encryption context in the Amazon S3 User Guide.

        ///

        Directory buckets - You can optionally provide an explicit encryption context value. The value must match the default encryption context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported.

        pub fn get_ssekms_encryption_context(&self) -> &::std::option::Option<::std::string::String> { diff --git a/sdk/s3/src/operation/put_object_acl/_put_object_acl_input.rs b/sdk/s3/src/operation/put_object_acl/_put_object_acl_input.rs index 2716d595d8cd..9ad23f2f3a1b 100644 --- a/sdk/s3/src/operation/put_object_acl/_put_object_acl_input.rs +++ b/sdk/s3/src/operation/put_object_acl/_put_object_acl_input.rs @@ -11,7 +11,7 @@ pub struct PutObjectAclInput { ///

        Access points - When you use this action with an access point, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When using the access point ARN, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

        ///

        S3 on Outposts - When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? in the Amazon S3 User Guide.

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

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

        pub content_md5: ::std::option::Option<::std::string::String>, ///

        Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

        @@ -60,7 +60,7 @@ impl PutObjectAclInput { pub fn bucket(&self) -> ::std::option::Option<&str> { self.bucket.as_deref() } - ///

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

        pub fn content_md5(&self) -> ::std::option::Option<&str> { self.content_md5.as_deref() @@ -192,19 +192,19 @@ impl PutObjectAclInputBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { &self.bucket } - ///

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

        pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { &self.content_md5 diff --git a/sdk/s3/src/operation/put_object_acl/builders.rs b/sdk/s3/src/operation/put_object_acl/builders.rs index dc4a049c8c6f..203e2a24b58b 100644 --- a/sdk/s3/src/operation/put_object_acl/builders.rs +++ b/sdk/s3/src/operation/put_object_acl/builders.rs @@ -278,19 +278,19 @@ impl PutObjectAclFluentBuilder { pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_bucket() } - ///

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

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

        The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        + ///

        The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

        ///

        For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.

        pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_md5() diff --git a/sdk/s3/src/operation/upload_part/_upload_part_input.rs b/sdk/s3/src/operation/upload_part/_upload_part_input.rs index 1cfd926fdeed..f28341ed992d 100644 --- a/sdk/s3/src/operation/upload_part/_upload_part_input.rs +++ b/sdk/s3/src/operation/upload_part/_upload_part_input.rs @@ -13,7 +13,7 @@ pub struct UploadPartInput { pub bucket: ::std::option::Option<::std::string::String>, ///

        Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically.

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

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

        ///
        pub content_md5: ::std::option::Option<::std::string::String>, @@ -21,13 +21,15 @@ pub struct UploadPartInput { ///

        If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

        ///

        This checksum algorithm must be the same for all parts and it match the checksum value supplied in the CreateMultipartUpload request.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        pub checksum_sha256: ::std::option::Option<::std::string::String>, ///

        Object key for which the multipart upload was initiated.

        pub key: ::std::option::Option<::std::string::String>, @@ -72,7 +74,7 @@ impl UploadPartInput { pub fn content_length(&self) -> ::std::option::Option { self.content_length } - ///

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

        ///
        pub fn content_md5(&self) -> ::std::option::Option<&str> { @@ -84,19 +86,23 @@ impl UploadPartInput { pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -151,6 +157,7 @@ impl ::std::fmt::Debug for UploadPartInput { formatter.field("checksum_algorithm", &self.checksum_algorithm); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("key", &self.key); @@ -182,6 +189,7 @@ pub struct UploadPartInputBuilder { pub(crate) checksum_algorithm: ::std::option::Option, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, pub(crate) key: ::std::option::Option<::std::string::String>, @@ -252,21 +260,21 @@ impl UploadPartInputBuilder { pub fn get_content_length(&self) -> &::std::option::Option { &self.content_length } - ///

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

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

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

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

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

        ///
        pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { @@ -292,59 +300,73 @@ impl UploadPartInputBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -497,6 +519,7 @@ impl UploadPartInputBuilder { checksum_algorithm: self.checksum_algorithm, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, key: self.key, @@ -520,6 +543,7 @@ impl ::std::fmt::Debug for UploadPartInputBuilder { formatter.field("checksum_algorithm", &self.checksum_algorithm); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("key", &self.key); diff --git a/sdk/s3/src/operation/upload_part/_upload_part_output.rs b/sdk/s3/src/operation/upload_part/_upload_part_output.rs index 039196adb70f..020a9fe30628 100644 --- a/sdk/s3/src/operation/upload_part/_upload_part_output.rs +++ b/sdk/s3/src/operation/upload_part/_upload_part_output.rs @@ -7,13 +7,15 @@ pub struct UploadPartOutput { pub server_side_encryption: ::std::option::Option, ///

        Entity tag for the uploaded object.

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

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        pub checksum_sha256: ::std::option::Option<::std::string::String>, ///

        If server-side encryption with a customer-provided encryption key was requested, the response will include this header to confirm the encryption algorithm that's used.

        ///

        This functionality is not supported for directory buckets.

        @@ -43,19 +45,23 @@ impl UploadPartOutput { pub fn e_tag(&self) -> ::std::option::Option<&str> { self.e_tag.as_deref() } - ///

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -93,6 +99,7 @@ impl ::std::fmt::Debug for UploadPartOutput { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm); @@ -130,6 +137,7 @@ pub struct UploadPartOutputBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>, @@ -169,59 +177,73 @@ impl UploadPartOutputBuilder { pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> { &self.e_tag } - ///

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -338,6 +360,7 @@ impl UploadPartOutputBuilder { e_tag: self.e_tag, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, sse_customer_algorithm: self.sse_customer_algorithm, @@ -357,6 +380,7 @@ impl ::std::fmt::Debug for UploadPartOutputBuilder { formatter.field("e_tag", &self.e_tag); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm); diff --git a/sdk/s3/src/operation/upload_part/builders.rs b/sdk/s3/src/operation/upload_part/builders.rs index bd374a39bb4c..ab80fd88395e 100644 --- a/sdk/s3/src/operation/upload_part/builders.rs +++ b/sdk/s3/src/operation/upload_part/builders.rs @@ -31,7 +31,7 @@ impl crate::operation::upload_part::builders::UploadPartInputBuilder { ///

        After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

        ///
        ///

        For more information on multipart uploads, go to Multipart Upload Overview in the Amazon S3 User Guide .

        -///

        Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

        +///

        Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

        ///
        ///
        ///
        @@ -308,21 +308,21 @@ impl UploadPartFluentBuilder { pub fn get_content_length(&self) -> &::std::option::Option { self.inner.get_content_length() } - ///

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

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

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

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

        The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        + ///

        The Base64 encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

        ///

        This functionality is not supported for directory buckets.

        ///
        pub fn get_content_md5(&self) -> &::std::option::Option<::std::string::String> { @@ -348,59 +348,73 @@ impl UploadPartFluentBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { self.inner.get_checksum_algorithm() } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

        pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_checksum_sha256() } diff --git a/sdk/s3/src/operation/upload_part_copy/builders.rs b/sdk/s3/src/operation/upload_part_copy/builders.rs index f4f4d7e784d1..4a159d947cd8 100644 --- a/sdk/s3/src/operation/upload_part_copy/builders.rs +++ b/sdk/s3/src/operation/upload_part_copy/builders.rs @@ -28,7 +28,7 @@ impl crate::operation::upload_part_copy::builders::UploadPartCopyInputBuilder { ///
        ///

        You must initiate a multipart upload before you can upload any part. In response to your initiate request, Amazon S3 returns the upload ID, a unique identifier that you must include in your upload part request.

        ///

        For conceptual information about multipart uploads, see Uploading Objects Using Multipart Upload in the Amazon S3 User Guide. For information about copying objects using a single atomic action vs. a multipart upload, see Operations on Objects in the Amazon S3 User Guide.

        -///

        Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Concepts for directory buckets in Local Zones in the Amazon S3 User Guide.

        +///

        Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://bucket-name.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Zones, see Regional and Zonal endpoints for directory buckets in Availability Zones in the Amazon S3 User Guide. For more information about endpoints in Local Zones, see Available Local Zone for directory buckets in the Amazon S3 User Guide.

        ///
        ///
        ///
        diff --git a/sdk/s3/src/operation/write_get_object_response/_write_get_object_response_input.rs b/sdk/s3/src/operation/write_get_object_response/_write_get_object_response_input.rs index 034c01073b13..de2203fbe9de 100644 --- a/sdk/s3/src/operation/write_get_object_response/_write_get_object_response_input.rs +++ b/sdk/s3/src/operation/write_get_object_response/_write_get_object_response_input.rs @@ -64,17 +64,19 @@ pub struct WriteGetObjectResponseInput { pub content_range: ::std::option::Option<::std::string::String>, ///

        A standard MIME type describing the format of the object data.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        pub checksum_sha256: ::std::option::Option<::std::string::String>, ///

        Specifies whether an object stored in Amazon S3 is (true) or is not (false) a delete marker.

        @@ -216,23 +218,27 @@ impl WriteGetObjectResponseInput { pub fn content_type(&self) -> ::std::option::Option<&str> { self.content_type.as_deref() } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() @@ -348,6 +354,7 @@ impl ::std::fmt::Debug for WriteGetObjectResponseInput { formatter.field("content_type", &self.content_type); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("delete_marker", &self.delete_marker); @@ -402,6 +409,7 @@ pub struct WriteGetObjectResponseInputBuilder { pub(crate) content_type: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, pub(crate) delete_marker: ::std::option::Option, @@ -728,73 +736,87 @@ impl WriteGetObjectResponseInputBuilder { pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> { &self.content_type } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 @@ -1146,6 +1168,7 @@ impl WriteGetObjectResponseInputBuilder { content_type: self.content_type, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, delete_marker: self.delete_marker, @@ -1192,6 +1215,7 @@ impl ::std::fmt::Debug for WriteGetObjectResponseInputBuilder { formatter.field("content_type", &self.content_type); formatter.field("checksum_crc32", &self.checksum_crc32); formatter.field("checksum_crc32_c", &self.checksum_crc32_c); + formatter.field("checksum_crc64_nvme", &self.checksum_crc64_nvme); formatter.field("checksum_sha1", &self.checksum_sha1); formatter.field("checksum_sha256", &self.checksum_sha256); formatter.field("delete_marker", &self.delete_marker); diff --git a/sdk/s3/src/operation/write_get_object_response/builders.rs b/sdk/s3/src/operation/write_get_object_response/builders.rs index 6888460ba46b..f296218a06af 100644 --- a/sdk/s3/src/operation/write_get_object_response/builders.rs +++ b/sdk/s3/src/operation/write_get_object_response/builders.rs @@ -416,73 +416,87 @@ impl WriteGetObjectResponseFluentBuilder { pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_content_type() } - ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        ///

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC-32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC-64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

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

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        ///

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_checksum_sha256() diff --git a/sdk/s3/src/protocol_serde/shape_checksum.rs b/sdk/s3/src/protocol_serde/shape_checksum.rs index a517127a2721..3ffc8b2eb85f 100644 --- a/sdk/s3/src/protocol_serde/shape_checksum.rs +++ b/sdk/s3/src/protocol_serde/shape_checksum.rs @@ -33,7 +33,7 @@ pub fn de_checksum( builder = builder.set_checksum_crc32_c(var_2); } , - s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#Checksum$ChecksumSHA1 */ => { + s if s.matches("ChecksumCRC64NVME") /* ChecksumCRC64NVME com.amazonaws.s3#Checksum$ChecksumCRC64NVME */ => { let var_3 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -43,10 +43,10 @@ pub fn de_checksum( ? ) ; - builder = builder.set_checksum_sha1(var_3); + builder = builder.set_checksum_crc64_nvme(var_3); } , - s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#Checksum$ChecksumSHA256 */ => { + s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#Checksum$ChecksumSHA1 */ => { let var_4 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -56,7 +56,34 @@ pub fn de_checksum( ? ) ; - builder = builder.set_checksum_sha256(var_4); + builder = builder.set_checksum_sha1(var_4); + } + , + s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#Checksum$ChecksumSHA256 */ => { + let var_5 = + Some( + Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_checksum_sha256(var_5); + } + , + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3#Checksum$ChecksumType */ => { + let var_6 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_6); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_complete_multipart_upload.rs b/sdk/s3/src/protocol_serde/shape_complete_multipart_upload.rs index c3c8fce1e1f2..9059339eb412 100644 --- a/sdk/s3/src/protocol_serde/shape_complete_multipart_upload.rs +++ b/sdk/s3/src/protocol_serde/shape_complete_multipart_upload.rs @@ -107,86 +107,119 @@ pub fn ser_complete_multipart_upload_headers( })?; builder = builder.header("x-amz-checksum-crc32c", header_value); } - if let ::std::option::Option::Some(inner_5) = &input.checksum_sha1 { + if let ::std::option::Option::Some(inner_5) = &input.checksum_crc64_nvme { let formatted_6 = inner_5.as_str(); let header_value = formatted_6; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "checksum_sha1", + "checksum_crc64_nvme", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-checksum-sha1", header_value); + builder = builder.header("x-amz-checksum-crc64nvme", header_value); } - if let ::std::option::Option::Some(inner_7) = &input.checksum_sha256 { + if let ::std::option::Option::Some(inner_7) = &input.checksum_sha1 { let formatted_8 = inner_7.as_str(); let header_value = formatted_8; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "checksum_sha256", + "checksum_sha1", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-checksum-sha256", header_value); + builder = builder.header("x-amz-checksum-sha1", header_value); } - if let ::std::option::Option::Some(inner_9) = &input.request_payer { + if let ::std::option::Option::Some(inner_9) = &input.checksum_sha256 { let formatted_10 = inner_9.as_str(); let header_value = formatted_10; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "request_payer", + "checksum_sha256", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-request-payer", header_value); + builder = builder.header("x-amz-checksum-sha256", header_value); } - if let ::std::option::Option::Some(inner_11) = &input.expected_bucket_owner { + if let ::std::option::Option::Some(inner_11) = &input.checksum_type { let formatted_12 = inner_11.as_str(); let header_value = formatted_12; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "expected_bucket_owner", + "checksum_type", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-expected-bucket-owner", header_value); + builder = builder.header("x-amz-checksum-type", header_value); } - if let ::std::option::Option::Some(inner_13) = &input.if_match { + if let ::std::option::Option::Some(inner_13) = &input.mpu_object_size { let formatted_14 = inner_13.as_str(); let header_value = formatted_14; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "if_match", + "mpu_object_size", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("If-Match", header_value); + builder = builder.header("x-amz-mp-object-size", header_value); } - if let ::std::option::Option::Some(inner_15) = &input.if_none_match { + if let ::std::option::Option::Some(inner_15) = &input.request_payer { let formatted_16 = inner_15.as_str(); let header_value = formatted_16; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "if_none_match", + "request_payer", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("If-None-Match", header_value); + builder = builder.header("x-amz-request-payer", header_value); } - if let ::std::option::Option::Some(inner_17) = &input.sse_customer_algorithm { + if let ::std::option::Option::Some(inner_17) = &input.expected_bucket_owner { let formatted_18 = inner_17.as_str(); let header_value = formatted_18; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "sse_customer_algorithm", + "expected_bucket_owner", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-server-side-encryption-customer-algorithm", header_value); + builder = builder.header("x-amz-expected-bucket-owner", header_value); } - if let ::std::option::Option::Some(inner_19) = &input.sse_customer_key { + if let ::std::option::Option::Some(inner_19) = &input.if_match { let formatted_20 = inner_19.as_str(); let header_value = formatted_20; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "if_match", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("If-Match", header_value); + } + if let ::std::option::Option::Some(inner_21) = &input.if_none_match { + let formatted_22 = inner_21.as_str(); + let header_value = formatted_22; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "if_none_match", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("If-None-Match", header_value); + } + if let ::std::option::Option::Some(inner_23) = &input.sse_customer_algorithm { + let formatted_24 = inner_23.as_str(); + let header_value = formatted_24; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "sse_customer_algorithm", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("x-amz-server-side-encryption-customer-algorithm", header_value); + } + if let ::std::option::Option::Some(inner_25) = &input.sse_customer_key { + let formatted_26 = inner_25.as_str(); + let header_value = formatted_26; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key", @@ -195,9 +228,9 @@ pub fn ser_complete_multipart_upload_headers( })?; builder = builder.header("x-amz-server-side-encryption-customer-key", header_value); } - if let ::std::option::Option::Some(inner_21) = &input.sse_customer_key_md5 { - let formatted_22 = inner_21.as_str(); - let header_value = formatted_22; + if let ::std::option::Option::Some(inner_27) = &input.sse_customer_key_md5 { + let formatted_28 = inner_27.as_str(); + let header_value = formatted_28; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key_md5", @@ -229,7 +262,7 @@ pub fn de_complete_multipart_upload( while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ChecksumSHA1 */ => { - let var_23 = + let var_29 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -238,11 +271,25 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_checksum_sha1(var_23); + builder = builder.set_checksum_sha1(var_29); + } + , + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ChecksumType */ => { + let var_30 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_30); } , s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ChecksumSHA256 */ => { - let var_24 = + let var_31 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -251,11 +298,24 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_checksum_sha256(var_24); + builder = builder.set_checksum_sha256(var_31); + } + , + s if s.matches("ChecksumCRC64NVME") /* ChecksumCRC64NVME com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ChecksumCRC64NVME */ => { + let var_32 = + Some( + Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_checksum_crc64_nvme(var_32); } , s if s.matches("Bucket") /* Bucket com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$Bucket */ => { - let var_25 = + let var_33 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -264,11 +324,11 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_bucket(var_25); + builder = builder.set_bucket(var_33); } , s if s.matches("ETag") /* ETag com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ETag */ => { - let var_26 = + let var_34 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -277,11 +337,11 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_e_tag(var_26); + builder = builder.set_e_tag(var_34); } , s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ChecksumCRC32C */ => { - let var_27 = + let var_35 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -290,11 +350,11 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_checksum_crc32_c(var_27); + builder = builder.set_checksum_crc32_c(var_35); } , s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$ChecksumCRC32 */ => { - let var_28 = + let var_36 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -303,11 +363,11 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_checksum_crc32(var_28); + builder = builder.set_checksum_crc32(var_36); } , s if s.matches("Key") /* Key com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$Key */ => { - let var_29 = + let var_37 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -316,11 +376,11 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_key(var_29); + builder = builder.set_key(var_37); } , s if s.matches("Location") /* Location com.amazonaws.s3.synthetic#CompleteMultipartUploadOutput$Location */ => { - let var_30 = + let var_38 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -329,7 +389,7 @@ pub fn de_complete_multipart_upload( ? ) ; - builder = builder.set_location(var_30); + builder = builder.set_location(var_38); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_completed_part.rs b/sdk/s3/src/protocol_serde/shape_completed_part.rs index 2cb3a6a08fba..bf4e6596716d 100644 --- a/sdk/s3/src/protocol_serde/shape_completed_part.rs +++ b/sdk/s3/src/protocol_serde/shape_completed_part.rs @@ -17,17 +17,21 @@ pub fn ser_completed_part( let mut inner_writer = scope.start_el("ChecksumCRC32C").finish(); inner_writer.data(var_3.as_str()); } - if let Some(var_4) = &input.checksum_sha1 { - let mut inner_writer = scope.start_el("ChecksumSHA1").finish(); + if let Some(var_4) = &input.checksum_crc64_nvme { + let mut inner_writer = scope.start_el("ChecksumCRC64NVME").finish(); inner_writer.data(var_4.as_str()); } - if let Some(var_5) = &input.checksum_sha256 { - let mut inner_writer = scope.start_el("ChecksumSHA256").finish(); + if let Some(var_5) = &input.checksum_sha1 { + let mut inner_writer = scope.start_el("ChecksumSHA1").finish(); inner_writer.data(var_5.as_str()); } - if let Some(var_6) = &input.part_number { + if let Some(var_6) = &input.checksum_sha256 { + let mut inner_writer = scope.start_el("ChecksumSHA256").finish(); + inner_writer.data(var_6.as_str()); + } + if let Some(var_7) = &input.part_number { let mut inner_writer = scope.start_el("PartNumber").finish(); - inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*var_6).encode()); + inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*var_7).encode()); } scope.finish(); Ok(()) diff --git a/sdk/s3/src/protocol_serde/shape_copy_object_result.rs b/sdk/s3/src/protocol_serde/shape_copy_object_result.rs index 884e0150e3cd..860e3ea06f79 100644 --- a/sdk/s3/src/protocol_serde/shape_copy_object_result.rs +++ b/sdk/s3/src/protocol_serde/shape_copy_object_result.rs @@ -34,8 +34,22 @@ pub fn de_copy_object_result( builder = builder.set_last_modified(var_2); } , - s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyObjectResult$ChecksumCRC32 */ => { + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3#CopyObjectResult$ChecksumType */ => { let var_3 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_3); + } + , + s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyObjectResult$ChecksumCRC32 */ => { + let var_4 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -44,11 +58,11 @@ pub fn de_copy_object_result( ? ) ; - builder = builder.set_checksum_crc32(var_3); + builder = builder.set_checksum_crc32(var_4); } , s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyObjectResult$ChecksumCRC32C */ => { - let var_4 = + let var_5 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -57,11 +71,24 @@ pub fn de_copy_object_result( ? ) ; - builder = builder.set_checksum_crc32_c(var_4); + builder = builder.set_checksum_crc32_c(var_5); + } + , + s if s.matches("ChecksumCRC64NVME") /* ChecksumCRC64NVME com.amazonaws.s3#CopyObjectResult$ChecksumCRC64NVME */ => { + let var_6 = + Some( + Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_checksum_crc64_nvme(var_6); } , s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyObjectResult$ChecksumSHA1 */ => { - let var_5 = + let var_7 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -70,11 +97,11 @@ pub fn de_copy_object_result( ? ) ; - builder = builder.set_checksum_sha1(var_5); + builder = builder.set_checksum_sha1(var_7); } , s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyObjectResult$ChecksumSHA256 */ => { - let var_6 = + let var_8 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -83,7 +110,7 @@ pub fn de_copy_object_result( ? ) ; - builder = builder.set_checksum_sha256(var_6); + builder = builder.set_checksum_sha256(var_8); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_copy_part_result.rs b/sdk/s3/src/protocol_serde/shape_copy_part_result.rs index 1df2c2f065f5..56f9768b0bc9 100644 --- a/sdk/s3/src/protocol_serde/shape_copy_part_result.rs +++ b/sdk/s3/src/protocol_serde/shape_copy_part_result.rs @@ -60,7 +60,7 @@ pub fn de_copy_part_result( builder = builder.set_checksum_crc32_c(var_4); } , - s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => { + s if s.matches("ChecksumCRC64NVME") /* ChecksumCRC64NVME com.amazonaws.s3#CopyPartResult$ChecksumCRC64NVME */ => { let var_5 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -70,10 +70,10 @@ pub fn de_copy_part_result( ? ) ; - builder = builder.set_checksum_sha1(var_5); + builder = builder.set_checksum_crc64_nvme(var_5); } , - s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => { + s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => { let var_6 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -83,7 +83,20 @@ pub fn de_copy_part_result( ? ) ; - builder = builder.set_checksum_sha256(var_6); + builder = builder.set_checksum_sha1(var_6); + } + , + s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => { + let var_7 = + Some( + Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_checksum_sha256(var_7); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_create_multipart_upload.rs b/sdk/s3/src/protocol_serde/shape_create_multipart_upload.rs index 268e5b31d522..95e1e0b683e5 100644 --- a/sdk/s3/src/protocol_serde/shape_create_multipart_upload.rs +++ b/sdk/s3/src/protocol_serde/shape_create_multipart_upload.rs @@ -59,6 +59,13 @@ pub fn de_create_multipart_upload_http_response( ) })?, ); + output = output.set_checksum_type( + crate::protocol_serde::shape_create_multipart_upload_output::de_checksum_type_header(_response_headers).map_err(|_| { + crate::operation::create_multipart_upload::CreateMultipartUploadError::unhandled( + "Failed to parse ChecksumType from header `x-amz-checksum-type", + ) + })?, + ); output = output.set_request_charged( crate::protocol_serde::shape_create_multipart_upload_output::de_request_charged_header(_response_headers).map_err(|_| { crate::operation::create_multipart_upload::CreateMultipartUploadError::unhandled( @@ -409,9 +416,20 @@ pub fn ser_create_multipart_upload_headers( })?; builder = builder.header("x-amz-checksum-algorithm", header_value); } - if let ::std::option::Option::Some(inner_55) = &input.metadata { + if let ::std::option::Option::Some(inner_55) = &input.checksum_type { + let formatted_56 = inner_55.as_str(); + let header_value = formatted_56; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "checksum_type", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("x-amz-checksum-type", header_value); + } + if let ::std::option::Option::Some(inner_57) = &input.metadata { { - for (k, v) in inner_55 { + for (k, v) in inner_57 { use std::str::FromStr; let header_name = http::header::HeaderName::from_str(&format!("{}{}", "x-amz-meta-", &k)).map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( @@ -453,7 +471,7 @@ pub fn de_create_multipart_upload( while let Some(mut tag) = decoder.next_tag() { match tag.start_el() { s if s.matches("UploadId") /* UploadId com.amazonaws.s3.synthetic#CreateMultipartUploadOutput$UploadId */ => { - let var_56 = + let var_58 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -462,11 +480,11 @@ pub fn de_create_multipart_upload( ? ) ; - builder = builder.set_upload_id(var_56); + builder = builder.set_upload_id(var_58); } , s if s.matches("Bucket") /* Bucket com.amazonaws.s3.synthetic#CreateMultipartUploadOutput$Bucket */ => { - let var_57 = + let var_59 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -475,11 +493,11 @@ pub fn de_create_multipart_upload( ? ) ; - builder = builder.set_bucket(var_57); + builder = builder.set_bucket(var_59); } , s if s.matches("Key") /* Key com.amazonaws.s3.synthetic#CreateMultipartUploadOutput$Key */ => { - let var_58 = + let var_60 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -488,7 +506,7 @@ pub fn de_create_multipart_upload( ? ) ; - builder = builder.set_key(var_58); + builder = builder.set_key(var_60); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_create_multipart_upload_output.rs b/sdk/s3/src/protocol_serde/shape_create_multipart_upload_output.rs index 481af0d8d4d3..db2e71610fc5 100644 --- a/sdk/s3/src/protocol_serde/shape_create_multipart_upload_output.rs +++ b/sdk/s3/src/protocol_serde/shape_create_multipart_upload_output.rs @@ -45,6 +45,13 @@ pub(crate) fn de_checksum_algorithm_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_type_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-type"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_request_charged_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option, ::aws_smithy_http::header::ParseError> { diff --git a/sdk/s3/src/protocol_serde/shape_get_object.rs b/sdk/s3/src/protocol_serde/shape_get_object.rs index 52c8fcf8a037..4432b6d1e5ff 100644 --- a/sdk/s3/src/protocol_serde/shape_get_object.rs +++ b/sdk/s3/src/protocol_serde/shape_get_object.rs @@ -38,6 +38,11 @@ pub fn de_get_object_http_response( crate::operation::get_object::GetObjectError::unhandled("Failed to parse ChecksumCRC32C from header `x-amz-checksum-crc32c") })?, ); + output = output.set_checksum_crc64_nvme( + crate::protocol_serde::shape_get_object_output::de_checksum_crc64_nvme_header(_response_headers).map_err(|_| { + crate::operation::get_object::GetObjectError::unhandled("Failed to parse ChecksumCRC64NVME from header `x-amz-checksum-crc64nvme") + })?, + ); output = output.set_checksum_sha1( crate::protocol_serde::shape_get_object_output::de_checksum_sha1_header(_response_headers).map_err(|_| { crate::operation::get_object::GetObjectError::unhandled("Failed to parse ChecksumSHA1 from header `x-amz-checksum-sha1") @@ -48,6 +53,11 @@ pub fn de_get_object_http_response( crate::operation::get_object::GetObjectError::unhandled("Failed to parse ChecksumSHA256 from header `x-amz-checksum-sha256") })?, ); + output = output.set_checksum_type( + crate::protocol_serde::shape_get_object_output::de_checksum_type_header(_response_headers).map_err(|_| { + crate::operation::get_object::GetObjectError::unhandled("Failed to parse ChecksumType from header `x-amz-checksum-type") + })?, + ); output = output.set_content_disposition( crate::protocol_serde::shape_get_object_output::de_content_disposition_header(_response_headers).map_err(|_| { crate::operation::get_object::GetObjectError::unhandled("Failed to parse ContentDisposition from header `Content-Disposition") diff --git a/sdk/s3/src/protocol_serde/shape_get_object_output.rs b/sdk/s3/src/protocol_serde/shape_get_object_output.rs index cfb544ebeeac..1a7d2f1c9168 100644 --- a/sdk/s3/src/protocol_serde/shape_get_object_output.rs +++ b/sdk/s3/src/protocol_serde/shape_get_object_output.rs @@ -51,6 +51,13 @@ pub(crate) fn de_checksum_crc32_c_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_crc64_nvme_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-crc64nvme"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_checksum_sha1_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { @@ -65,6 +72,13 @@ pub(crate) fn de_checksum_sha256_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_type_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-type"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_content_disposition_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { diff --git a/sdk/s3/src/protocol_serde/shape_head_object.rs b/sdk/s3/src/protocol_serde/shape_head_object.rs index a7c21f841133..cb1568828789 100644 --- a/sdk/s3/src/protocol_serde/shape_head_object.rs +++ b/sdk/s3/src/protocol_serde/shape_head_object.rs @@ -76,6 +76,11 @@ pub fn de_head_object_http_response( crate::operation::head_object::HeadObjectError::unhandled("Failed to parse ChecksumCRC32C from header `x-amz-checksum-crc32c") })?, ); + output = output.set_checksum_crc64_nvme( + crate::protocol_serde::shape_head_object_output::de_checksum_crc64_nvme_header(_response_headers).map_err(|_| { + crate::operation::head_object::HeadObjectError::unhandled("Failed to parse ChecksumCRC64NVME from header `x-amz-checksum-crc64nvme") + })?, + ); output = output.set_checksum_sha1( crate::protocol_serde::shape_head_object_output::de_checksum_sha1_header(_response_headers).map_err(|_| { crate::operation::head_object::HeadObjectError::unhandled("Failed to parse ChecksumSHA1 from header `x-amz-checksum-sha1") @@ -86,6 +91,11 @@ pub fn de_head_object_http_response( crate::operation::head_object::HeadObjectError::unhandled("Failed to parse ChecksumSHA256 from header `x-amz-checksum-sha256") })?, ); + output = output.set_checksum_type( + crate::protocol_serde::shape_head_object_output::de_checksum_type_header(_response_headers).map_err(|_| { + crate::operation::head_object::HeadObjectError::unhandled("Failed to parse ChecksumType from header `x-amz-checksum-type") + })?, + ); output = output.set_content_disposition( crate::protocol_serde::shape_head_object_output::de_content_disposition_header(_response_headers).map_err(|_| { crate::operation::head_object::HeadObjectError::unhandled("Failed to parse ContentDisposition from header `Content-Disposition") diff --git a/sdk/s3/src/protocol_serde/shape_head_object_output.rs b/sdk/s3/src/protocol_serde/shape_head_object_output.rs index 70b46fa52a34..c1ab5a2d39b1 100644 --- a/sdk/s3/src/protocol_serde/shape_head_object_output.rs +++ b/sdk/s3/src/protocol_serde/shape_head_object_output.rs @@ -50,6 +50,13 @@ pub(crate) fn de_checksum_crc32_c_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_crc64_nvme_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-crc64nvme"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_checksum_sha1_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { @@ -64,6 +71,13 @@ pub(crate) fn de_checksum_sha256_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_type_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-type"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_content_disposition_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { diff --git a/sdk/s3/src/protocol_serde/shape_list_parts.rs b/sdk/s3/src/protocol_serde/shape_list_parts.rs index 32add1e8823b..c7381d7f0959 100644 --- a/sdk/s3/src/protocol_serde/shape_list_parts.rs +++ b/sdk/s3/src/protocol_serde/shape_list_parts.rs @@ -207,8 +207,22 @@ pub fn de_list_parts( builder = builder.set_max_parts(var_16); } , - s if s.matches("UploadId") /* UploadId com.amazonaws.s3.synthetic#ListPartsOutput$UploadId */ => { + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3.synthetic#ListPartsOutput$ChecksumType */ => { let var_17 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_17); + } + , + s if s.matches("UploadId") /* UploadId com.amazonaws.s3.synthetic#ListPartsOutput$UploadId */ => { + let var_18 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -217,11 +231,11 @@ pub fn de_list_parts( ? ) ; - builder = builder.set_upload_id(var_17); + builder = builder.set_upload_id(var_18); } , s if s.matches("PartNumberMarker") /* PartNumberMarker com.amazonaws.s3.synthetic#ListPartsOutput$PartNumberMarker */ => { - let var_18 = + let var_19 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -230,11 +244,11 @@ pub fn de_list_parts( ? ) ; - builder = builder.set_part_number_marker(var_18); + builder = builder.set_part_number_marker(var_19); } , s if s.matches("Bucket") /* Bucket com.amazonaws.s3.synthetic#ListPartsOutput$Bucket */ => { - let var_19 = + let var_20 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -243,38 +257,38 @@ pub fn de_list_parts( ? ) ; - builder = builder.set_bucket(var_19); + builder = builder.set_bucket(var_20); } , s if s.matches("Part") /* Parts com.amazonaws.s3.synthetic#ListPartsOutput$Parts */ => { - let var_20 = + let var_21 = Some( Result::<::std::vec::Vec::, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({ - let mut list_21 = builder.parts.take().unwrap_or_default(); - list_21.push( + let mut list_22 = builder.parts.take().unwrap_or_default(); + list_22.push( crate::protocol_serde::shape_part::de_part(&mut tag) ? ); - list_21 + list_22 }) ? ) ; - builder = builder.set_parts(var_20); + builder = builder.set_parts(var_21); } , s if s.matches("Initiator") /* Initiator com.amazonaws.s3.synthetic#ListPartsOutput$Initiator */ => { - let var_22 = + let var_23 = Some( crate::protocol_serde::shape_initiator::de_initiator(&mut tag) ? ) ; - builder = builder.set_initiator(var_22); + builder = builder.set_initiator(var_23); } , s if s.matches("Key") /* Key com.amazonaws.s3.synthetic#ListPartsOutput$Key */ => { - let var_23 = + let var_24 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -283,7 +297,7 @@ pub fn de_list_parts( ? ) ; - builder = builder.set_key(var_23); + builder = builder.set_key(var_24); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_multipart_upload.rs b/sdk/s3/src/protocol_serde/shape_multipart_upload.rs index c65f88fb7db7..02498c7eb251 100644 --- a/sdk/s3/src/protocol_serde/shape_multipart_upload.rs +++ b/sdk/s3/src/protocol_serde/shape_multipart_upload.rs @@ -95,6 +95,20 @@ pub fn de_multipart_upload( builder = builder.set_checksum_algorithm(var_7); } , + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3#MultipartUpload$ChecksumType */ => { + let var_8 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_8); + } + , _ => {} } } diff --git a/sdk/s3/src/protocol_serde/shape_object.rs b/sdk/s3/src/protocol_serde/shape_object.rs index 2969f63bfbea..51087ff80c8b 100644 --- a/sdk/s3/src/protocol_serde/shape_object.rs +++ b/sdk/s3/src/protocol_serde/shape_object.rs @@ -66,8 +66,22 @@ pub fn de_object(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Resul builder = builder.set_checksum_algorithm(var_4); } , - s if s.matches("Size") /* Size com.amazonaws.s3#Object$Size */ => { + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3#Object$ChecksumType */ => { let var_6 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_6); + } + , + s if s.matches("Size") /* Size com.amazonaws.s3#Object$Size */ => { + let var_7 = Some( { ::parse_smithy_primitive( @@ -78,11 +92,11 @@ pub fn de_object(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Resul ? ) ; - builder = builder.set_size(var_6); + builder = builder.set_size(var_7); } , s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Object$StorageClass */ => { - let var_7 = + let var_8 = Some( Result::::Ok( crate::types::ObjectStorageClass::from( @@ -92,27 +106,27 @@ pub fn de_object(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Resul ? ) ; - builder = builder.set_storage_class(var_7); + builder = builder.set_storage_class(var_8); } , s if s.matches("Owner") /* Owner com.amazonaws.s3#Object$Owner */ => { - let var_8 = + let var_9 = Some( crate::protocol_serde::shape_owner::de_owner(&mut tag) ? ) ; - builder = builder.set_owner(var_8); + builder = builder.set_owner(var_9); } , s if s.matches("RestoreStatus") /* RestoreStatus com.amazonaws.s3#Object$RestoreStatus */ => { - let var_9 = + let var_10 = Some( crate::protocol_serde::shape_restore_status::de_restore_status(&mut tag) ? ) ; - builder = builder.set_restore_status(var_9); + builder = builder.set_restore_status(var_10); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_object_part.rs b/sdk/s3/src/protocol_serde/shape_object_part.rs index 7e280553ea53..5270ae1db191 100644 --- a/sdk/s3/src/protocol_serde/shape_object_part.rs +++ b/sdk/s3/src/protocol_serde/shape_object_part.rs @@ -63,7 +63,7 @@ pub fn de_object_part( builder = builder.set_checksum_crc32_c(var_4); } , - s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#ObjectPart$ChecksumSHA1 */ => { + s if s.matches("ChecksumCRC64NVME") /* ChecksumCRC64NVME com.amazonaws.s3#ObjectPart$ChecksumCRC64NVME */ => { let var_5 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -73,10 +73,10 @@ pub fn de_object_part( ? ) ; - builder = builder.set_checksum_sha1(var_5); + builder = builder.set_checksum_crc64_nvme(var_5); } , - s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#ObjectPart$ChecksumSHA256 */ => { + s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#ObjectPart$ChecksumSHA1 */ => { let var_6 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -86,7 +86,20 @@ pub fn de_object_part( ? ) ; - builder = builder.set_checksum_sha256(var_6); + builder = builder.set_checksum_sha1(var_6); + } + , + s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#ObjectPart$ChecksumSHA256 */ => { + let var_7 = + Some( + Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_checksum_sha256(var_7); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_object_version.rs b/sdk/s3/src/protocol_serde/shape_object_version.rs index 910fd1e4f450..d132e75a6289 100644 --- a/sdk/s3/src/protocol_serde/shape_object_version.rs +++ b/sdk/s3/src/protocol_serde/shape_object_version.rs @@ -41,8 +41,22 @@ pub fn de_object_version( builder = builder.set_checksum_algorithm(var_2); } , - s if s.matches("Size") /* Size com.amazonaws.s3#ObjectVersion$Size */ => { + s if s.matches("ChecksumType") /* ChecksumType com.amazonaws.s3#ObjectVersion$ChecksumType */ => { let var_4 = + Some( + Result::::Ok( + crate::types::ChecksumType::from( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + ) + ) + ? + ) + ; + builder = builder.set_checksum_type(var_4); + } + , + s if s.matches("Size") /* Size com.amazonaws.s3#ObjectVersion$Size */ => { + let var_5 = Some( { ::parse_smithy_primitive( @@ -53,11 +67,11 @@ pub fn de_object_version( ? ) ; - builder = builder.set_size(var_4); + builder = builder.set_size(var_5); } , s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#ObjectVersion$StorageClass */ => { - let var_5 = + let var_6 = Some( Result::::Ok( crate::types::ObjectVersionStorageClass::from( @@ -67,11 +81,11 @@ pub fn de_object_version( ? ) ; - builder = builder.set_storage_class(var_5); + builder = builder.set_storage_class(var_6); } , s if s.matches("Key") /* Key com.amazonaws.s3#ObjectVersion$Key */ => { - let var_6 = + let var_7 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -80,11 +94,11 @@ pub fn de_object_version( ? ) ; - builder = builder.set_key(var_6); + builder = builder.set_key(var_7); } , s if s.matches("VersionId") /* VersionId com.amazonaws.s3#ObjectVersion$VersionId */ => { - let var_7 = + let var_8 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -93,11 +107,11 @@ pub fn de_object_version( ? ) ; - builder = builder.set_version_id(var_7); + builder = builder.set_version_id(var_8); } , s if s.matches("IsLatest") /* IsLatest com.amazonaws.s3#ObjectVersion$IsLatest */ => { - let var_8 = + let var_9 = Some( { ::parse_smithy_primitive( @@ -108,11 +122,11 @@ pub fn de_object_version( ? ) ; - builder = builder.set_is_latest(var_8); + builder = builder.set_is_latest(var_9); } , s if s.matches("LastModified") /* LastModified com.amazonaws.s3#ObjectVersion$LastModified */ => { - let var_9 = + let var_10 = Some( ::aws_smithy_types::DateTime::from_str( ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() @@ -122,27 +136,27 @@ pub fn de_object_version( ? ) ; - builder = builder.set_last_modified(var_9); + builder = builder.set_last_modified(var_10); } , s if s.matches("Owner") /* Owner com.amazonaws.s3#ObjectVersion$Owner */ => { - let var_10 = + let var_11 = Some( crate::protocol_serde::shape_owner::de_owner(&mut tag) ? ) ; - builder = builder.set_owner(var_10); + builder = builder.set_owner(var_11); } , s if s.matches("RestoreStatus") /* RestoreStatus com.amazonaws.s3#ObjectVersion$RestoreStatus */ => { - let var_11 = + let var_12 = Some( crate::protocol_serde::shape_restore_status::de_restore_status(&mut tag) ? ) ; - builder = builder.set_restore_status(var_11); + builder = builder.set_restore_status(var_12); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_part.rs b/sdk/s3/src/protocol_serde/shape_part.rs index b500daedc1cc..cf98c6138278 100644 --- a/sdk/s3/src/protocol_serde/shape_part.rs +++ b/sdk/s3/src/protocol_serde/shape_part.rs @@ -88,7 +88,7 @@ pub fn de_part(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Result< builder = builder.set_checksum_crc32_c(var_6); } , - s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#Part$ChecksumSHA1 */ => { + s if s.matches("ChecksumCRC64NVME") /* ChecksumCRC64NVME com.amazonaws.s3#Part$ChecksumCRC64NVME */ => { let var_7 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -98,10 +98,10 @@ pub fn de_part(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Result< ? ) ; - builder = builder.set_checksum_sha1(var_7); + builder = builder.set_checksum_crc64_nvme(var_7); } , - s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#Part$ChecksumSHA256 */ => { + s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#Part$ChecksumSHA1 */ => { let var_8 = Some( Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( @@ -111,7 +111,20 @@ pub fn de_part(decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder) -> Result< ? ) ; - builder = builder.set_checksum_sha256(var_8); + builder = builder.set_checksum_sha1(var_8); + } + , + s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#Part$ChecksumSHA256 */ => { + let var_9 = + Some( + Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok( + ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref() + .into() + ) + ? + ) + ; + builder = builder.set_checksum_sha256(var_9); } , _ => {} diff --git a/sdk/s3/src/protocol_serde/shape_put_object.rs b/sdk/s3/src/protocol_serde/shape_put_object.rs index 4d9a3618747a..a4b44a2d5a61 100644 --- a/sdk/s3/src/protocol_serde/shape_put_object.rs +++ b/sdk/s3/src/protocol_serde/shape_put_object.rs @@ -108,6 +108,11 @@ pub fn de_put_object_http_response( crate::operation::put_object::PutObjectError::unhandled("Failed to parse ChecksumCRC32C from header `x-amz-checksum-crc32c") })?, ); + output = output.set_checksum_crc64_nvme( + crate::protocol_serde::shape_put_object_output::de_checksum_crc64_nvme_header(_response_headers).map_err(|_| { + crate::operation::put_object::PutObjectError::unhandled("Failed to parse ChecksumCRC64NVME from header `x-amz-checksum-crc64nvme") + })?, + ); output = output.set_checksum_sha1( crate::protocol_serde::shape_put_object_output::de_checksum_sha1_header(_response_headers).map_err(|_| { crate::operation::put_object::PutObjectError::unhandled("Failed to parse ChecksumSHA1 from header `x-amz-checksum-sha1") @@ -118,6 +123,11 @@ pub fn de_put_object_http_response( crate::operation::put_object::PutObjectError::unhandled("Failed to parse ChecksumSHA256 from header `x-amz-checksum-sha256") })?, ); + output = output.set_checksum_type( + crate::protocol_serde::shape_put_object_output::de_checksum_type_header(_response_headers).map_err(|_| { + crate::operation::put_object::PutObjectError::unhandled("Failed to parse ChecksumType from header `x-amz-checksum-type") + })?, + ); output = output.set_e_tag( crate::protocol_serde::shape_put_object_output::de_e_tag_header(_response_headers) .map_err(|_| crate::operation::put_object::PutObjectError::unhandled("Failed to parse ETag from header `ETag"))?, @@ -306,20 +316,31 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-checksum-crc32c", header_value); } - if let ::std::option::Option::Some(inner_23) = &input.checksum_sha1 { + if let ::std::option::Option::Some(inner_23) = &input.checksum_crc64_nvme { let formatted_24 = inner_23.as_str(); let header_value = formatted_24; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "checksum_sha1", + "checksum_crc64_nvme", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-checksum-sha1", header_value); + builder = builder.header("x-amz-checksum-crc64nvme", header_value); } - if let ::std::option::Option::Some(inner_25) = &input.checksum_sha256 { + if let ::std::option::Option::Some(inner_25) = &input.checksum_sha1 { let formatted_26 = inner_25.as_str(); let header_value = formatted_26; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "checksum_sha1", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("x-amz-checksum-sha1", header_value); + } + if let ::std::option::Option::Some(inner_27) = &input.checksum_sha256 { + let formatted_28 = inner_27.as_str(); + let header_value = formatted_28; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "checksum_sha256", @@ -328,9 +349,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-checksum-sha256", header_value); } - if let ::std::option::Option::Some(inner_27) = &input.expires { - let formatted_28 = inner_27.fmt(::aws_smithy_types::date_time::Format::HttpDate)?; - let header_value = formatted_28; + if let ::std::option::Option::Some(inner_29) = &input.expires { + let formatted_30 = inner_29.fmt(::aws_smithy_types::date_time::Format::HttpDate)?; + let header_value = formatted_30; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "expires", @@ -339,9 +360,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("Expires", header_value); } - if let ::std::option::Option::Some(inner_29) = &input.if_match { - let formatted_30 = inner_29.as_str(); - let header_value = formatted_30; + if let ::std::option::Option::Some(inner_31) = &input.if_match { + let formatted_32 = inner_31.as_str(); + let header_value = formatted_32; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "if_match", @@ -350,9 +371,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("If-Match", header_value); } - if let ::std::option::Option::Some(inner_31) = &input.if_none_match { - let formatted_32 = inner_31.as_str(); - let header_value = formatted_32; + if let ::std::option::Option::Some(inner_33) = &input.if_none_match { + let formatted_34 = inner_33.as_str(); + let header_value = formatted_34; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "if_none_match", @@ -361,9 +382,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("If-None-Match", header_value); } - if let ::std::option::Option::Some(inner_33) = &input.grant_full_control { - let formatted_34 = inner_33.as_str(); - let header_value = formatted_34; + if let ::std::option::Option::Some(inner_35) = &input.grant_full_control { + let formatted_36 = inner_35.as_str(); + let header_value = formatted_36; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "grant_full_control", @@ -372,9 +393,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-grant-full-control", header_value); } - if let ::std::option::Option::Some(inner_35) = &input.grant_read { - let formatted_36 = inner_35.as_str(); - let header_value = formatted_36; + if let ::std::option::Option::Some(inner_37) = &input.grant_read { + let formatted_38 = inner_37.as_str(); + let header_value = formatted_38; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "grant_read", @@ -383,9 +404,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-grant-read", header_value); } - if let ::std::option::Option::Some(inner_37) = &input.grant_read_acp { - let formatted_38 = inner_37.as_str(); - let header_value = formatted_38; + if let ::std::option::Option::Some(inner_39) = &input.grant_read_acp { + let formatted_40 = inner_39.as_str(); + let header_value = formatted_40; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "grant_read_acp", @@ -394,9 +415,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-grant-read-acp", header_value); } - if let ::std::option::Option::Some(inner_39) = &input.grant_write_acp { - let formatted_40 = inner_39.as_str(); - let header_value = formatted_40; + if let ::std::option::Option::Some(inner_41) = &input.grant_write_acp { + let formatted_42 = inner_41.as_str(); + let header_value = formatted_42; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "grant_write_acp", @@ -405,10 +426,10 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-grant-write-acp", header_value); } - if let ::std::option::Option::Some(inner_41) = &input.write_offset_bytes { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_41); - let formatted_42 = encoder.encode(); - let header_value = formatted_42; + if let ::std::option::Option::Some(inner_43) = &input.write_offset_bytes { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_43); + let formatted_44 = encoder.encode(); + let header_value = formatted_44; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "write_offset_bytes", @@ -417,9 +438,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-write-offset-bytes", header_value); } - if let ::std::option::Option::Some(inner_43) = &input.server_side_encryption { - let formatted_44 = inner_43.as_str(); - let header_value = formatted_44; + if let ::std::option::Option::Some(inner_45) = &input.server_side_encryption { + let formatted_46 = inner_45.as_str(); + let header_value = formatted_46; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "server_side_encryption", @@ -428,9 +449,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption", header_value); } - if let ::std::option::Option::Some(inner_45) = &input.storage_class { - let formatted_46 = inner_45.as_str(); - let header_value = formatted_46; + if let ::std::option::Option::Some(inner_47) = &input.storage_class { + let formatted_48 = inner_47.as_str(); + let header_value = formatted_48; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "storage_class", @@ -439,9 +460,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-storage-class", header_value); } - if let ::std::option::Option::Some(inner_47) = &input.website_redirect_location { - let formatted_48 = inner_47.as_str(); - let header_value = formatted_48; + if let ::std::option::Option::Some(inner_49) = &input.website_redirect_location { + let formatted_50 = inner_49.as_str(); + let header_value = formatted_50; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "website_redirect_location", @@ -450,9 +471,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-website-redirect-location", header_value); } - if let ::std::option::Option::Some(inner_49) = &input.sse_customer_algorithm { - let formatted_50 = inner_49.as_str(); - let header_value = formatted_50; + if let ::std::option::Option::Some(inner_51) = &input.sse_customer_algorithm { + let formatted_52 = inner_51.as_str(); + let header_value = formatted_52; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_algorithm", @@ -461,9 +482,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption-customer-algorithm", header_value); } - if let ::std::option::Option::Some(inner_51) = &input.sse_customer_key { - let formatted_52 = inner_51.as_str(); - let header_value = formatted_52; + if let ::std::option::Option::Some(inner_53) = &input.sse_customer_key { + let formatted_54 = inner_53.as_str(); + let header_value = formatted_54; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key", @@ -472,9 +493,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption-customer-key", header_value); } - if let ::std::option::Option::Some(inner_53) = &input.sse_customer_key_md5 { - let formatted_54 = inner_53.as_str(); - let header_value = formatted_54; + if let ::std::option::Option::Some(inner_55) = &input.sse_customer_key_md5 { + let formatted_56 = inner_55.as_str(); + let header_value = formatted_56; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key_md5", @@ -483,9 +504,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption-customer-key-MD5", header_value); } - if let ::std::option::Option::Some(inner_55) = &input.ssekms_key_id { - let formatted_56 = inner_55.as_str(); - let header_value = formatted_56; + if let ::std::option::Option::Some(inner_57) = &input.ssekms_key_id { + let formatted_58 = inner_57.as_str(); + let header_value = formatted_58; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "ssekms_key_id", @@ -494,9 +515,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption-aws-kms-key-id", header_value); } - if let ::std::option::Option::Some(inner_57) = &input.ssekms_encryption_context { - let formatted_58 = inner_57.as_str(); - let header_value = formatted_58; + if let ::std::option::Option::Some(inner_59) = &input.ssekms_encryption_context { + let formatted_60 = inner_59.as_str(); + let header_value = formatted_60; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "ssekms_encryption_context", @@ -505,10 +526,10 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption-context", header_value); } - if let ::std::option::Option::Some(inner_59) = &input.bucket_key_enabled { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_59); - let formatted_60 = encoder.encode(); - let header_value = formatted_60; + if let ::std::option::Option::Some(inner_61) = &input.bucket_key_enabled { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_61); + let formatted_62 = encoder.encode(); + let header_value = formatted_62; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "bucket_key_enabled", @@ -517,9 +538,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-server-side-encryption-bucket-key-enabled", header_value); } - if let ::std::option::Option::Some(inner_61) = &input.request_payer { - let formatted_62 = inner_61.as_str(); - let header_value = formatted_62; + if let ::std::option::Option::Some(inner_63) = &input.request_payer { + let formatted_64 = inner_63.as_str(); + let header_value = formatted_64; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "request_payer", @@ -528,9 +549,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-request-payer", header_value); } - if let ::std::option::Option::Some(inner_63) = &input.tagging { - let formatted_64 = inner_63.as_str(); - let header_value = formatted_64; + if let ::std::option::Option::Some(inner_65) = &input.tagging { + let formatted_66 = inner_65.as_str(); + let header_value = formatted_66; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "tagging", @@ -539,9 +560,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-tagging", header_value); } - if let ::std::option::Option::Some(inner_65) = &input.object_lock_mode { - let formatted_66 = inner_65.as_str(); - let header_value = formatted_66; + if let ::std::option::Option::Some(inner_67) = &input.object_lock_mode { + let formatted_68 = inner_67.as_str(); + let header_value = formatted_68; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "object_lock_mode", @@ -550,9 +571,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-object-lock-mode", header_value); } - if let ::std::option::Option::Some(inner_67) = &input.object_lock_retain_until_date { - let formatted_68 = inner_67.fmt(::aws_smithy_types::date_time::Format::DateTime)?; - let header_value = formatted_68; + if let ::std::option::Option::Some(inner_69) = &input.object_lock_retain_until_date { + let formatted_70 = inner_69.fmt(::aws_smithy_types::date_time::Format::DateTime)?; + let header_value = formatted_70; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "object_lock_retain_until_date", @@ -561,9 +582,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-object-lock-retain-until-date", header_value); } - if let ::std::option::Option::Some(inner_69) = &input.object_lock_legal_hold_status { - let formatted_70 = inner_69.as_str(); - let header_value = formatted_70; + if let ::std::option::Option::Some(inner_71) = &input.object_lock_legal_hold_status { + let formatted_72 = inner_71.as_str(); + let header_value = formatted_72; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "object_lock_legal_hold_status", @@ -572,9 +593,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-object-lock-legal-hold", header_value); } - if let ::std::option::Option::Some(inner_71) = &input.expected_bucket_owner { - let formatted_72 = inner_71.as_str(); - let header_value = formatted_72; + if let ::std::option::Option::Some(inner_73) = &input.expected_bucket_owner { + let formatted_74 = inner_73.as_str(); + let header_value = formatted_74; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "expected_bucket_owner", @@ -583,9 +604,9 @@ pub fn ser_put_object_headers( })?; builder = builder.header("x-amz-expected-bucket-owner", header_value); } - if let ::std::option::Option::Some(inner_73) = &input.metadata { + if let ::std::option::Option::Some(inner_75) = &input.metadata { { - for (k, v) in inner_73 { + for (k, v) in inner_75 { use std::str::FromStr; let header_name = http::header::HeaderName::from_str(&format!("{}{}", "x-amz-meta-", &k)).map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( diff --git a/sdk/s3/src/protocol_serde/shape_put_object_output.rs b/sdk/s3/src/protocol_serde/shape_put_object_output.rs index de7be9a540a9..cc8fabecbe7f 100644 --- a/sdk/s3/src/protocol_serde/shape_put_object_output.rs +++ b/sdk/s3/src/protocol_serde/shape_put_object_output.rs @@ -29,6 +29,13 @@ pub(crate) fn de_checksum_crc32_c_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_crc64_nvme_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-crc64nvme"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_checksum_sha1_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { @@ -43,6 +50,13 @@ pub(crate) fn de_checksum_sha256_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_type_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-type"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_e_tag_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { diff --git a/sdk/s3/src/protocol_serde/shape_upload_part.rs b/sdk/s3/src/protocol_serde/shape_upload_part.rs index 12d8308bd2d9..d8ff46c29e10 100644 --- a/sdk/s3/src/protocol_serde/shape_upload_part.rs +++ b/sdk/s3/src/protocol_serde/shape_upload_part.rs @@ -40,6 +40,11 @@ pub fn de_upload_part_http_response( crate::operation::upload_part::UploadPartError::unhandled("Failed to parse ChecksumCRC32C from header `x-amz-checksum-crc32c") })?, ); + output = output.set_checksum_crc64_nvme( + crate::protocol_serde::shape_upload_part_output::de_checksum_crc64_nvme_header(_response_headers).map_err(|_| { + crate::operation::upload_part::UploadPartError::unhandled("Failed to parse ChecksumCRC64NVME from header `x-amz-checksum-crc64nvme") + })?, + ); output = output.set_checksum_sha1( crate::protocol_serde::shape_upload_part_output::de_checksum_sha1_header(_response_headers).map_err(|_| { crate::operation::upload_part::UploadPartError::unhandled("Failed to parse ChecksumSHA1 from header `x-amz-checksum-sha1") @@ -153,42 +158,53 @@ pub fn ser_upload_part_headers( })?; builder = builder.header("x-amz-checksum-crc32c", header_value); } - if let ::std::option::Option::Some(inner_11) = &input.checksum_sha1 { + if let ::std::option::Option::Some(inner_11) = &input.checksum_crc64_nvme { let formatted_12 = inner_11.as_str(); let header_value = formatted_12; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "checksum_sha1", + "checksum_crc64_nvme", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-checksum-sha1", header_value); + builder = builder.header("x-amz-checksum-crc64nvme", header_value); } - if let ::std::option::Option::Some(inner_13) = &input.checksum_sha256 { + if let ::std::option::Option::Some(inner_13) = &input.checksum_sha1 { let formatted_14 = inner_13.as_str(); let header_value = formatted_14; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "checksum_sha256", + "checksum_sha1", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-checksum-sha256", header_value); + builder = builder.header("x-amz-checksum-sha1", header_value); } - if let ::std::option::Option::Some(inner_15) = &input.sse_customer_algorithm { + if let ::std::option::Option::Some(inner_15) = &input.checksum_sha256 { let formatted_16 = inner_15.as_str(); let header_value = formatted_16; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "sse_customer_algorithm", + "checksum_sha256", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-server-side-encryption-customer-algorithm", header_value); + builder = builder.header("x-amz-checksum-sha256", header_value); } - if let ::std::option::Option::Some(inner_17) = &input.sse_customer_key { + if let ::std::option::Option::Some(inner_17) = &input.sse_customer_algorithm { let formatted_18 = inner_17.as_str(); let header_value = formatted_18; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "sse_customer_algorithm", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("x-amz-server-side-encryption-customer-algorithm", header_value); + } + if let ::std::option::Option::Some(inner_19) = &input.sse_customer_key { + let formatted_20 = inner_19.as_str(); + let header_value = formatted_20; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key", @@ -197,9 +213,9 @@ pub fn ser_upload_part_headers( })?; builder = builder.header("x-amz-server-side-encryption-customer-key", header_value); } - if let ::std::option::Option::Some(inner_19) = &input.sse_customer_key_md5 { - let formatted_20 = inner_19.as_str(); - let header_value = formatted_20; + if let ::std::option::Option::Some(inner_21) = &input.sse_customer_key_md5 { + let formatted_22 = inner_21.as_str(); + let header_value = formatted_22; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key_md5", @@ -208,9 +224,9 @@ pub fn ser_upload_part_headers( })?; builder = builder.header("x-amz-server-side-encryption-customer-key-MD5", header_value); } - if let ::std::option::Option::Some(inner_21) = &input.request_payer { - let formatted_22 = inner_21.as_str(); - let header_value = formatted_22; + if let ::std::option::Option::Some(inner_23) = &input.request_payer { + let formatted_24 = inner_23.as_str(); + let header_value = formatted_24; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "request_payer", @@ -219,9 +235,9 @@ pub fn ser_upload_part_headers( })?; builder = builder.header("x-amz-request-payer", header_value); } - if let ::std::option::Option::Some(inner_23) = &input.expected_bucket_owner { - let formatted_24 = inner_23.as_str(); - let header_value = formatted_24; + if let ::std::option::Option::Some(inner_25) = &input.expected_bucket_owner { + let formatted_26 = inner_25.as_str(); + let header_value = formatted_26; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "expected_bucket_owner", diff --git a/sdk/s3/src/protocol_serde/shape_upload_part_output.rs b/sdk/s3/src/protocol_serde/shape_upload_part_output.rs index f30274676f83..32948036bd98 100644 --- a/sdk/s3/src/protocol_serde/shape_upload_part_output.rs +++ b/sdk/s3/src/protocol_serde/shape_upload_part_output.rs @@ -29,6 +29,13 @@ pub(crate) fn de_checksum_crc32_c_header( ::aws_smithy_http::header::one_or_none(headers) } +pub(crate) fn de_checksum_crc64_nvme_header( + header_map: &::aws_smithy_runtime_api::http::Headers, +) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { + let headers = header_map.get_all("x-amz-checksum-crc64nvme"); + ::aws_smithy_http::header::one_or_none(headers) +} + pub(crate) fn de_checksum_sha1_header( header_map: &::aws_smithy_runtime_api::http::Headers, ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> { diff --git a/sdk/s3/src/protocol_serde/shape_write_get_object_response.rs b/sdk/s3/src/protocol_serde/shape_write_get_object_response.rs index bccf7e365fca..0290146c65d0 100644 --- a/sdk/s3/src/protocol_serde/shape_write_get_object_response.rs +++ b/sdk/s3/src/protocol_serde/shape_write_get_object_response.rs @@ -206,20 +206,31 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-checksum-crc32c", header_value); } - if let ::std::option::Option::Some(inner_31) = &input.checksum_sha1 { + if let ::std::option::Option::Some(inner_31) = &input.checksum_crc64_nvme { let formatted_32 = inner_31.as_str(); let header_value = formatted_32; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( - "checksum_sha1", + "checksum_crc64_nvme", format!("`{}` cannot be used as a header value: {}", &header_value, err), ) })?; - builder = builder.header("x-amz-fwd-header-x-amz-checksum-sha1", header_value); + builder = builder.header("x-amz-fwd-header-x-amz-checksum-crc64nvme", header_value); } - if let ::std::option::Option::Some(inner_33) = &input.checksum_sha256 { + if let ::std::option::Option::Some(inner_33) = &input.checksum_sha1 { let formatted_34 = inner_33.as_str(); let header_value = formatted_34; + let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { + ::aws_smithy_types::error::operation::BuildError::invalid_field( + "checksum_sha1", + format!("`{}` cannot be used as a header value: {}", &header_value, err), + ) + })?; + builder = builder.header("x-amz-fwd-header-x-amz-checksum-sha1", header_value); + } + if let ::std::option::Option::Some(inner_35) = &input.checksum_sha256 { + let formatted_36 = inner_35.as_str(); + let header_value = formatted_36; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "checksum_sha256", @@ -228,10 +239,10 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-checksum-sha256", header_value); } - if let ::std::option::Option::Some(inner_35) = &input.delete_marker { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_35); - let formatted_36 = encoder.encode(); - let header_value = formatted_36; + if let ::std::option::Option::Some(inner_37) = &input.delete_marker { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_37); + let formatted_38 = encoder.encode(); + let header_value = formatted_38; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "delete_marker", @@ -240,9 +251,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-delete-marker", header_value); } - if let ::std::option::Option::Some(inner_37) = &input.e_tag { - let formatted_38 = inner_37.as_str(); - let header_value = formatted_38; + if let ::std::option::Option::Some(inner_39) = &input.e_tag { + let formatted_40 = inner_39.as_str(); + let header_value = formatted_40; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "e_tag", @@ -251,9 +262,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-ETag", header_value); } - if let ::std::option::Option::Some(inner_39) = &input.expires { - let formatted_40 = inner_39.fmt(::aws_smithy_types::date_time::Format::HttpDate)?; - let header_value = formatted_40; + if let ::std::option::Option::Some(inner_41) = &input.expires { + let formatted_42 = inner_41.fmt(::aws_smithy_types::date_time::Format::HttpDate)?; + let header_value = formatted_42; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "expires", @@ -262,9 +273,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-Expires", header_value); } - if let ::std::option::Option::Some(inner_41) = &input.expiration { - let formatted_42 = inner_41.as_str(); - let header_value = formatted_42; + if let ::std::option::Option::Some(inner_43) = &input.expiration { + let formatted_44 = inner_43.as_str(); + let header_value = formatted_44; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "expiration", @@ -273,9 +284,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-expiration", header_value); } - if let ::std::option::Option::Some(inner_43) = &input.last_modified { - let formatted_44 = inner_43.fmt(::aws_smithy_types::date_time::Format::HttpDate)?; - let header_value = formatted_44; + if let ::std::option::Option::Some(inner_45) = &input.last_modified { + let formatted_46 = inner_45.fmt(::aws_smithy_types::date_time::Format::HttpDate)?; + let header_value = formatted_46; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "last_modified", @@ -284,10 +295,10 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-Last-Modified", header_value); } - if let ::std::option::Option::Some(inner_45) = &input.missing_meta { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_45); - let formatted_46 = encoder.encode(); - let header_value = formatted_46; + if let ::std::option::Option::Some(inner_47) = &input.missing_meta { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_47); + let formatted_48 = encoder.encode(); + let header_value = formatted_48; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "missing_meta", @@ -296,9 +307,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-missing-meta", header_value); } - if let ::std::option::Option::Some(inner_47) = &input.object_lock_mode { - let formatted_48 = inner_47.as_str(); - let header_value = formatted_48; + if let ::std::option::Option::Some(inner_49) = &input.object_lock_mode { + let formatted_50 = inner_49.as_str(); + let header_value = formatted_50; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "object_lock_mode", @@ -307,9 +318,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-object-lock-mode", header_value); } - if let ::std::option::Option::Some(inner_49) = &input.object_lock_legal_hold_status { - let formatted_50 = inner_49.as_str(); - let header_value = formatted_50; + if let ::std::option::Option::Some(inner_51) = &input.object_lock_legal_hold_status { + let formatted_52 = inner_51.as_str(); + let header_value = formatted_52; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "object_lock_legal_hold_status", @@ -318,9 +329,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-object-lock-legal-hold", header_value); } - if let ::std::option::Option::Some(inner_51) = &input.object_lock_retain_until_date { - let formatted_52 = inner_51.fmt(::aws_smithy_types::date_time::Format::DateTime)?; - let header_value = formatted_52; + if let ::std::option::Option::Some(inner_53) = &input.object_lock_retain_until_date { + let formatted_54 = inner_53.fmt(::aws_smithy_types::date_time::Format::DateTime)?; + let header_value = formatted_54; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "object_lock_retain_until_date", @@ -329,10 +340,10 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-object-lock-retain-until-date", header_value); } - if let ::std::option::Option::Some(inner_53) = &input.parts_count { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_53); - let formatted_54 = encoder.encode(); - let header_value = formatted_54; + if let ::std::option::Option::Some(inner_55) = &input.parts_count { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_55); + let formatted_56 = encoder.encode(); + let header_value = formatted_56; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "parts_count", @@ -341,9 +352,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-mp-parts-count", header_value); } - if let ::std::option::Option::Some(inner_55) = &input.replication_status { - let formatted_56 = inner_55.as_str(); - let header_value = formatted_56; + if let ::std::option::Option::Some(inner_57) = &input.replication_status { + let formatted_58 = inner_57.as_str(); + let header_value = formatted_58; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "replication_status", @@ -352,9 +363,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-replication-status", header_value); } - if let ::std::option::Option::Some(inner_57) = &input.request_charged { - let formatted_58 = inner_57.as_str(); - let header_value = formatted_58; + if let ::std::option::Option::Some(inner_59) = &input.request_charged { + let formatted_60 = inner_59.as_str(); + let header_value = formatted_60; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "request_charged", @@ -363,9 +374,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-request-charged", header_value); } - if let ::std::option::Option::Some(inner_59) = &input.restore { - let formatted_60 = inner_59.as_str(); - let header_value = formatted_60; + if let ::std::option::Option::Some(inner_61) = &input.restore { + let formatted_62 = inner_61.as_str(); + let header_value = formatted_62; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "restore", @@ -374,9 +385,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-restore", header_value); } - if let ::std::option::Option::Some(inner_61) = &input.server_side_encryption { - let formatted_62 = inner_61.as_str(); - let header_value = formatted_62; + if let ::std::option::Option::Some(inner_63) = &input.server_side_encryption { + let formatted_64 = inner_63.as_str(); + let header_value = formatted_64; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "server_side_encryption", @@ -385,9 +396,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-server-side-encryption", header_value); } - if let ::std::option::Option::Some(inner_63) = &input.sse_customer_algorithm { - let formatted_64 = inner_63.as_str(); - let header_value = formatted_64; + if let ::std::option::Option::Some(inner_65) = &input.sse_customer_algorithm { + let formatted_66 = inner_65.as_str(); + let header_value = formatted_66; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_algorithm", @@ -396,9 +407,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm", header_value); } - if let ::std::option::Option::Some(inner_65) = &input.ssekms_key_id { - let formatted_66 = inner_65.as_str(); - let header_value = formatted_66; + if let ::std::option::Option::Some(inner_67) = &input.ssekms_key_id { + let formatted_68 = inner_67.as_str(); + let header_value = formatted_68; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "ssekms_key_id", @@ -407,9 +418,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id", header_value); } - if let ::std::option::Option::Some(inner_67) = &input.sse_customer_key_md5 { - let formatted_68 = inner_67.as_str(); - let header_value = formatted_68; + if let ::std::option::Option::Some(inner_69) = &input.sse_customer_key_md5 { + let formatted_70 = inner_69.as_str(); + let header_value = formatted_70; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "sse_customer_key_md5", @@ -418,9 +429,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5", header_value); } - if let ::std::option::Option::Some(inner_69) = &input.storage_class { - let formatted_70 = inner_69.as_str(); - let header_value = formatted_70; + if let ::std::option::Option::Some(inner_71) = &input.storage_class { + let formatted_72 = inner_71.as_str(); + let header_value = formatted_72; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "storage_class", @@ -429,10 +440,10 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-storage-class", header_value); } - if let ::std::option::Option::Some(inner_71) = &input.tag_count { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_71); - let formatted_72 = encoder.encode(); - let header_value = formatted_72; + if let ::std::option::Option::Some(inner_73) = &input.tag_count { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_73); + let formatted_74 = encoder.encode(); + let header_value = formatted_74; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "tag_count", @@ -441,9 +452,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-tagging-count", header_value); } - if let ::std::option::Option::Some(inner_73) = &input.version_id { - let formatted_74 = inner_73.as_str(); - let header_value = formatted_74; + if let ::std::option::Option::Some(inner_75) = &input.version_id { + let formatted_76 = inner_75.as_str(); + let header_value = formatted_76; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "version_id", @@ -452,10 +463,10 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-version-id", header_value); } - if let ::std::option::Option::Some(inner_75) = &input.bucket_key_enabled { - let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_75); - let formatted_76 = encoder.encode(); - let header_value = formatted_76; + if let ::std::option::Option::Some(inner_77) = &input.bucket_key_enabled { + let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_77); + let formatted_78 = encoder.encode(); + let header_value = formatted_78; let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( "bucket_key_enabled", @@ -464,9 +475,9 @@ pub fn ser_write_get_object_response_headers( })?; builder = builder.header("x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled", header_value); } - if let ::std::option::Option::Some(inner_77) = &input.metadata { + if let ::std::option::Option::Some(inner_79) = &input.metadata { { - for (k, v) in inner_77 { + for (k, v) in inner_79 { use std::str::FromStr; let header_name = http::header::HeaderName::from_str(&format!("{}{}", "x-amz-meta-", &k)).map_err(|err| { ::aws_smithy_types::error::operation::BuildError::invalid_field( diff --git a/sdk/s3/src/types.rs b/sdk/s3/src/types.rs index 389140e48949..55af66dbe325 100644 --- a/sdk/s3/src/types.rs +++ b/sdk/s3/src/types.rs @@ -113,6 +113,8 @@ pub use crate::types::_access_control_policy::AccessControlPolicy; pub use crate::types::_owner::Owner; +pub use crate::types::_checksum_type::ChecksumType; + pub use crate::types::_website_configuration::WebsiteConfiguration; pub use crate::types::_routing_rule::RoutingRule; @@ -465,6 +467,8 @@ mod _checksum_algorithm; mod _checksum_mode; +mod _checksum_type; + mod _common_prefix; mod _completed_multipart_upload; diff --git a/sdk/s3/src/types/_checksum.rs b/sdk/s3/src/types/_checksum.rs index a5e14664c970..913d6a91dba7 100644 --- a/sdk/s3/src/types/_checksum.rs +++ b/sdk/s3/src/types/_checksum.rs @@ -4,32 +4,44 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct Checksum { - ///

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + pub checksum_type: ::std::option::Option, } impl Checksum { - ///

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } } impl Checksum { /// Creates a new builder-style object to manufacture [`Checksum`](crate::types::Checksum). @@ -44,73 +56,105 @@ impl Checksum { pub struct ChecksumBuilder { pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, + pub(crate) checksum_type: ::std::option::Option, } impl ChecksumBuilder { - ///

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only be present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the object. This checksum is only present if the checksum was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

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

        The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

        The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

        + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } /// Consumes the builder and constructs a [`Checksum`](crate::types::Checksum). pub fn build(self) -> crate::types::Checksum { crate::types::Checksum { checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, + checksum_type: self.checksum_type, } } } diff --git a/sdk/s3/src/types/_checksum_algorithm.rs b/sdk/s3/src/types/_checksum_algorithm.rs index d641d875c368..7d2b06e70923 100644 --- a/sdk/s3/src/types/_checksum_algorithm.rs +++ b/sdk/s3/src/types/_checksum_algorithm.rs @@ -14,6 +14,7 @@ /// match checksumalgorithm { /// ChecksumAlgorithm::Crc32 => { /* ... */ }, /// ChecksumAlgorithm::Crc32C => { /* ... */ }, +/// ChecksumAlgorithm::Crc64Nvme => { /* ... */ }, /// ChecksumAlgorithm::Sha1 => { /* ... */ }, /// ChecksumAlgorithm::Sha256 => { /* ... */ }, /// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, @@ -49,6 +50,8 @@ pub enum ChecksumAlgorithm { #[allow(missing_docs)] // documentation missing in model Crc32C, #[allow(missing_docs)] // documentation missing in model + Crc64Nvme, + #[allow(missing_docs)] // documentation missing in model Sha1, #[allow(missing_docs)] // documentation missing in model Sha256, @@ -61,6 +64,7 @@ impl ::std::convert::From<&str> for ChecksumAlgorithm { match s { "CRC32" => ChecksumAlgorithm::Crc32, "CRC32C" => ChecksumAlgorithm::Crc32C, + "CRC64NVME" => ChecksumAlgorithm::Crc64Nvme, "SHA1" => ChecksumAlgorithm::Sha1, "SHA256" => ChecksumAlgorithm::Sha256, other => ChecksumAlgorithm::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), @@ -80,6 +84,7 @@ impl ChecksumAlgorithm { match self { ChecksumAlgorithm::Crc32 => "CRC32", ChecksumAlgorithm::Crc32C => "CRC32C", + ChecksumAlgorithm::Crc64Nvme => "CRC64NVME", ChecksumAlgorithm::Sha1 => "SHA1", ChecksumAlgorithm::Sha256 => "SHA256", ChecksumAlgorithm::Unknown(value) => value.as_str(), @@ -87,7 +92,7 @@ impl ChecksumAlgorithm { } /// Returns all the `&str` representations of the enum members. pub const fn values() -> &'static [&'static str] { - &["CRC32", "CRC32C", "SHA1", "SHA256"] + &["CRC32", "CRC32C", "CRC64NVME", "SHA1", "SHA256"] } } impl ::std::convert::AsRef for ChecksumAlgorithm { @@ -112,6 +117,7 @@ impl ::std::fmt::Display for ChecksumAlgorithm { match self { ChecksumAlgorithm::Crc32 => write!(f, "CRC32"), ChecksumAlgorithm::Crc32C => write!(f, "CRC32C"), + ChecksumAlgorithm::Crc64Nvme => write!(f, "CRC64NVME"), ChecksumAlgorithm::Sha1 => write!(f, "SHA1"), ChecksumAlgorithm::Sha256 => write!(f, "SHA256"), ChecksumAlgorithm::Unknown(value) => write!(f, "{}", value), diff --git a/sdk/s3/src/types/_checksum_type.rs b/sdk/s3/src/types/_checksum_type.rs new file mode 100644 index 000000000000..6df68f4b136f --- /dev/null +++ b/sdk/s3/src/types/_checksum_type.rs @@ -0,0 +1,108 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `ChecksumType`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let checksumtype = unimplemented!(); +/// match checksumtype { +/// ChecksumType::Composite => { /* ... */ }, +/// ChecksumType::FullObject => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `checksumtype` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `ChecksumType::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `ChecksumType::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `ChecksumType::NewFeature` is defined. +/// Specifically, when `checksumtype` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `ChecksumType::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +/// +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum ChecksumType { + #[allow(missing_docs)] // documentation missing in model + Composite, + #[allow(missing_docs)] // documentation missing in model + FullObject, + /// `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), +} +impl ::std::convert::From<&str> for ChecksumType { + fn from(s: &str) -> Self { + match s { + "COMPOSITE" => ChecksumType::Composite, + "FULL_OBJECT" => ChecksumType::FullObject, + other => ChecksumType::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for ChecksumType { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(ChecksumType::from(s)) + } +} +impl ChecksumType { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + ChecksumType::Composite => "COMPOSITE", + ChecksumType::FullObject => "FULL_OBJECT", + ChecksumType::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["COMPOSITE", "FULL_OBJECT"] + } +} +impl ::std::convert::AsRef for ChecksumType { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl ChecksumType { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} +impl ::std::fmt::Display for ChecksumType { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + match self { + ChecksumType::Composite => write!(f, "COMPOSITE"), + ChecksumType::FullObject => write!(f, "FULL_OBJECT"), + ChecksumType::Unknown(value) => write!(f, "{}", value), + } + } +} diff --git a/sdk/s3/src/types/_completed_part.rs b/sdk/s3/src/types/_completed_part.rs index ac726e4bdf6b..fb187ea8be1b 100644 --- a/sdk/s3/src/types/_completed_part.rs +++ b/sdk/s3/src/types/_completed_part.rs @@ -6,13 +6,15 @@ pub struct CompletedPart { ///

        Entity tag returned when the part was uploaded.

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

        The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

        The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

        + ///

        The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

        pub checksum_sha256: ::std::option::Option<::std::string::String>, ///

        Part number that identifies the part. This is a positive integer between 1 and 10,000.

        ///
          @@ -29,19 +31,23 @@ impl CompletedPart { pub fn e_tag(&self) -> ::std::option::Option<&str> { self.e_tag.as_deref() } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -71,6 +77,7 @@ pub struct CompletedPartBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, pub(crate) part_number: ::std::option::Option, @@ -90,59 +97,73 @@ impl CompletedPartBuilder { pub fn get_e_tag(&self) -> &::std::option::Option<::std::string::String> { &self.e_tag } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -187,6 +208,7 @@ impl CompletedPartBuilder { e_tag: self.e_tag, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, part_number: self.part_number, diff --git a/sdk/s3/src/types/_copy_object_result.rs b/sdk/s3/src/types/_copy_object_result.rs index 596851ba0a69..a91b0ea0b87d 100644 --- a/sdk/s3/src/types/_copy_object_result.rs +++ b/sdk/s3/src/types/_copy_object_result.rs @@ -8,13 +8,17 @@ pub struct CopyObjectResult { pub e_tag: ::std::option::Option<::std::string::String>, ///

          Creation date of the object.

          pub last_modified: ::std::option::Option<::aws_smithy_types::DateTime>, - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_type: ::std::option::Option, + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object being copied was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha256: ::std::option::Option<::std::string::String>, } impl CopyObjectResult { @@ -26,19 +30,27 @@ impl CopyObjectResult { pub fn last_modified(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> { self.last_modified.as_ref() } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object being copied was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -56,8 +68,10 @@ impl CopyObjectResult { pub struct CopyObjectResultBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) last_modified: ::std::option::Option<::aws_smithy_types::DateTime>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, } @@ -90,59 +104,87 @@ impl CopyObjectResultBuilder { pub fn get_last_modified(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.last_modified } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

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

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32 = input; self } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the object. This checksum is only present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32 } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32_c = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32_c = input; self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32_c } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object being copied was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.checksum_crc64_nvme = ::std::option::Option::Some(input.into()); + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object being copied was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.checksum_crc64_nvme = input; + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the object. This checksum is present if the object being copied was uploaded with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> { + &self.checksum_crc64_nvme + } + ///

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha1 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha1 = input; self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha1 } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha256 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha256 = input; self } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 digest of the object. This will only be present if the object was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -151,8 +193,10 @@ impl CopyObjectResultBuilder { crate::types::CopyObjectResult { e_tag: self.e_tag, last_modified: self.last_modified, + checksum_type: self.checksum_type, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, } diff --git a/sdk/s3/src/types/_copy_part_result.rs b/sdk/s3/src/types/_copy_part_result.rs index 62a784770d1b..61421a712899 100644 --- a/sdk/s3/src/types/_copy_part_result.rs +++ b/sdk/s3/src/types/_copy_part_result.rs @@ -8,13 +8,15 @@ pub struct CopyPartResult { pub e_tag: ::std::option::Option<::std::string::String>, ///

          Date and time at which the object was uploaded.

          pub last_modified: ::std::option::Option<::aws_smithy_types::DateTime>, - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_crc32: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_crc32_c: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_crc64_nvme: ::std::option::Option<::std::string::String>, + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha1: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha256: ::std::option::Option<::std::string::String>, } impl CopyPartResult { @@ -26,19 +28,23 @@ impl CopyPartResult { pub fn last_modified(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> { self.last_modified.as_ref() } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32(&self) -> ::std::option::Option<&str> { self.checksum_crc32.as_deref() } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(&self) -> ::std::option::Option<&str> { self.checksum_crc32_c.as_deref() } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(&self) -> ::std::option::Option<&str> { + self.checksum_crc64_nvme.as_deref() + } + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(&self) -> ::std::option::Option<&str> { self.checksum_sha1.as_deref() } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -58,6 +64,7 @@ pub struct CopyPartResultBuilder { pub(crate) last_modified: ::std::option::Option<::aws_smithy_types::DateTime>, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, } @@ -90,59 +97,73 @@ impl CopyPartResultBuilder { pub fn get_last_modified(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.last_modified } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32 = input; self } - ///

          The base64-encoded, 32-bit CRC-32 checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32 } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32_c = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32_c = input; self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC-32C checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32_c } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.checksum_crc64_nvme = ::std::option::Option::Some(input.into()); + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.checksum_crc64_nvme = input; + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> { + &self.checksum_crc64_nvme + } + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha1 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha1 = input; self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA-1 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha1 } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha256 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha256 = input; self } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA-256 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -153,6 +174,7 @@ impl CopyPartResultBuilder { last_modified: self.last_modified, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, } diff --git a/sdk/s3/src/types/_create_bucket_configuration.rs b/sdk/s3/src/types/_create_bucket_configuration.rs index 344124dc5c4a..74c5a880053f 100644 --- a/sdk/s3/src/types/_create_bucket_configuration.rs +++ b/sdk/s3/src/types/_create_bucket_configuration.rs @@ -4,14 +4,13 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct CreateBucketConfiguration { - ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.

          - ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          - ///

          For a list of the valid values for all of the Amazon Web Services Regions, see Regions and Endpoints.

          + ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.

          + ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          ///

          This functionality is not supported for directory buckets.

          ///
          pub location_constraint: ::std::option::Option, ///

          Specifies the location where the bucket will be created.

          - ///

          Directory buckets - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide.

          + ///

          Directory buckets - The location type is Availability Zone or Local Zone. When the location type is Local Zone, your Local Zone must be in opt-in status. Otherwise, you get an HTTP 400 Bad Request error with the error code Access denied. To learn more about opt-in Local Zones, see Opt-in Dedicated Local Zonesin the Amazon S3 User Guide.

          ///

          This functionality is only supported by directory buckets.

          ///
          pub location: ::std::option::Option, @@ -21,16 +20,15 @@ pub struct CreateBucketConfiguration { pub bucket: ::std::option::Option, } impl CreateBucketConfiguration { - ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.

          - ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          - ///

          For a list of the valid values for all of the Amazon Web Services Regions, see Regions and Endpoints.

          + ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.

          + ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          ///

          This functionality is not supported for directory buckets.

          ///
          pub fn location_constraint(&self) -> ::std::option::Option<&crate::types::BucketLocationConstraint> { self.location_constraint.as_ref() } ///

          Specifies the location where the bucket will be created.

          - ///

          Directory buckets - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide.

          + ///

          Directory buckets - The location type is Availability Zone or Local Zone. When the location type is Local Zone, your Local Zone must be in opt-in status. Otherwise, you get an HTTP 400 Bad Request error with the error code Access denied. To learn more about opt-in Local Zones, see Opt-in Dedicated Local Zonesin the Amazon S3 User Guide.

          ///

          This functionality is only supported by directory buckets.

          ///
          pub fn location(&self) -> ::std::option::Option<&crate::types::LocationInfo> { @@ -59,34 +57,31 @@ pub struct CreateBucketConfigurationBuilder { pub(crate) bucket: ::std::option::Option, } impl CreateBucketConfigurationBuilder { - ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.

          - ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          - ///

          For a list of the valid values for all of the Amazon Web Services Regions, see Regions and Endpoints.

          + ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.

          + ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          ///

          This functionality is not supported for directory buckets.

          ///
          pub fn location_constraint(mut self, input: crate::types::BucketLocationConstraint) -> Self { self.location_constraint = ::std::option::Option::Some(input); self } - ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.

          - ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          - ///

          For a list of the valid values for all of the Amazon Web Services Regions, see Regions and Endpoints.

          + ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.

          + ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          ///

          This functionality is not supported for directory buckets.

          ///
          pub fn set_location_constraint(mut self, input: ::std::option::Option) -> Self { self.location_constraint = input; self } - ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.

          - ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          - ///

          For a list of the valid values for all of the Amazon Web Services Regions, see Regions and Endpoints.

          + ///

          Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.

          + ///

          If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.

          ///

          This functionality is not supported for directory buckets.

          ///
          pub fn get_location_constraint(&self) -> &::std::option::Option { &self.location_constraint } ///

          Specifies the location where the bucket will be created.

          - ///

          Directory buckets - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide.

          + ///

          Directory buckets - The location type is Availability Zone or Local Zone. When the location type is Local Zone, your Local Zone must be in opt-in status. Otherwise, you get an HTTP 400 Bad Request error with the error code Access denied. To learn more about opt-in Local Zones, see Opt-in Dedicated Local Zonesin the Amazon S3 User Guide.

          ///

          This functionality is only supported by directory buckets.

          ///
          pub fn location(mut self, input: crate::types::LocationInfo) -> Self { @@ -94,7 +89,7 @@ impl CreateBucketConfigurationBuilder { self } ///

          Specifies the location where the bucket will be created.

          - ///

          Directory buckets - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide.

          + ///

          Directory buckets - The location type is Availability Zone or Local Zone. When the location type is Local Zone, your Local Zone must be in opt-in status. Otherwise, you get an HTTP 400 Bad Request error with the error code Access denied. To learn more about opt-in Local Zones, see Opt-in Dedicated Local Zonesin the Amazon S3 User Guide.

          ///

          This functionality is only supported by directory buckets.

          ///
          pub fn set_location(mut self, input: ::std::option::Option) -> Self { @@ -102,7 +97,7 @@ impl CreateBucketConfigurationBuilder { self } ///

          Specifies the location where the bucket will be created.

          - ///

          Directory buckets - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Dedicated Local Zones. Otherwise, you get an HTTP 403 Forbidden error with the error code AccessDenied. To learn more, see Enable accounts for Dedicated Local Zones in the Amazon S3 User Guide.

          + ///

          Directory buckets - The location type is Availability Zone or Local Zone. When the location type is Local Zone, your Local Zone must be in opt-in status. Otherwise, you get an HTTP 400 Bad Request error with the error code Access denied. To learn more about opt-in Local Zones, see Opt-in Dedicated Local Zonesin the Amazon S3 User Guide.

          ///

          This functionality is only supported by directory buckets.

          ///
          pub fn get_location(&self) -> &::std::option::Option { diff --git a/sdk/s3/src/types/_location_info.rs b/sdk/s3/src/types/_location_info.rs index 6ea07109750e..1366364478c7 100644 --- a/sdk/s3/src/types/_location_info.rs +++ b/sdk/s3/src/types/_location_info.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///

          Specifies the location where the bucket will be created.

          -///

          For directory buckets, the location type is Availability Zone or Local Zone. For more information about directory buckets, see Working with directory buckets in the Amazon S3 User Guide.

          +///

          For directory buckets, the location type is Availability Zone or Local Zone. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide.

          ///

          This functionality is only supported by directory buckets.

          ///
          #[non_exhaustive] diff --git a/sdk/s3/src/types/_multipart_upload.rs b/sdk/s3/src/types/_multipart_upload.rs index 90308439080f..5b7749433acd 100644 --- a/sdk/s3/src/types/_multipart_upload.rs +++ b/sdk/s3/src/types/_multipart_upload.rs @@ -22,6 +22,8 @@ pub struct MultipartUpload { pub initiator: ::std::option::Option, ///

          The algorithm that was used to create a checksum of the object.

          pub checksum_algorithm: ::std::option::Option, + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_type: ::std::option::Option, } impl MultipartUpload { ///

          Upload ID that identifies the multipart upload.

          @@ -56,6 +58,10 @@ impl MultipartUpload { pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::types::ChecksumAlgorithm> { self.checksum_algorithm.as_ref() } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } } impl MultipartUpload { /// Creates a new builder-style object to manufacture [`MultipartUpload`](crate::types::MultipartUpload). @@ -75,6 +81,7 @@ pub struct MultipartUploadBuilder { pub(crate) owner: ::std::option::Option, pub(crate) initiator: ::std::option::Option, pub(crate) checksum_algorithm: ::std::option::Option, + pub(crate) checksum_type: ::std::option::Option, } impl MultipartUploadBuilder { ///

          Upload ID that identifies the multipart upload.

          @@ -187,6 +194,20 @@ impl MultipartUploadBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option { &self.checksum_algorithm } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_type(mut self, input: ::std::option::Option) -> Self { + self.checksum_type = input; + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } /// Consumes the builder and constructs a [`MultipartUpload`](crate::types::MultipartUpload). pub fn build(self) -> crate::types::MultipartUpload { crate::types::MultipartUpload { @@ -197,6 +218,7 @@ impl MultipartUploadBuilder { owner: self.owner, initiator: self.initiator, checksum_algorithm: self.checksum_algorithm, + checksum_type: self.checksum_type, } } } diff --git a/sdk/s3/src/types/_object.rs b/sdk/s3/src/types/_object.rs index 1e44afa509a0..454e136b1786 100644 --- a/sdk/s3/src/types/_object.rs +++ b/sdk/s3/src/types/_object.rs @@ -22,6 +22,8 @@ pub struct Object { pub e_tag: ::std::option::Option<::std::string::String>, ///

          The algorithm that was used to create a checksum of the object.

          pub checksum_algorithm: ::std::option::Option<::std::vec::Vec>, + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_type: ::std::option::Option, ///

          Size in bytes of the object

          pub size: ::std::option::Option, ///

          The class of storage used to store the object.

          @@ -66,6 +68,10 @@ impl Object { pub fn checksum_algorithm(&self) -> &[crate::types::ChecksumAlgorithm] { self.checksum_algorithm.as_deref().unwrap_or_default() } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } ///

          Size in bytes of the object

          pub fn size(&self) -> ::std::option::Option { self.size @@ -104,6 +110,7 @@ pub struct ObjectBuilder { pub(crate) last_modified: ::std::option::Option<::aws_smithy_types::DateTime>, pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_algorithm: ::std::option::Option<::std::vec::Vec>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) size: ::std::option::Option, pub(crate) storage_class: ::std::option::Option, pub(crate) owner: ::std::option::Option, @@ -202,6 +209,20 @@ impl ObjectBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option<::std::vec::Vec> { &self.checksum_algorithm } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_type(mut self, input: ::std::option::Option) -> Self { + self.checksum_type = input; + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } ///

          Size in bytes of the object

          pub fn size(mut self, input: i64) -> Self { self.size = ::std::option::Option::Some(input); @@ -283,6 +304,7 @@ impl ObjectBuilder { last_modified: self.last_modified, e_tag: self.e_tag, checksum_algorithm: self.checksum_algorithm, + checksum_type: self.checksum_type, size: self.size, storage_class: self.storage_class, owner: self.owner, diff --git a/sdk/s3/src/types/_object_part.rs b/sdk/s3/src/types/_object_part.rs index 349174629c72..50216cf56390 100644 --- a/sdk/s3/src/types/_object_part.rs +++ b/sdk/s3/src/types/_object_part.rs @@ -8,13 +8,15 @@ pub struct ObjectPart { pub part_number: ::std::option::Option, ///

          The size of the uploaded part in bytes.

          pub size: ::std::option::Option, - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_crc32: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_crc32_c: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_crc64_nvme: ::std::option::Option<::std::string::String>, + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha1: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha256: ::std::option::Option<::std::string::String>, } impl ObjectPart { @@ -26,19 +28,23 @@ impl ObjectPart { pub fn size(&self) -> ::std::option::Option { self.size } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32(&self) -> ::std::option::Option<&str> { self.checksum_crc32.as_deref() } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(&self) -> ::std::option::Option<&str> { self.checksum_crc32_c.as_deref() } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(&self) -> ::std::option::Option<&str> { + self.checksum_crc64_nvme.as_deref() + } + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(&self) -> ::std::option::Option<&str> { self.checksum_sha1.as_deref() } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -58,6 +64,7 @@ pub struct ObjectPartBuilder { pub(crate) size: ::std::option::Option, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, } @@ -90,59 +97,73 @@ impl ObjectPartBuilder { pub fn get_size(&self) -> &::std::option::Option { &self.size } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32 = ::std::option::Option::Some(input.into()); self } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32 = input; self } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32 } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32_c = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32_c = input; self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32_c } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.checksum_crc64_nvme = ::std::option::Option::Some(input.into()); + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.checksum_crc64_nvme = input; + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> { + &self.checksum_crc64_nvme + } + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha1 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha1 = input; self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha1 } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha256 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha256 = input; self } - ///

          The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -153,6 +174,7 @@ impl ObjectPartBuilder { size: self.size, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, } diff --git a/sdk/s3/src/types/_object_version.rs b/sdk/s3/src/types/_object_version.rs index e4ea350dbdc7..f85f4e4bf628 100644 --- a/sdk/s3/src/types/_object_version.rs +++ b/sdk/s3/src/types/_object_version.rs @@ -8,6 +8,8 @@ pub struct ObjectVersion { pub e_tag: ::std::option::Option<::std::string::String>, ///

          The algorithm that was used to create a checksum of the object.

          pub checksum_algorithm: ::std::option::Option<::std::vec::Vec>, + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_type: ::std::option::Option, ///

          Size in bytes of the object.

          pub size: ::std::option::Option, ///

          The class of storage used to store the object.

          @@ -36,6 +38,10 @@ impl ObjectVersion { pub fn checksum_algorithm(&self) -> &[crate::types::ChecksumAlgorithm] { self.checksum_algorithm.as_deref().unwrap_or_default() } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(&self) -> ::std::option::Option<&crate::types::ChecksumType> { + self.checksum_type.as_ref() + } ///

          Size in bytes of the object.

          pub fn size(&self) -> ::std::option::Option { self.size @@ -82,6 +88,7 @@ impl ObjectVersion { pub struct ObjectVersionBuilder { pub(crate) e_tag: ::std::option::Option<::std::string::String>, pub(crate) checksum_algorithm: ::std::option::Option<::std::vec::Vec>, + pub(crate) checksum_type: ::std::option::Option, pub(crate) size: ::std::option::Option, pub(crate) storage_class: ::std::option::Option, pub(crate) key: ::std::option::Option<::std::string::String>, @@ -126,6 +133,20 @@ impl ObjectVersionBuilder { pub fn get_checksum_algorithm(&self) -> &::std::option::Option<::std::vec::Vec> { &self.checksum_algorithm } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_type(mut self, input: crate::types::ChecksumType) -> Self { + self.checksum_type = ::std::option::Option::Some(input); + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_type(mut self, input: ::std::option::Option) -> Self { + self.checksum_type = input; + self + } + ///

          The checksum type that is used to calculate the object’s checksum value. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_type(&self) -> &::std::option::Option { + &self.checksum_type + } ///

          Size in bytes of the object.

          pub fn size(mut self, input: i64) -> Self { self.size = ::std::option::Option::Some(input); @@ -243,6 +264,7 @@ impl ObjectVersionBuilder { crate::types::ObjectVersion { e_tag: self.e_tag, checksum_algorithm: self.checksum_algorithm, + checksum_type: self.checksum_type, size: self.size, storage_class: self.storage_class, key: self.key, diff --git a/sdk/s3/src/types/_part.rs b/sdk/s3/src/types/_part.rs index 81a212a3de30..dc244a0cc91b 100644 --- a/sdk/s3/src/types/_part.rs +++ b/sdk/s3/src/types/_part.rs @@ -12,13 +12,15 @@ pub struct Part { pub e_tag: ::std::option::Option<::std::string::String>, ///

          Size in bytes of the uploaded part data.

          pub size: ::std::option::Option, - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the object was uploaded with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_crc32: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the object was uploaded with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_crc32_c: ::std::option::Option<::std::string::String>, - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub checksum_crc64_nvme: ::std::option::Option<::std::string::String>, + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the object was uploaded with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha1: ::std::option::Option<::std::string::String>, - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the object was uploaded with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub checksum_sha256: ::std::option::Option<::std::string::String>, } impl Part { @@ -38,19 +40,23 @@ impl Part { pub fn size(&self) -> ::std::option::Option { self.size } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the object was uploaded with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32(&self) -> ::std::option::Option<&str> { self.checksum_crc32.as_deref() } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the object was uploaded with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(&self) -> ::std::option::Option<&str> { self.checksum_crc32_c.as_deref() } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(&self) -> ::std::option::Option<&str> { + self.checksum_crc64_nvme.as_deref() + } + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the object was uploaded with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(&self) -> ::std::option::Option<&str> { self.checksum_sha1.as_deref() } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the object was uploaded with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(&self) -> ::std::option::Option<&str> { self.checksum_sha256.as_deref() } @@ -72,6 +78,7 @@ pub struct PartBuilder { pub(crate) size: ::std::option::Option, pub(crate) checksum_crc32: ::std::option::Option<::std::string::String>, pub(crate) checksum_crc32_c: ::std::option::Option<::std::string::String>, + pub(crate) checksum_crc64_nvme: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha1: ::std::option::Option<::std::string::String>, pub(crate) checksum_sha256: ::std::option::Option<::std::string::String>, } @@ -132,59 +139,73 @@ impl PartBuilder { pub fn get_size(&self) -> &::std::option::Option { &self.size } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the object was uploaded with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32 = ::std::option::Option::Some(input.into()); self } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the object was uploaded with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32 = input; self } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC-32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32 checksum of the part. This checksum is present if the object was uploaded with the CRC-32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32 } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the object was uploaded with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_crc32_c(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_crc32_c = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the object was uploaded with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_crc32_c(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_crc32_c = input; self } - ///

          The base64-encoded, 32-bit CRC-32C checksum of the object. This will only be present if it was uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 32-bit CRC-32C checksum of the part. This checksum is present if the object was uploaded with the CRC-32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_crc32_c(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_crc32_c } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn checksum_crc64_nvme(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.checksum_crc64_nvme = ::std::option::Option::Some(input.into()); + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn set_checksum_crc64_nvme(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.checksum_crc64_nvme = input; + self + } + ///

          The Base64 encoded, 64-bit CRC-64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC-64NVME checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 added the default checksum, CRC-64NVME, to the uploaded object). For more information, see Checking object integrity in the Amazon S3 User Guide.

          + pub fn get_checksum_crc64_nvme(&self) -> &::std::option::Option<::std::string::String> { + &self.checksum_crc64_nvme + } + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the object was uploaded with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha1 = ::std::option::Option::Some(input.into()); self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the object was uploaded with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha1(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha1 = input; self } - ///

          The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 160-bit SHA-1 checksum of the part. This checksum is present if the object was uploaded with the SHA-1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha1(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha1 } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the object was uploaded with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn checksum_sha256(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.checksum_sha256 = ::std::option::Option::Some(input.into()); self } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the object was uploaded with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn set_checksum_sha256(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.checksum_sha256 = input; self } - ///

          This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

          + ///

          The Base64 encoded, 256-bit SHA-256 checksum of the part. This checksum is present if the object was uploaded with the SHA-256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide.

          pub fn get_checksum_sha256(&self) -> &::std::option::Option<::std::string::String> { &self.checksum_sha256 } @@ -197,6 +218,7 @@ impl PartBuilder { size: self.size, checksum_crc32: self.checksum_crc32, checksum_crc32_c: self.checksum_crc32_c, + checksum_crc64_nvme: self.checksum_crc64_nvme, checksum_sha1: self.checksum_sha1, checksum_sha256: self.checksum_sha256, } diff --git a/sdk/sesv2/src/types/_recommendation_type.rs b/sdk/sesv2/src/types/_recommendation_type.rs index bc2689a3ebd0..737ceb4fc7cf 100644 --- a/sdk/sesv2/src/types/_recommendation_type.rs +++ b/sdk/sesv2/src/types/_recommendation_type.rs @@ -13,6 +13,7 @@ /// # let recommendationtype = unimplemented!(); /// match recommendationtype { /// RecommendationType::Bimi => { /* ... */ }, +/// RecommendationType::Complaint => { /* ... */ }, /// RecommendationType::Dkim => { /* ... */ }, /// RecommendationType::Dmarc => { /* ... */ }, /// RecommendationType::Spf => { /* ... */ }, @@ -47,6 +48,8 @@ pub enum RecommendationType { #[allow(missing_docs)] // documentation missing in model Bimi, #[allow(missing_docs)] // documentation missing in model + Complaint, + #[allow(missing_docs)] // documentation missing in model Dkim, #[allow(missing_docs)] // documentation missing in model Dmarc, @@ -60,6 +63,7 @@ impl ::std::convert::From<&str> for RecommendationType { fn from(s: &str) -> Self { match s { "BIMI" => RecommendationType::Bimi, + "COMPLAINT" => RecommendationType::Complaint, "DKIM" => RecommendationType::Dkim, "DMARC" => RecommendationType::Dmarc, "SPF" => RecommendationType::Spf, @@ -79,6 +83,7 @@ impl RecommendationType { pub fn as_str(&self) -> &str { match self { RecommendationType::Bimi => "BIMI", + RecommendationType::Complaint => "COMPLAINT", RecommendationType::Dkim => "DKIM", RecommendationType::Dmarc => "DMARC", RecommendationType::Spf => "SPF", @@ -87,7 +92,7 @@ impl RecommendationType { } /// Returns all the `&str` representations of the enum members. pub const fn values() -> &'static [&'static str] { - &["BIMI", "DKIM", "DMARC", "SPF"] + &["BIMI", "COMPLAINT", "DKIM", "DMARC", "SPF"] } } impl ::std::convert::AsRef for RecommendationType { @@ -111,6 +116,7 @@ impl ::std::fmt::Display for RecommendationType { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { match self { RecommendationType::Bimi => write!(f, "BIMI"), + RecommendationType::Complaint => write!(f, "COMPLAINT"), RecommendationType::Dkim => write!(f, "DKIM"), RecommendationType::Dmarc => write!(f, "DMARC"), RecommendationType::Spf => write!(f, "SPF"), diff --git a/sdk/workspaces/src/types/_compute.rs b/sdk/workspaces/src/types/_compute.rs index 37a7226ee285..ebef8b64e857 100644 --- a/sdk/workspaces/src/types/_compute.rs +++ b/sdk/workspaces/src/types/_compute.rs @@ -12,6 +12,8 @@ /// ```text /// # let compute = unimplemented!(); /// match compute { +/// Compute::Generalpurpose4Xlarge => { /* ... */ }, +/// Compute::Generalpurpose8Xlarge => { /* ... */ }, /// Compute::Graphics => { /* ... */ }, /// Compute::Graphicspro => { /* ... */ }, /// Compute::GraphicsproG4Dn => { /* ... */ }, @@ -49,6 +51,10 @@ ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, )] pub enum Compute { + #[allow(missing_docs)] // documentation missing in model + Generalpurpose4Xlarge, + #[allow(missing_docs)] // documentation missing in model + Generalpurpose8Xlarge, #[allow(missing_docs)] // documentation missing in model Graphics, #[allow(missing_docs)] // documentation missing in model @@ -74,6 +80,8 @@ pub enum Compute { impl ::std::convert::From<&str> for Compute { fn from(s: &str) -> Self { match s { + "GENERALPURPOSE_4XLARGE" => Compute::Generalpurpose4Xlarge, + "GENERALPURPOSE_8XLARGE" => Compute::Generalpurpose8Xlarge, "GRAPHICS" => Compute::Graphics, "GRAPHICSPRO" => Compute::Graphicspro, "GRAPHICSPRO_G4DN" => Compute::GraphicsproG4Dn, @@ -98,6 +106,8 @@ impl Compute { /// Returns the `&str` value of the enum member. pub fn as_str(&self) -> &str { match self { + Compute::Generalpurpose4Xlarge => "GENERALPURPOSE_4XLARGE", + Compute::Generalpurpose8Xlarge => "GENERALPURPOSE_8XLARGE", Compute::Graphics => "GRAPHICS", Compute::Graphicspro => "GRAPHICSPRO", Compute::GraphicsproG4Dn => "GRAPHICSPRO_G4DN", @@ -113,6 +123,8 @@ impl Compute { /// Returns all the `&str` representations of the enum members. pub const fn values() -> &'static [&'static str] { &[ + "GENERALPURPOSE_4XLARGE", + "GENERALPURPOSE_8XLARGE", "GRAPHICS", "GRAPHICSPRO", "GRAPHICSPRO_G4DN", @@ -145,6 +157,8 @@ impl Compute { impl ::std::fmt::Display for Compute { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { match self { + Compute::Generalpurpose4Xlarge => write!(f, "GENERALPURPOSE_4XLARGE"), + Compute::Generalpurpose8Xlarge => write!(f, "GENERALPURPOSE_8XLARGE"), Compute::Graphics => write!(f, "GRAPHICS"), Compute::Graphicspro => write!(f, "GRAPHICSPRO"), Compute::GraphicsproG4Dn => write!(f, "GRAPHICSPRO_G4DN"), diff --git a/sdk/workspacesthinclient/src/protocol_serde/shape_maintenance_window.rs b/sdk/workspacesthinclient/src/protocol_serde/shape_maintenance_window.rs index cc3a0366208b..f5d4d15dc049 100644 --- a/sdk/workspacesthinclient/src/protocol_serde/shape_maintenance_window.rs +++ b/sdk/workspacesthinclient/src/protocol_serde/shape_maintenance_window.rs @@ -3,44 +3,44 @@ pub fn ser_maintenance_window( object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, input: &crate::types::MaintenanceWindow, ) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { - if let Some(var_1) = &input.r#type { - object.key("type").string(var_1.as_str()); + { + object.key("type").string(input.r#type.as_str()); } - if let Some(var_2) = &input.start_time_hour { + if let Some(var_1) = &input.start_time_hour { object.key("startTimeHour").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_2).into()), + ::aws_smithy_types::Number::NegInt((*var_1).into()), ); } - if let Some(var_3) = &input.start_time_minute { + if let Some(var_2) = &input.start_time_minute { object.key("startTimeMinute").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_3).into()), + ::aws_smithy_types::Number::NegInt((*var_2).into()), ); } - if let Some(var_4) = &input.end_time_hour { + if let Some(var_3) = &input.end_time_hour { object.key("endTimeHour").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_4).into()), + ::aws_smithy_types::Number::NegInt((*var_3).into()), ); } - if let Some(var_5) = &input.end_time_minute { + if let Some(var_4) = &input.end_time_minute { object.key("endTimeMinute").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_5).into()), + ::aws_smithy_types::Number::NegInt((*var_4).into()), ); } - if let Some(var_6) = &input.days_of_the_week { - let mut array_7 = object.key("daysOfTheWeek").start_array(); - for item_8 in var_6 { + if let Some(var_5) = &input.days_of_the_week { + let mut array_6 = object.key("daysOfTheWeek").start_array(); + for item_7 in var_5 { { - array_7.value().string(item_8.as_str()); + array_6.value().string(item_7.as_str()); } } - array_7.finish(); + array_6.finish(); } - if let Some(var_9) = &input.apply_time_of { - object.key("applyTimeOf").string(var_9.as_str()); + if let Some(var_8) = &input.apply_time_of { + object.key("applyTimeOf").string(var_8.as_str()); } Ok(()) } @@ -115,7 +115,9 @@ where } } } - Ok(Some(builder.build())) + Ok(Some(crate::serde_util::maintenance_window_correct_errors(builder).build().map_err( + |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err), + )?)) } _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( "expected start object or null", diff --git a/sdk/workspacesthinclient/src/serde_util.rs b/sdk/workspacesthinclient/src/serde_util.rs index 44f36a9d7cc4..64d8161f02d6 100644 --- a/sdk/workspacesthinclient/src/serde_util.rs +++ b/sdk/workspacesthinclient/src/serde_util.rs @@ -1,4 +1,13 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn maintenance_window_correct_errors( + mut builder: crate::types::builders::MaintenanceWindowBuilder, +) -> crate::types::builders::MaintenanceWindowBuilder { + if builder.r#type.is_none() { + builder.r#type = "no value was set".parse::().ok() + } + builder +} + pub(crate) fn validation_exception_field_correct_errors( mut builder: crate::types::builders::ValidationExceptionFieldBuilder, ) -> crate::types::builders::ValidationExceptionFieldBuilder { diff --git a/sdk/workspacesthinclient/src/types/_maintenance_window.rs b/sdk/workspacesthinclient/src/types/_maintenance_window.rs index 5ee36d0def99..cf8bef4561a7 100644 --- a/sdk/workspacesthinclient/src/types/_maintenance_window.rs +++ b/sdk/workspacesthinclient/src/types/_maintenance_window.rs @@ -5,7 +5,7 @@ #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct MaintenanceWindow { ///

          An option to select the default or custom maintenance window.

          - pub r#type: ::std::option::Option, + pub r#type: crate::types::MaintenanceWindowType, ///

          The hour for the maintenance window start (00-23).

          pub start_time_hour: ::std::option::Option, ///

          The minutes past the hour for the maintenance window start (00-59).

          @@ -21,8 +21,8 @@ pub struct MaintenanceWindow { } impl MaintenanceWindow { ///

          An option to select the default or custom maintenance window.

          - pub fn r#type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowType> { - self.r#type.as_ref() + pub fn r#type(&self) -> &crate::types::MaintenanceWindowType { + &self.r#type } ///

          The hour for the maintenance window start (00-23).

          pub fn start_time_hour(&self) -> ::std::option::Option { @@ -72,6 +72,7 @@ pub struct MaintenanceWindowBuilder { } impl MaintenanceWindowBuilder { ///

          An option to select the default or custom maintenance window.

          + /// This field is required. pub fn r#type(mut self, input: crate::types::MaintenanceWindowType) -> Self { self.r#type = ::std::option::Option::Some(input); self @@ -176,15 +177,22 @@ impl MaintenanceWindowBuilder { &self.apply_time_of } /// Consumes the builder and constructs a [`MaintenanceWindow`](crate::types::MaintenanceWindow). - pub fn build(self) -> crate::types::MaintenanceWindow { - crate::types::MaintenanceWindow { - r#type: self.r#type, + /// This method will fail if any of the following fields are not set: + /// - [`r#type`](crate::types::builders::MaintenanceWindowBuilder::type) + pub fn build(self) -> ::std::result::Result { + ::std::result::Result::Ok(crate::types::MaintenanceWindow { + r#type: self.r#type.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "r#type", + "r#type was not specified but it is required when building MaintenanceWindow", + ) + })?, start_time_hour: self.start_time_hour, start_time_minute: self.start_time_minute, end_time_hour: self.end_time_hour, end_time_minute: self.end_time_minute, days_of_the_week: self.days_of_the_week, apply_time_of: self.apply_time_of, - } + }) } } diff --git a/versions.toml b/versions.toml index 136c8e513d6e..ad384321dee0 100644 --- a/versions.toml +++ b/versions.toml @@ -89,8 +89,8 @@ model_hash = '711a8d250ce7cfe2729c4838b919afef6eab9efc92d8655f2ebf50b50240db0d' [crates.aws-sdk-apigateway] category = 'AwsSdk' version = '1.56.0' -source_hash = 'c9615a2a29a546fcd9cd40dae411e01af8473e4554ea2375406692319a5d6bd2' -model_hash = '6b3e0dd82e682fc0c6afab3e0485a01ba4c894465793f48e5bf85ace87a1a486' +source_hash = 'dc3664a948f2b670d46c3e73e2cac6850dacf5bb52848764a661216ab83cebf8' +model_hash = '3d89b66ec063f089513b64473379b772a06e7761c5ed951865517b52c64fe966' [crates.aws-sdk-apigatewaymanagement] category = 'AwsSdk' @@ -287,8 +287,8 @@ model_hash = 'bbc869ff7269d3e447ad5b9f2cad84b00fd18fe9ddf17d7de73c5875dae59580' [crates.aws-sdk-bedrockagentruntime] category = 'AwsSdk' version = '1.70.0' -source_hash = '9cb9e3e473fe330032875b1a9fb7b7d0704bc8d37881605d6546ba28a2373f25' -model_hash = '66f8120186bd6e50179f1f0757d52069f082f2a3c96d541b2ee1faa74d68f581' +source_hash = '61d2883e4a0641baaac31dc065cb635ecb9d50224ed08ac975842af8f219b0a6' +model_hash = '538d2d5e41e72aaad1fb1747ae2fd943bc2fc534769e31bdd5a27698cbce3e09' [crates.aws-sdk-bedrockdataautomation] category = 'AwsSdk' @@ -551,8 +551,8 @@ model_hash = '41e883a4dfd884874dd4c1039124b10cb9632c1bd91ce70a6ff6d7207720168e' [crates.aws-sdk-cognitoidentity] category = 'AwsSdk' version = '1.55.0' -source_hash = '83eefcd34dbe7f1d540ed28adf81d5d3d8a6245a71d35344e5dd961249adce6b' -model_hash = '366fb4965781346e6167a86700b99dd3d55cc618325f3af6156e4569ef9f55fc' +source_hash = '64aae81af1a4883b1a7763e0a1cb3fc8652f93370fb8ec0694e7b509911b3a65' +model_hash = 'dd2c6957b5bd16339fb15e9b2b6782593e934d5e32bb29e8c499ea1a3f0809d7' [crates.aws-sdk-cognitoidentityprovider] category = 'AwsSdk' @@ -1709,8 +1709,8 @@ model_hash = 'febaa3d19e9d98c7c7888395b77777d20b9914187a054b1443a86e9a0a5ab35f' [crates.aws-sdk-partnercentralselling] category = 'AwsSdk' version = '1.7.0' -source_hash = 'fbba8c2e3a6a134699a0e0805bc9ea547d67dfbbeb34a64017f1b2b6a6e86890' -model_hash = '718011ecfa598f393269530695e328238f08df25edf81246d414d47a12e68018' +source_hash = '1e32931a14e1d6548c01d350ad84716d20168d4d27319a559a4f121db9b0cbe4' +model_hash = 'f93581d3b5e0d4d5e230daf88413d842590888e671c504ea86e9af32ee2c5659' [crates.aws-sdk-paymentcryptography] category = 'AwsSdk' @@ -1997,8 +1997,8 @@ model_hash = '34648839402316ab9da4bef0fe11beb9bc3ec1d05b3ff7d09664ab74c0cb3d2b' [crates.aws-sdk-s3] category = 'AwsSdk' version = '1.69.0' -source_hash = 'a079a86c92e4b723ccb2175e219f7f25fe84478dabaf95dbf9f3cb66c2fab6ed' -model_hash = '7a4acae1dad780f9b3e3fc003faacbb465b99412caa2a50fb9adfdfc29dffb42' +source_hash = 'e48afc704da86206304ec6b5baedaa25bd3010c5037bb23531c68d6ac6c84931' +model_hash = '5dbccc7e89ea31e5fa4df44e12854f21b79b14d970b65502fff26c63c2fdf02e' [crates.aws-sdk-s3control] category = 'AwsSdk' @@ -2094,7 +2094,7 @@ model_hash = 'a4666a1f966c62d4ea6371cb080780a80c71f0a6e0d9a198188745bf79975d38' category = 'AwsSdk' version = '1.5.0' source_hash = '7a31513d7991ff1f0ce9aa63141fa9b43972ea7892e3aeacf8c79df471c522ac' -model_hash = 'f0bd142c2d190f5a557b4db33d2b110b92d4d4246cee55be7e573dc86190a840' +model_hash = 'c86fa3dd9ec3d7f690492b8089d615e6d0c6eaa0ff04c5a2746fc16f3e988463' [crates.aws-sdk-securitylake] category = 'AwsSdk' @@ -2141,8 +2141,8 @@ model_hash = '7ea630c51f0d837fd35192e6934ea08c17d2c67eb785cb84eabe95dc46e27ca7' [crates.aws-sdk-sesv2] category = 'AwsSdk' version = '1.61.0' -source_hash = '463509b3626b50db84744db321c297f25f85fffeea93db232df8c160eeffc88a' -model_hash = 'cee7e9e8d80931a9f983795d192319e5b5701cc9c06964244f26712f286d62d8' +source_hash = '150e1592487a8d40a78880ec17157378715177d455479111663ee6a08d4a20e4' +model_hash = '61f6dca360abb90ba341eccac5d81c761578194410b2c010a6761c3028b44dda' [crates.aws-sdk-sfn] category = 'AwsSdk' @@ -2429,14 +2429,14 @@ model_hash = 'eab0659c4890363f26af020432f7d7c661fd228f3baeef3a52d77f80a1c13287' [crates.aws-sdk-workspaces] category = 'AwsSdk' version = '1.65.0' -source_hash = '1a1c699e7a81e51aea263c12c1c08d1f5319c3d143d63e7878f2be3be0231fbb' -model_hash = '24917a713c824dc09fea59625f6f98e372b8f0ff6e44c8dbdf0b42223be047a3' +source_hash = '705b16664eb7a06fe522f6a0cc7050f1cef10a94082134a5810875b0a655e078' +model_hash = 'c31cdb5e4a3d046c132321cba431366628b2a149231d8a72abccaacb1c8588cb' [crates.aws-sdk-workspacesthinclient] category = 'AwsSdk' version = '1.55.0' -source_hash = 'a5e1c85e3cea7298217a8013423dfb8dadfc69a9b4d55e14495284640ed146da' -model_hash = 'b6d68be4c9197a9bd597738ba1bc80da3294c783070aa1a0a58ba7e504f9c212' +source_hash = 'ea161a6c4cccd32f707c87991367542a465c99b5c78cb45fbf8d537400a22937' +model_hash = 'db2cb0370b65d96a55e9fa9277a6b349317f603236f5b9f45a2f827940aed83e' [crates.aws-sdk-workspacesweb] category = 'AwsSdk'