Skip to main content
Glama

AWS S3 Control MCP Server

by qingyun-wu
main.py170 kB
# generated by fastapi-codegen: # filename: openapi.yaml # timestamp: 2025-06-27T05:06:10+00:00 import argparse import os from typing import * from typing import Optional, Union from autogen.mcp.mcp_proxy import MCPProxy from autogen.mcp.mcp_proxy.security import APIKeyHeader, BaseSecurity from fastapi import Header, Query from pydantic import conint, constr from models import ( BadRequestException, BucketAlreadyExists, BucketAlreadyOwnedByYou, CreateAccessPointForObjectLambdaResult, CreateAccessPointResult, CreateBucketResult, CreateJobResult, CreateMultiRegionAccessPointResult, DeleteJobTaggingResult, DeleteMultiRegionAccessPointResult, DeleteStorageLensConfigurationTaggingResult, DescribeJobResult, DescribeMultiRegionAccessPointOperationResult, GetAccessPointConfigurationForObjectLambdaResult, GetAccessPointForObjectLambdaResult, GetAccessPointPolicyForObjectLambdaResult, GetAccessPointPolicyResult, GetAccessPointPolicyStatusForObjectLambdaResult, GetAccessPointPolicyStatusResult, GetAccessPointResult, GetBucketLifecycleConfigurationResult, GetBucketPolicyResult, GetBucketReplicationResult, GetBucketResult, GetBucketTaggingResult, GetBucketVersioningResult, GetJobTaggingResult, GetMultiRegionAccessPointPolicyResult, GetMultiRegionAccessPointPolicyStatusResult, GetMultiRegionAccessPointResult, GetMultiRegionAccessPointRoutesResult, GetPublicAccessBlockOutput, GetStorageLensConfigurationResult, GetStorageLensConfigurationTaggingResult, IdempotencyException, InternalServiceException, InvalidNextTokenException, InvalidRequestException, JobStatuses, JobStatusException, ListAccessPointsForObjectLambdaResult, ListAccessPointsResult, ListJobsResult, ListMultiRegionAccessPointsResult, ListRegionalBucketsResult, ListStorageLensConfigurationsResult, NoSuchPublicAccessBlockConfiguration, NotFoundException, PutJobTaggingResult, PutMultiRegionAccessPointPolicyResult, PutStorageLensConfigurationTaggingResult, RequestedJobStatus, SubmitMultiRegionAccessPointRoutesResult, TooManyRequestsException, TooManyTagsException, UpdateJobPriorityResult, UpdateJobStatusResult, XAmzAcl, ) app = MCPProxy( contact={ 'email': 'mike.ralphson@gmail.com', 'name': 'Mike Ralphson', 'url': 'https://github.com/mermade/aws2openapi', 'x-twitter': 'PermittedSoc', }, description=' Amazon Web Services S3 Control provides access to Amazon S3 control plane actions. ', license={'name': 'Apache 2.0 License', 'url': 'http://www.apache.org/licenses/'}, termsOfService='https://aws.amazon.com/service-terms/', title='AWS S3 Control', version='2018-08-20', servers=[ { 'description': 'The AWS S3 Control multi-region endpoint', 'url': 'http://s3-control.{region}.amazonaws.com', 'variables': { 'region': { 'default': 'us-east-1', 'description': 'The AWS region', 'enum': [ 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'us-gov-west-1', 'us-gov-east-1', 'ca-central-1', 'eu-north-1', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-central-1', 'eu-south-1', 'af-south-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3', 'ap-southeast-1', 'ap-southeast-2', 'ap-east-1', 'ap-south-1', 'sa-east-1', 'me-south-1', ], } }, }, { 'description': 'The AWS S3 Control multi-region endpoint', 'url': 'https://s3-control.{region}.amazonaws.com', 'variables': { 'region': { 'default': 'us-east-1', 'description': 'The AWS region', 'enum': [ 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'us-gov-west-1', 'us-gov-east-1', 'ca-central-1', 'eu-north-1', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-central-1', 'eu-south-1', 'af-south-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3', 'ap-southeast-1', 'ap-southeast-2', 'ap-east-1', 'ap-south-1', 'sa-east-1', 'me-south-1', ], } }, }, { 'description': 'The AWS S3 Control endpoint for China (Beijing) and China (Ningxia)', 'url': 'http://s3-control.{region}.amazonaws.com.cn', 'variables': { 'region': { 'default': 'cn-north-1', 'description': 'The AWS region', 'enum': ['cn-north-1', 'cn-northwest-1'], } }, }, { 'description': 'The AWS S3 Control endpoint for China (Beijing) and China (Ningxia)', 'url': 'https://s3-control.{region}.amazonaws.com.cn', 'variables': { 'region': { 'default': 'cn-north-1', 'description': 'The AWS region', 'enum': ['cn-north-1', 'cn-northwest-1'], } }, }, ], ) @app.get( '/v20180820/accesspoint#x-amz-account-id', description=""" <p>Returns a list of the access points that are owned by the current account that's associated with the specified bucket. You can retrieve up to 1000 access points per call. If the specified bucket has more than 1,000 access points (or the number specified in <code>maxResults</code>, whichever is less), the response will include a continuation token that you can use to list the additional access points.</p> <p/> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html#API_control_GetAccessPoint_Examples">Examples</a> section.</p> <p>The following actions are related to <code>ListAccessPoints</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html">CreateAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPoint.html">DeleteAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html">GetAccessPoint</a> </p> </li> </ul> """, tags=['access_point_management', 'bucket_management', 'bucket_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def list_access_points( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), bucket: Optional[constr(min_length=3, max_length=255)] = None, next_token: Union[ Optional[constr(min_length=1, max_length=1024)], Optional[str], Optional[str], Optional[str], ] = Query(None, alias='nextToken'), max_results: Union[ Optional[conint(ge=0, le=1000)], Optional[str], Optional[str], Optional[str] ] = Query(None, alias='maxResults'), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/accesspoint/{name}#x-amz-account-id', description=""" <p>Deletes the specified access point.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPoint.html#API_control_DeleteAccessPoint_Examples">Examples</a> section.</p> <p>The following actions are related to <code>DeleteAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html">CreateAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html">GetAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPoints.html">ListAccessPoints</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_access_point( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspoint/{name}#x-amz-account-id', description=""" <p>Returns configuration information about the specified access point.</p> <p/> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html#API_control_GetAccessPoint_Examples">Examples</a> section.</p> <p>The following actions are related to <code>GetAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html">CreateAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPoint.html">DeleteAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPoints.html">ListAccessPoints</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'multi_region_access_point_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/accesspoint/{name}#x-amz-account-id', description=""" <p>Creates an access point and associates it with the specified bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">Managing Data Access with Amazon S3 Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p/> <note> <p>S3 on Outposts only supports VPC-style access points. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html"> Accessing Amazon S3 on Outposts using virtual private cloud (VPC) only access points</a> in the <i>Amazon S3 User Guide</i>.</p> </note> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html#API_control_CreateAccessPoint_Examples">Examples</a> section.</p> <p/> <p>The following actions are related to <code>CreateAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html">GetAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPoint.html">DeleteAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPoints.html">ListAccessPoints</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_lifecycle_management', 'bucket_policy_management', 'multi_region_access_point_management', 'bucket_replication_management', 'bucket_tagging_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def create_access_point( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/accesspoint/{name}/policy#x-amz-account-id', description=""" <p>Deletes the access point policy for the specified access point.</p> <p/> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicy.html#API_control_DeleteAccessPointPolicy_Examples">Examples</a> section.</p> <p>The following actions are related to <code>DeleteAccessPointPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicy.html">PutAccessPointPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicy.html">GetAccessPointPolicy</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_access_point_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspoint/{name}/policy#x-amz-account-id', description=""" <p>Returns the access point policy associated with the specified access point.</p> <p>The following actions are related to <code>GetAccessPointPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicy.html">PutAccessPointPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicy.html">DeleteAccessPointPolicy</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/accesspoint/{name}/policy#x-amz-account-id', description=""" <p>Associates an access policy with the specified access point. Each access point can have only one policy, so a request made to this API replaces any existing policy associated with the specified access point.</p> <p/> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicy.html#API_control_PutAccessPointPolicy_Examples">Examples</a> section.</p> <p>The following actions are related to <code>PutAccessPointPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicy.html">GetAccessPointPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicy.html">DeleteAccessPointPolicy</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def put_access_point_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspoint/{name}/policyStatus#x-amz-account-id', description=""" Indicates whether the specified access point currently has a policy that allows public access. For more information about public access through access points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">Managing Data Access with Amazon S3 access points</a> in the <i>Amazon S3 User Guide</i>. """, tags=['access_point_management', 'bucket_management', 'bucket_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point_policy_status( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspointforobjectlambda#x-amz-account-id', description=""" <p>Returns some or all (up to 1,000) access points associated with the Object Lambda Access Point per call. If there are more access points than what can be returned in one call, the response will include a continuation token that you can use to list the additional access points.</p> <p>The following actions are related to <code>ListAccessPointsForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html">CreateAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html">DeleteAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html">GetAccessPointForObjectLambda</a> </p> </li> </ul> """, tags=['access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def list_access_points_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), next_token: Union[ Optional[constr(min_length=1, max_length=1024)], Optional[str], Optional[str], Optional[str], ] = Query(None, alias='nextToken'), max_results: Union[ Optional[conint(ge=0, le=1000)], Optional[str], Optional[str], Optional[str] ] = Query(None, alias='maxResults'), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/accesspointforobjectlambda/{name}#x-amz-account-id', description=""" <p>Deletes the specified Object Lambda Access Point.</p> <p>The following actions are related to <code>DeleteAccessPointForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html">CreateAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html">GetAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html">ListAccessPointsForObjectLambda</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_access_point_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspointforobjectlambda/{name}#x-amz-account-id', description=""" <p>Returns configuration information about the specified Object Lambda Access Point</p> <p>The following actions are related to <code>GetAccessPointForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html">CreateAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html">DeleteAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html">ListAccessPointsForObjectLambda</a> </p> </li> </ul> """, tags=['access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/accesspointforobjectlambda/{name}#x-amz-account-id', description=""" <p>Creates an Object Lambda Access Point. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with Object Lambda Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>CreateAccessPointForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html">DeleteAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html">GetAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html">ListAccessPointsForObjectLambda</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_policy_management', 'job_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def create_access_point_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspointforobjectlambda/{name}/configuration#x-amz-account-id', description=""" <p>Returns configuration for an Object Lambda Access Point.</p> <p>The following actions are related to <code>GetAccessPointConfigurationForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointConfigurationForObjectLambda.html">PutAccessPointConfigurationForObjectLambda</a> </p> </li> </ul> """, tags=['access_point_management', 'bucket_management', 'bucket_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point_configuration_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/accesspointforobjectlambda/{name}/configuration#x-amz-account-id', description=""" <p>Replaces configuration for an Object Lambda Access Point.</p> <p>The following actions are related to <code>PutAccessPointConfigurationForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointConfigurationForObjectLambda.html">GetAccessPointConfigurationForObjectLambda</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_access_point_configuration_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/accesspointforobjectlambda/{name}/policy#x-amz-account-id', description=""" <p>Removes the resource policy for an Object Lambda Access Point.</p> <p>The following actions are related to <code>DeleteAccessPointPolicyForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicyForObjectLambda.html">GetAccessPointPolicyForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicyForObjectLambda.html">PutAccessPointPolicyForObjectLambda</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_access_point_policy_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspointforobjectlambda/{name}/policy#x-amz-account-id', description=""" <p>Returns the resource policy for an Object Lambda Access Point.</p> <p>The following actions are related to <code>GetAccessPointPolicyForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicyForObjectLambda.html">DeleteAccessPointPolicyForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicyForObjectLambda.html">PutAccessPointPolicyForObjectLambda</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'job_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point_policy_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/accesspointforobjectlambda/{name}/policy#x-amz-account-id', description=""" <p>Creates or replaces resource policy for an Object Lambda Access Point. For an example policy, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-create.html#olap-create-cli">Creating Object Lambda Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>PutAccessPointPolicyForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicyForObjectLambda.html">DeleteAccessPointPolicyForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicyForObjectLambda.html">GetAccessPointPolicyForObjectLambda</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def put_access_point_policy_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/accesspointforobjectlambda/{name}/policyStatus#x-amz-account-id', description=""" Returns the status of the resource policy associated with an Object Lambda Access Point. """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_access_point_policy_status_for_object_lambda( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr( pattern=r'^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$', min_length=3, max_length=45 ) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/v20180820/async-requests/mrap/create#x-amz-account-id', description=""" <p>Creates a Multi-Region Access Point and associates it with the specified buckets. For more information about creating Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html">Creating Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>This request is asynchronous, meaning that you might receive a response before the command has completed. When this request provides a response, it provides a token that you can use to monitor the status of the request with <code>DescribeMultiRegionAccessPointOperation</code>.</p> <p>The following actions are related to <code>CreateMultiRegionAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html">DeleteMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html">DescribeMultiRegionAccessPointOperation</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPoint.html">GetMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListMultiRegionAccessPoints.html">ListMultiRegionAccessPoints</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def create_multi_region_access_point( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/v20180820/async-requests/mrap/delete#x-amz-account-id', description=""" <p>Deletes a Multi-Region Access Point. This action does not delete the buckets associated with the Multi-Region Access Point, only the Multi-Region Access Point itself.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>This request is asynchronous, meaning that you might receive a response before the command has completed. When this request provides a response, it provides a token that you can use to monitor the status of the request with <code>DescribeMultiRegionAccessPointOperation</code>.</p> <p>The following actions are related to <code>DeleteMultiRegionAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html">CreateMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html">DescribeMultiRegionAccessPointOperation</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPoint.html">GetMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListMultiRegionAccessPoints.html">ListMultiRegionAccessPoints</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_multi_region_access_point( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/v20180820/async-requests/mrap/put-policy#x-amz-account-id', description=""" <p>Associates an access control policy with the specified Multi-Region Access Point. Each Multi-Region Access Point can have only one policy, so a request made to this action replaces any existing policy that is associated with the specified Multi-Region Access Point.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>PutMultiRegionAccessPointPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPointPolicy.html">GetMultiRegionAccessPointPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPointPolicyStatus.html">GetMultiRegionAccessPointPolicyStatus</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_multi_region_access_point_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/async-requests/mrap/{request_token}#x-amz-account-id', description=""" <p>Retrieves the status of an asynchronous request to manage a Multi-Region Access Point. For more information about managing Multi-Region Access Points and how asynchronous requests work, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>GetMultiRegionAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html">CreateMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html">DeleteMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPoint.html">GetMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListMultiRegionAccessPoints.html">ListMultiRegionAccessPoints</a> </p> </li> </ul> """, tags=['access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def describe_multi_region_access_point_operation( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), request_token: constr(pattern=r'arn:.+', min_length=1, max_length=1024) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket#x-amz-account-id', description=""" <p>Returns a list of all Outposts buckets in an Outpost that are owned by the authenticated sender of the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and <code>x-amz-outpost-id</code> in your request, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListRegionalBuckets.html#API_control_ListRegionalBuckets_Examples">Examples</a> section.</p> """, tags=[ 'access_point_management', 'access_point_policy_management', 'multi_region_access_point_management', 'bucket_management', 'bucket_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def list_regional_buckets( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), next_token: Union[ Optional[constr(min_length=1, max_length=1024)], Optional[str], Optional[str], Optional[str], ] = Query(None, alias='nextToken'), max_results: Union[ Optional[conint(ge=0, le=1000)], Optional[str], Optional[str], Optional[str] ] = Query(None, alias='maxResults'), x_amz_outpost_id: Optional[constr(min_length=1, max_length=64)] = Header( None, alias='x-amz-outpost-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/bucket/{name}', description=""" <note> <p>This action creates an Amazon S3 on Outposts bucket. To create an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">Create Bucket</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Creates a new Outposts bucket. By creating the bucket, you become the bucket owner. To create an Outposts bucket, you must have S3 on Outposts. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in <i>Amazon S3 User Guide</i>.</p> <p>Not every string is an acceptable bucket name. For information on bucket naming restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketRestrictions.html#bucketnamingrules">Working with Amazon S3 Buckets</a>.</p> <p>S3 on Outposts buckets support:</p> <ul> <li> <p>Tags</p> </li> <li> <p>LifecycleConfigurations for deleting expired objects</p> </li> </ul> <p>For a complete list of restrictions and Amazon S3 feature limitations on S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OnOutpostsRestrictionsLimitations.html"> Amazon S3 on Outposts Restrictions and Limitations</a>.</p> <p>For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and <code>x-amz-outpost-id</code> in your API request, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html#API_control_CreateBucket_Examples">Examples</a> section.</p> <p>The following actions are related to <code>CreateBucket</code> for Amazon S3 on Outposts:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucket.html">GetBucket</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucket.html">DeleteBucket</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html">CreateAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicy.html">PutAccessPointPolicy</a> </p> </li> </ul> """, tags=[ 'public_access_block_management', 'bucket_policy_management', 'bucket_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def create_bucket( x_amz_acl: Optional[XAmzAcl] = Header(None, alias='x-amz-acl'), name: constr(min_length=3, max_length=255) = ..., x_amz_grant_full_control: Optional[str] = Header( None, alias='x-amz-grant-full-control' ), x_amz_grant_read: Optional[str] = Header(None, alias='x-amz-grant-read'), x_amz_grant_read_acp: Optional[str] = Header(None, alias='x-amz-grant-read-acp'), x_amz_grant_write: Optional[str] = Header(None, alias='x-amz-grant-write'), x_amz_grant_write_acp: Optional[str] = Header(None, alias='x-amz-grant-write-acp'), x_amz_bucket_object_lock_enabled: Optional[bool] = Header( None, alias='x-amz-bucket-object-lock-enabled' ), x_amz_outpost_id: Optional[constr(min_length=1, max_length=64)] = Header( None, alias='x-amz-outpost-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/bucket/{name}#x-amz-account-id', description=""" <note> <p>This action deletes an Amazon S3 on Outposts bucket. To delete an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html">DeleteBucket</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Deletes the Amazon S3 on Outposts bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in <i>Amazon S3 User Guide</i>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucket.html#API_control_DeleteBucket_Examples">Examples</a> section.</p> <p class="title"> <b>Related Resources</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html">CreateBucket</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucket.html">GetBucket</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html">DeleteObject</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_bucket( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket/{name}#x-amz-account-id', description=""" <p>Gets an Amazon S3 on Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html"> Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>If you are using an identity other than the root user of the Amazon Web Services account that owns the Outposts bucket, the calling identity must have the <code>s3-outposts:GetBucket</code> permissions on the specified Outposts bucket and belong to the Outposts bucket owner's account in order to use this action. Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. </p> <p> If you don't have <code>s3-outposts:GetBucket</code> permissions or you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a <code>403 Access Denied</code> error.</p> <p>The following actions are related to <code>GetBucket</code> for Amazon S3 on Outposts:</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucket.html#API_control_GetBucket_Examples">Examples</a> section.</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html">CreateBucket</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucket.html">DeleteBucket</a> </p> </li> </ul> """, tags=['access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_bucket( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/bucket/{name}/lifecycleconfiguration#x-amz-account-id', description=""" <note> <p>This action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. To delete an S3 bucket's lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html">DeleteBucketLifecycle</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Deletes the lifecycle configuration from the specified Outposts bucket. Amazon S3 on Outposts removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 on Outposts no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in <i>Amazon S3 User Guide</i>.</p> <p>To use this action, you must have permission to perform the <code>s3-outposts:DeleteLifecycleConfiguration</code> action. By default, the bucket owner has this permission and the Outposts bucket owner can grant this permission to others.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketLifecycleConfiguration.html#API_control_DeleteBucketLifecycleConfiguration_Examples">Examples</a> section.</p> <p>For more information about object expiration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions">Elements to Describe Lifecycle Actions</a>.</p> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html">GetBucketLifecycleConfiguration</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_bucket_lifecycle_configuration( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket/{name}/lifecycleconfiguration#x-amz-account-id', description=""" <note> <p>This action gets an Amazon S3 on Outposts bucket's lifecycle configuration. To get an S3 bucket's lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html">GetBucketLifecycleConfiguration</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Returns the lifecycle configuration information set on the Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> and for information about lifecycle configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html"> Object Lifecycle Management</a> in <i>Amazon S3 User Guide</i>.</p> <p>To use this action, you must have permission to perform the <code>s3-outposts:GetLifecycleConfiguration</code> action. The Outposts bucket owner has this permission, by default. The bucket owner can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3 Resources</a>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html#API_control_GetBucketLifecycleConfiguration_Examples">Examples</a> section.</p> <p> <code>GetBucketLifecycleConfiguration</code> has the following special error:</p> <ul> <li> <p>Error code: <code>NoSuchLifecycleConfiguration</code> </p> <ul> <li> <p>Description: The lifecycle configuration does not exist.</p> </li> <li> <p>HTTP Status Code: 404 Not Found</p> </li> <li> <p>SOAP Fault Code Prefix: Client</p> </li> </ul> </li> </ul> <p>The following actions are related to <code>GetBucketLifecycleConfiguration</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketLifecycleConfiguration.html">DeleteBucketLifecycleConfiguration</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_bucket_lifecycle_configuration( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/bucket/{name}/lifecycleconfiguration#x-amz-account-id', description=""" <note> <p>This action puts a lifecycle configuration to an Amazon S3 on Outposts bucket. To put a lifecycle configuration to an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Creates a new lifecycle configuration for the S3 on Outposts bucket or replaces an existing lifecycle configuration. Outposts buckets only support lifecycle configurations that delete/expire objects after a certain period of time and abort incomplete multipart uploads.</p> <p/> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketLifecycleConfiguration.html#API_control_PutBucketLifecycleConfiguration_Examples">Examples</a> section.</p> <p>The following actions are related to <code>PutBucketLifecycleConfiguration</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html">GetBucketLifecycleConfiguration</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketLifecycleConfiguration.html">DeleteBucketLifecycleConfiguration</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'multi_region_access_point_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_bucket_lifecycle_configuration( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/bucket/{name}/policy#x-amz-account-id', description=""" <note> <p>This action deletes an Amazon S3 on Outposts bucket policy. To delete an S3 bucket policy, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html">DeleteBucketPolicy</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>This implementation of the DELETE action uses the policy subresource to delete the policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the root user of the Amazon Web Services account that owns the bucket, the calling identity must have the <code>s3-outposts:DeleteBucketPolicy</code> permissions on the specified Outposts bucket and belong to the bucket owner's account to use this action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in <i>Amazon S3 User Guide</i>.</p> <p>If you don't have <code>DeleteBucketPolicy</code> permissions, Amazon S3 returns a <code>403 Access Denied</code> error. If you have the correct permissions, but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a <code>405 Method Not Allowed</code> error. </p> <important> <p>As a security precaution, the root user of the Amazon Web Services account that owns a bucket can always use this action, even if the policy explicitly denies the root user the ability to perform this action.</p> </important> <p>For more information about bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User Policies</a>. </p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketPolicy.html#API_control_DeleteBucketPolicy_Examples">Examples</a> section.</p> <p>The following actions are related to <code>DeleteBucketPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketPolicy.html">GetBucketPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketPolicy.html">PutBucketPolicy</a> </p> </li> </ul> """, tags=['access_point_management', 'bucket_management', 'bucket_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_bucket_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket/{name}/policy#x-amz-account-id', description=""" <note> <p>This action gets a bucket policy for an Amazon S3 on Outposts bucket. To get a policy for an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketPolicy.html">GetBucketPolicy</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Returns the policy of a specified Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>If you are using an identity other than the root user of the Amazon Web Services account that owns the bucket, the calling identity must have the <code>GetBucketPolicy</code> permissions on the specified bucket and belong to the bucket owner's account in order to use this action.</p> <p>Only users from Outposts bucket owner account with the right permissions can perform actions on an Outposts bucket. If you don't have <code>s3-outposts:GetBucketPolicy</code> permissions or you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a <code>403 Access Denied</code> error.</p> <important> <p>As a security precaution, the root user of the Amazon Web Services account that owns a bucket can always use this action, even if the policy explicitly denies the root user the ability to perform this action.</p> </important> <p>For more information about bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User Policies</a>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketPolicy.html#API_control_GetBucketPolicy_Examples">Examples</a> section.</p> <p>The following actions are related to <code>GetBucketPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketPolicy.html">PutBucketPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketPolicy.html">DeleteBucketPolicy</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_bucket_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/bucket/{name}/policy#x-amz-account-id', description=""" <note> <p>This action puts a bucket policy to an Amazon S3 on Outposts bucket. To put a policy on an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketPolicy.html">PutBucketPolicy</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Applies an Amazon S3 bucket policy to an Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>If you are using an identity other than the root user of the Amazon Web Services account that owns the Outposts bucket, the calling identity must have the <code>PutBucketPolicy</code> permissions on the specified Outposts bucket and belong to the bucket owner's account in order to use this action.</p> <p>If you don't have <code>PutBucketPolicy</code> permissions, Amazon S3 returns a <code>403 Access Denied</code> error. If you have the correct permissions, but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a <code>405 Method Not Allowed</code> error.</p> <important> <p> As a security precaution, the root user of the Amazon Web Services account that owns a bucket can always use this action, even if the policy explicitly denies the root user the ability to perform this action. </p> </important> <p>For more information about bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html">Using Bucket Policies and User Policies</a>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketPolicy.html#API_control_PutBucketPolicy_Examples">Examples</a> section.</p> <p>The following actions are related to <code>PutBucketPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketPolicy.html">GetBucketPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketPolicy.html">DeleteBucketPolicy</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_bucket_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x_amz_confirm_remove_self_bucket_access: Optional[bool] = Header( None, alias='x-amz-confirm-remove-self-bucket-access' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/bucket/{name}/replication#x-amz-account-id', description=""" <note> <p>This operation deletes an Amazon S3 on Outposts bucket's replication configuration. To delete an S3 bucket's replication configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketReplication.html">DeleteBucketReplication</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Deletes the replication configuration from the specified S3 on Outposts bucket.</p> <p>To use this operation, you must have permissions to perform the <code>s3-outposts:PutReplicationConfiguration</code> action. The Outposts bucket owner has this permission by default and can grant it to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsIAM.html">Setting up IAM with S3 on Outposts</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsBucketPolicy.html">Managing access to S3 on Outposts buckets</a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>It can take a while to propagate <code>PUT</code> or <code>DELETE</code> requests for a replication configuration to all S3 on Outposts systems. Therefore, the replication configuration that's returned by a <code>GET</code> request soon after a <code>PUT</code> or <code>DELETE</code> request might return a more recent result than what's on the Outpost. If an Outpost is offline, the delay in updating the replication configuration on that Outpost can be significant.</p> </note> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketReplication.html#API_control_DeleteBucketReplication_Examples">Examples</a> section.</p> <p>For information about S3 replication on Outposts configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html">Replicating objects for S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following operations are related to <code>DeleteBucketReplication</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketReplication.html">PutBucketReplication</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketReplication.html">GetBucketReplication</a> </p> </li> </ul> """, tags=['access_point_management', 'bucket_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_bucket_replication( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket/{name}/replication#x-amz-account-id', description=""" <note> <p>This operation gets an Amazon S3 on Outposts bucket's replication configuration. To get an S3 bucket's replication configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketReplication.html">GetBucketReplication</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Returns the replication configuration of an S3 on Outposts bucket. For more information about S3 on Outposts, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>. For information about S3 replication on Outposts configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html">Replicating objects for S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>It can take a while to propagate <code>PUT</code> or <code>DELETE</code> requests for a replication configuration to all S3 on Outposts systems. Therefore, the replication configuration that's returned by a <code>GET</code> request soon after a <code>PUT</code> or <code>DELETE</code> request might return a more recent result than what's on the Outpost. If an Outpost is offline, the delay in updating the replication configuration on that Outpost can be significant.</p> </note> <p>This action requires permissions for the <code>s3-outposts:GetReplicationConfiguration</code> action. The Outposts bucket owner has this permission by default and can grant it to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsIAM.html">Setting up IAM with S3 on Outposts</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsBucketPolicy.html">Managing access to S3 on Outposts bucket</a> in the <i>Amazon S3 User Guide</i>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketReplication.html#API_control_GetBucketReplication_Examples">Examples</a> section.</p> <p>If you include the <code>Filter</code> element in a replication configuration, you must also include the <code>DeleteMarkerReplication</code>, <code>Status</code>, and <code>Priority</code> elements. The response also returns those elements.</p> <p>For information about S3 on Outposts replication failure reasons, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/outposts-replication-eventbridge.html#outposts-replication-failure-codes">Replication failure reasons</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following operations are related to <code>GetBucketReplication</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketReplication.html">PutBucketReplication</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketReplication.html">DeleteBucketReplication</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_bucket_replication( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/bucket/{name}/replication#x-amz-account-id', description=""" <note> <p>This action creates an Amazon S3 on Outposts bucket's replication configuration. To create an S3 bucket's replication configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketReplication.html">PutBucketReplication</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Creates a replication configuration or replaces an existing one. For information about S3 replication on Outposts configuration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html">Replicating objects for S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>It can take a while to propagate <code>PUT</code> or <code>DELETE</code> requests for a replication configuration to all S3 on Outposts systems. Therefore, the replication configuration that's returned by a <code>GET</code> request soon after a <code>PUT</code> or <code>DELETE</code> request might return a more recent result than what's on the Outpost. If an Outpost is offline, the delay in updating the replication configuration on that Outpost can be significant.</p> </note> <p>Specify the replication configuration in the request body. In the replication configuration, you provide the following information:</p> <ul> <li> <p>The name of the destination bucket or buckets where you want S3 on Outposts to replicate objects</p> </li> <li> <p>The Identity and Access Management (IAM) role that S3 on Outposts can assume to replicate objects on your behalf</p> </li> <li> <p>Other relevant information, such as replication rules</p> </li> </ul> <p>A replication configuration must include at least one rule and can contain a maximum of 100. Each rule identifies a subset of objects to replicate by filtering the objects in the source Outposts bucket. To choose additional subsets of objects to replicate, add a rule for each subset.</p> <p>To specify a subset of the objects in the source Outposts bucket to apply a replication rule to, add the <code>Filter</code> element as a child of the <code>Rule</code> element. You can filter objects based on an object key prefix, one or more object tags, or both. When you add the <code>Filter</code> element in the configuration, you must also add the following elements: <code>DeleteMarkerReplication</code>, <code>Status</code>, and <code>Priority</code>.</p> <p>Using <code>PutBucketReplication</code> on Outposts requires that both the source and destination buckets must have versioning enabled. For information about enabling versioning on a bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsManagingVersioning.html">Managing S3 Versioning for your S3 on Outposts bucket</a>.</p> <p>For information about S3 on Outposts replication failure reasons, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/outposts-replication-eventbridge.html#outposts-replication-failure-codes">Replication failure reasons</a> in the <i>Amazon S3 User Guide</i>.</p> <p> <b>Handling Replication of Encrypted Objects</b> </p> <p>Outposts buckets are encrypted at all times. All the objects in the source Outposts bucket are encrypted and can be replicated. Also, all the replicas in the destination Outposts bucket are encrypted with the same encryption key as the objects in the source Outposts bucket.</p> <p> <b>Permissions</b> </p> <p>To create a <code>PutBucketReplication</code> request, you must have <code>s3-outposts:PutReplicationConfiguration</code> permissions for the bucket. The Outposts bucket owner has this permission by default and can grant it to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsIAM.html">Setting up IAM with S3 on Outposts</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsBucketPolicy.html">Managing access to S3 on Outposts buckets</a>. </p> <note> <p>To perform this operation, the user or role must also have the <code>iam:CreateRole</code> and <code>iam:PassRole</code> permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html">Granting a user permissions to pass a role to an Amazon Web Services service</a>.</p> </note> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketReplication.html#API_control_PutBucketReplication_Examples">Examples</a> section.</p> <p>The following operations are related to <code>PutBucketReplication</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketReplication.html">GetBucketReplication</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketReplication.html">DeleteBucketReplication</a> </p> </li> </ul> """, tags=['access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def put_bucket_replication( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/bucket/{name}/tagging#x-amz-account-id', description=""" <note> <p>This action deletes an Amazon S3 on Outposts bucket's tags. To delete an S3 bucket tags, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketTagging.html">DeleteBucketTagging</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Deletes the tags from the Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in <i>Amazon S3 User Guide</i>.</p> <p>To use this action, you must have permission to perform the <code>PutBucketTagging</code> action. By default, the bucket owner has this permission and can grant this permission to others. </p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketTagging.html#API_control_DeleteBucketTagging_Examples">Examples</a> section.</p> <p>The following actions are related to <code>DeleteBucketTagging</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketTagging.html">GetBucketTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketTagging.html">PutBucketTagging</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_bucket_tagging( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket/{name}/tagging#x-amz-account-id', description=""" <note> <p>This action gets an Amazon S3 on Outposts bucket's tags. To get an S3 bucket tags, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketTagging.html">GetBucketTagging</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Returns the tag set associated with the Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>To use this action, you must have permission to perform the <code>GetBucketTagging</code> action. By default, the bucket owner has this permission and can grant this permission to others.</p> <p> <code>GetBucketTagging</code> has the following special error:</p> <ul> <li> <p>Error code: <code>NoSuchTagSetError</code> </p> <ul> <li> <p>Description: There is no tag set associated with the bucket.</p> </li> </ul> </li> </ul> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketTagging.html#API_control_GetBucketTagging_Examples">Examples</a> section.</p> <p>The following actions are related to <code>GetBucketTagging</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketTagging.html">PutBucketTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketTagging.html">DeleteBucketTagging</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_bucket_tagging( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/bucket/{name}/tagging#x-amz-account-id', description=""" <note> <p>This action puts tags on an Amazon S3 on Outposts bucket. To put tags on an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketTagging.html">PutBucketTagging</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Sets the tags for an S3 on Outposts bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">Using Amazon S3 on Outposts</a> in the <i>Amazon S3 User Guide</i>.</p> <p>Use tags to organize your Amazon Web Services bill to reflect your own cost structure. To do this, sign up to get your Amazon Web Services account bill with tag key values included. Then, to see the cost of combined resources, organize your billing information according to resources with the same tag key values. For example, you can tag several resources with a specific application name, and then organize your billing information to see the total cost of that application across several services. For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Cost allocation and tagging</a>.</p> <note> <p>Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites the old value. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/CostAllocTagging.html"> Using cost allocation in Amazon S3 bucket tags</a>.</p> </note> <p>To use this action, you must have permissions to perform the <code>s3-outposts:PutBucketTagging</code> action. The Outposts bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources"> Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing access permissions to your Amazon S3 resources</a>.</p> <p> <code>PutBucketTagging</code> has the following special errors:</p> <ul> <li> <p>Error code: <code>InvalidTagError</code> </p> <ul> <li> <p>Description: The tag provided was not a valid tag. This error can occur if the tag did not pass input validation. For information about tag restrictions, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html"> User-Defined Tag Restrictions</a> and <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/aws-tag-restrictions.html"> Amazon Web Services-Generated Cost Allocation Tag Restrictions</a>.</p> </li> </ul> </li> <li> <p>Error code: <code>MalformedXMLError</code> </p> <ul> <li> <p>Description: The XML provided does not match the schema.</p> </li> </ul> </li> <li> <p>Error code: <code>OperationAbortedError </code> </p> <ul> <li> <p>Description: A conflicting conditional action is currently in progress against this resource. Try again.</p> </li> </ul> </li> <li> <p>Error code: <code>InternalError</code> </p> <ul> <li> <p>Description: The service was unable to apply the provided tag to the bucket.</p> </li> </ul> </li> </ul> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketTagging.html#API_control_PutBucketTagging_Examples">Examples</a> section.</p> <p>The following actions are related to <code>PutBucketTagging</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketTagging.html">GetBucketTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteBucketTagging.html">DeleteBucketTagging</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_bucket_tagging( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/bucket/{name}/versioning#x-amz-account-id', description=""" <note> <p>This operation returns the versioning state for S3 on Outposts buckets only. To return the versioning state for an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html">GetBucketVersioning</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Returns the versioning state for an S3 on Outposts bucket. With S3 Versioning, you can save multiple distinct copies of your objects and recover from unintended user actions and application failures.</p> <p>If you've never set versioning on your bucket, it has no versioning state. In that case, the <code>GetBucketVersioning</code> request does not return a versioning state value.</p> <p>For more information about versioning, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html">Versioning</a> in the <i>Amazon S3 User Guide</i>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketVersioning.html#API_control_GetBucketVersioning_Examples">Examples</a> section.</p> <p>The following operations are related to <code>GetBucketVersioning</code> for S3 on Outposts.</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketVersioning.html">PutBucketVersioning</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html">GetBucketLifecycleConfiguration</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'multi_region_access_point_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def get_bucket_versioning( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/bucket/{name}/versioning#x-amz-account-id', description=""" <note> <p>This operation sets the versioning state for S3 on Outposts buckets only. To set the versioning state for an S3 bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketVersioning.html">PutBucketVersioning</a> in the <i>Amazon S3 API Reference</i>. </p> </note> <p>Sets the versioning state for an S3 on Outposts bucket. With S3 Versioning, you can save multiple distinct copies of your objects and recover from unintended user actions and application failures.</p> <p>You can set the versioning state to one of the following:</p> <ul> <li> <p> <b>Enabled</b> - Enables versioning for the objects in the bucket. All objects added to the bucket receive a unique version ID.</p> </li> <li> <p> <b>Suspended</b> - Suspends versioning for the objects in the bucket. All objects added to the bucket receive the version ID <code>null</code>.</p> </li> </ul> <p>If you've never set versioning on your bucket, it has no versioning state. In that case, a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketVersioning.html"> GetBucketVersioning</a> request does not return a versioning state value.</p> <p>When you enable S3 Versioning, for each object in your bucket, you have a current version and zero or more noncurrent versions. You can configure your bucket S3 Lifecycle rules to expire noncurrent versions after a specified time period. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsLifecycleManaging.html"> Creating and managing a lifecycle configuration for your S3 on Outposts bucket</a> in the <i>Amazon S3 User Guide</i>.</p> <p>If you have an object expiration lifecycle configuration in your non-versioned bucket and you want to maintain the same permanent delete behavior when you enable versioning, you must add a noncurrent expiration policy. The noncurrent expiration lifecycle configuration will manage the deletes of the noncurrent object versions in the version-enabled bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html">Versioning</a> in the <i>Amazon S3 User Guide</i>.</p> <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketVersioning.html#API_control_PutBucketVersioning_Examples">Examples</a> section.</p> <p>The following operations are related to <code>PutBucketVersioning</code> for S3 on Outposts.</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketVersioning.html">GetBucketVersioning</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketLifecycleConfiguration.html">PutBucketLifecycleConfiguration</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetBucketLifecycleConfiguration.html">GetBucketLifecycleConfiguration</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_bucket_versioning( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(min_length=3, max_length=255) = ..., x_amz_mfa: Optional[str] = Header(None, alias='x-amz-mfa'), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/configuration/publicAccessBlock#x-amz-account-id', description=""" <p>Removes the <code>PublicAccessBlock</code> configuration for an Amazon Web Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html"> Using Amazon S3 block public access</a>.</p> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetPublicAccessBlock.html">GetPublicAccessBlock</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutPublicAccessBlock.html">PutPublicAccessBlock</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_public_access_block( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/configuration/publicAccessBlock#x-amz-account-id', description=""" <p>Retrieves the <code>PublicAccessBlock</code> configuration for an Amazon Web Services account. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html"> Using Amazon S3 block public access</a>.</p> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeletePublicAccessBlock.html">DeletePublicAccessBlock</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutPublicAccessBlock.html">PutPublicAccessBlock</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_public_access_block( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/configuration/publicAccessBlock#x-amz-account-id', description=""" <p>Creates or modifies the <code>PublicAccessBlock</code> configuration for an Amazon Web Services account. For this operation, users must have the <code>s3:PutAccountPublicAccessBlock</code> permission. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html"> Using Amazon S3 block public access</a>.</p> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetPublicAccessBlock.html">GetPublicAccessBlock</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeletePublicAccessBlock.html">DeletePublicAccessBlock</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', 'public_access_block_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_public_access_block( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/jobs#x-amz-account-id', description=""" <p>Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for the Amazon Web Services account making the request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html">S3 Batch Operations</a> in the <i>Amazon S3 User Guide</i>.</p> <p>Related actions include:</p> <p/> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html">DescribeJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobPriority.html">UpdateJobPriority</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html">UpdateJobStatus</a> </p> </li> </ul> """, tags=['job_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def list_jobs( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), job_statuses: Optional[JobStatuses] = Query(None, alias='jobStatuses'), next_token: Union[ Optional[ constr( pattern=r'^[A-Za-z0-9\+\:\/\=\?\#-_]+$', min_length=1, max_length=1024 ) ], Optional[str], Optional[str], Optional[str], ] = Query(None, alias='nextToken'), max_results: Union[ Optional[conint(ge=0, le=1000)], Optional[str], Optional[str], Optional[str] ] = Query(None, alias='maxResults'), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/v20180820/jobs#x-amz-account-id', description=""" <p>You can use S3 Batch Operations to perform large-scale batch actions on Amazon S3 objects. Batch Operations can run a single action on lists of Amazon S3 objects that you specify. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html">S3 Batch Operations</a> in the <i>Amazon S3 User Guide</i>.</p> <p>This action creates a S3 Batch Operations job.</p> <p/> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html">DescribeJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html">ListJobs</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobPriority.html">UpdateJobPriority</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html">UpdateJobStatus</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_JobOperation.html">JobOperation</a> </p> </li> </ul> """, tags=['job_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def create_job( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/jobs/{id}#x-amz-account-id', description=""" <p>Retrieves the configuration parameters and status for a Batch Operations job. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html">S3 Batch Operations</a> in the <i>Amazon S3 User Guide</i>.</p> <p/> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html">ListJobs</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobPriority.html">UpdateJobPriority</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html">UpdateJobStatus</a> </p> </li> </ul> """, tags=['access_point_management', 'bucket_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def describe_job( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), id: constr(pattern=r'[a-zA-Z0-9\-\_]+', min_length=5, max_length=36) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/v20180820/jobs/{id}/priority#x-amz-account-id&priority', description=""" <p>Updates an existing S3 Batch Operations job's priority. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html">S3 Batch Operations</a> in the <i>Amazon S3 User Guide</i>.</p> <p/> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html">ListJobs</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html">DescribeJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html">UpdateJobStatus</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def update_job_priority( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), id: constr(pattern=r'[a-zA-Z0-9\-\_]+', min_length=5, max_length=36) = ..., priority: conint(ge=0, le=2147483647) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/v20180820/jobs/{id}/status#x-amz-account-id&requestedJobStatus', description=""" <p>Updates the status for the specified job. Use this action to confirm that you want to run a job or to cancel an existing job. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html">S3 Batch Operations</a> in the <i>Amazon S3 User Guide</i>.</p> <p/> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html">ListJobs</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html">DescribeJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html">UpdateJobStatus</a> </p> </li> </ul> """, tags=['job_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def update_job_status( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), id: constr(pattern=r'[a-zA-Z0-9\-\_]+', min_length=5, max_length=36) = ..., requested_job_status: RequestedJobStatus = Query(..., alias='requestedJobStatus'), status_update_reason: Optional[constr(min_length=1, max_length=256)] = Query( None, alias='statusUpdateReason' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/jobs/{id}/tagging#x-amz-account-id', description=""" <p>Removes the entire tag set from the specified S3 Batch Operations job. To use the <code>DeleteJobTagging</code> operation, you must have permission to perform the <code>s3:DeleteJobTagging</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags">Controlling access and labeling jobs using tags</a> in the <i>Amazon S3 User Guide</i>.</p> <p/> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetJobTagging.html">GetJobTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutJobTagging.html">PutJobTagging</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_job_tagging( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), id: constr(pattern=r'[a-zA-Z0-9\-\_]+', min_length=5, max_length=36) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/jobs/{id}/tagging#x-amz-account-id', description=""" <p>Returns the tags on an S3 Batch Operations job. To use the <code>GetJobTagging</code> operation, you must have permission to perform the <code>s3:GetJobTagging</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags">Controlling access and labeling jobs using tags</a> in the <i>Amazon S3 User Guide</i>.</p> <p/> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutJobTagging.html">PutJobTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteJobTagging.html">DeleteJobTagging</a> </p> </li> </ul> """, tags=['access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_job_tagging( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), id: constr(pattern=r'[a-zA-Z0-9\-\_]+', min_length=5, max_length=36) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/jobs/{id}/tagging#x-amz-account-id', description=""" <p>Sets the supplied tag-set on an S3 Batch Operations job.</p> <p>A tag is a key-value pair. You can associate S3 Batch Operations tags with any job by sending a PUT request against the tagging subresource that is associated with the job. To modify the existing tag set, you can either replace the existing tag set entirely, or make changes within the existing tag set by retrieving the existing tag set using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetJobTagging.html">GetJobTagging</a>, modify that tag set, and use this action to replace the tag set with the one you modified. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-managing-jobs.html#batch-ops-job-tags">Controlling access and labeling jobs using tags</a> in the <i>Amazon S3 User Guide</i>. </p> <p/> <note> <ul> <li> <p>If you send this request with an empty tag set, Amazon S3 deletes the existing tag set on the Batch Operations job. If you use this method, you are charged for a Tier 1 Request (PUT). For more information, see <a href="http://aws.amazon.com/s3/pricing/">Amazon S3 pricing</a>.</p> </li> <li> <p>For deleting existing tags for your Batch Operations job, a <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteJobTagging.html">DeleteJobTagging</a> request is preferred because it achieves the same result without incurring charges.</p> </li> <li> <p>A few things to consider about using tags:</p> <ul> <li> <p>Amazon S3 limits the maximum number of tags to 50 tags per job.</p> </li> <li> <p>You can associate up to 50 tags with a job as long as they have unique tag keys.</p> </li> <li> <p>A tag key can be up to 128 Unicode characters in length, and tag values can be up to 256 Unicode characters in length.</p> </li> <li> <p>The key and values are case sensitive.</p> </li> <li> <p>For tagging-related restrictions related to characters and encodings, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html">User-Defined Tag Restrictions</a> in the <i>Billing and Cost Management User Guide</i>.</p> </li> </ul> </li> </ul> </note> <p/> <p>To use the <code>PutJobTagging</code> operation, you must have permission to perform the <code>s3:PutJobTagging</code> action.</p> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html">CreateJob</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetJobTagging.html">GetJobTagging</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteJobTagging.html">DeleteJobTagging</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def put_job_tagging( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), id: constr(pattern=r'[a-zA-Z0-9\-\_]+', min_length=5, max_length=36) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/mrap/instances#x-amz-account-id', description=""" <p>Returns a list of the Multi-Region Access Points currently associated with the specified Amazon Web Services account. Each call can return up to 100 Multi-Region Access Points, the maximum number of Multi-Region Access Points that can be associated with a single account.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>ListMultiRegionAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html">CreateMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html">DeleteMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html">DescribeMultiRegionAccessPointOperation</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPoint.html">GetMultiRegionAccessPoint</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'regional_bucket_listing', ], security=[ APIKeyHeader(name="Authorization"), ], ) def list_multi_region_access_points( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), next_token: Union[ Optional[constr(min_length=1, max_length=1024)], Optional[str], Optional[str], Optional[str], ] = Query(None, alias='nextToken'), max_results: Union[ Optional[conint(ge=0, le=1000)], Optional[str], Optional[str], Optional[str] ] = Query(None, alias='maxResults'), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/mrap/instances/{mrap}/routes#x-amz-account-id', description=""" <p>Returns the routing configuration for a Multi-Region Access Point, indicating which Regions are active or passive.</p> <p>To obtain routing control changes and failover requests, use the Amazon S3 failover control infrastructure endpoints in these five Amazon Web Services Regions:</p> <ul> <li> <p> <code>us-east-1</code> </p> </li> <li> <p> <code>us-west-2</code> </p> </li> <li> <p> <code>ap-southeast-2</code> </p> </li> <li> <p> <code>ap-northeast-1</code> </p> </li> <li> <p> <code>eu-west-1</code> </p> </li> </ul> <note> <p>Your Amazon S3 bucket does not need to be in these five Regions.</p> </note> """, tags=[ 'multi_region_access_point_management', 'access_point_management', 'access_point_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def get_multi_region_access_point_routes( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), mrap: constr(pattern=r'^[a-zA-Z0-9\:.-]{3,200}$', max_length=200) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.patch( '/v20180820/mrap/instances/{mrap}/routes#x-amz-account-id', description=""" <p>Submits an updated route configuration for a Multi-Region Access Point. This API operation updates the routing status for the specified Regions from active to passive, or from passive to active. A value of <code>0</code> indicates a passive status, which means that traffic won't be routed to the specified Region. A value of <code>100</code> indicates an active status, which means that traffic will be routed to the specified Region. At least one Region must be active at all times.</p> <p>When the routing configuration is changed, any in-progress operations (uploads, copies, deletes, and so on) to formerly active Regions will continue to run to their final completion state (success or failure). The routing configurations of any Regions that aren’t specified remain unchanged.</p> <note> <p>Updated routing configurations might not be immediately applied. It can take up to 2 minutes for your changes to take effect.</p> </note> <p>To submit routing control changes and failover requests, use the Amazon S3 failover control infrastructure endpoints in these five Amazon Web Services Regions:</p> <ul> <li> <p> <code>us-east-1</code> </p> </li> <li> <p> <code>us-west-2</code> </p> </li> <li> <p> <code>ap-southeast-2</code> </p> </li> <li> <p> <code>ap-northeast-1</code> </p> </li> <li> <p> <code>eu-west-1</code> </p> </li> </ul> <note> <p>Your Amazon S3 bucket does not need to be in these five Regions.</p> </note> """, tags=['access_point_management', 'multi_region_access_point_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def submit_multi_region_access_point_routes( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), mrap: constr(pattern=r'^[a-zA-Z0-9\:.-]{3,200}$', max_length=200) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/mrap/instances/{name}#x-amz-account-id', description=""" <p>Returns configuration information about the specified Multi-Region Access Point.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>GetMultiRegionAccessPoint</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html">CreateMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html">DeleteMultiRegionAccessPoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html">DescribeMultiRegionAccessPointOperation</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListMultiRegionAccessPoints.html">ListMultiRegionAccessPoints</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_multi_region_access_point( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(pattern=r'^[a-z0-9][-a-z0-9]{1,48}[a-z0-9]$', max_length=50) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/mrap/instances/{name}/policy#x-amz-account-id', description=""" <p>Returns the access control policy of the specified Multi-Region Access Point.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>GetMultiRegionAccessPointPolicy</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPointPolicyStatus.html">GetMultiRegionAccessPointPolicyStatus</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutMultiRegionAccessPointPolicy.html">PutMultiRegionAccessPointPolicy</a> </p> </li> </ul> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_multi_region_access_point_policy( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(pattern=r'^[a-z0-9][-a-z0-9]{1,48}[a-z0-9]$', max_length=50) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/mrap/instances/{name}/policystatus#x-amz-account-id', description=""" <p>Indicates whether the specified Multi-Region Access Point has an access control policy that allows public access.</p> <p>This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManagingMultiRegionAccessPoints.html">Managing Multi-Region Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>GetMultiRegionAccessPointPolicyStatus</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetMultiRegionAccessPointPolicy.html">GetMultiRegionAccessPointPolicy</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutMultiRegionAccessPointPolicy.html">PutMultiRegionAccessPointPolicy</a> </p> </li> </ul> """, tags=[ 'access_point_management', 'access_point_policy_management', 'bucket_management', 'bucket_policy_management', ], security=[ APIKeyHeader(name="Authorization"), ], ) def get_multi_region_access_point_policy_status( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), name: constr(pattern=r'^[a-z0-9][-a-z0-9]{1,48}[a-z0-9]$', max_length=50) = ..., x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/storagelens#x-amz-account-id', description=""" <p>Gets a list of Amazon S3 Storage Lens configurations. For more information about S3 Storage Lens, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Assessing your storage activity and usage with Amazon S3 Storage Lens </a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:ListStorageLensConfigurations</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['access_point_management', 'access_point_policy_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def list_storage_lens_configurations( x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), next_token: Union[ Optional[str], Optional[str], Optional[str], Optional[str] ] = Query(None, alias='nextToken'), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/storagelens/{storagelensid}#x-amz-account-id', description=""" <p>Deletes the Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Assessing your storage activity and usage with Amazon S3 Storage Lens </a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:DeleteStorageLensConfiguration</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['storage_lens_configuration_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_storage_lens_configuration( storagelensid: constr(pattern=r'[a-zA-Z0-9\-\_\.]+', min_length=1, max_length=64), x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/storagelens/{storagelensid}#x-amz-account-id', description=""" <p>Gets the Amazon S3 Storage Lens configuration. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Assessing your storage activity and usage with Amazon S3 Storage Lens </a> in the <i>Amazon S3 User Guide</i>. For a complete list of S3 Storage Lens metrics, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html">S3 Storage Lens metrics glossary</a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:GetStorageLensConfiguration</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['storage_lens_configuration_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_storage_lens_configuration( storagelensid: constr(pattern=r'[a-zA-Z0-9\-\_\.]+', min_length=1, max_length=64), x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/storagelens/{storagelensid}#x-amz-account-id', description=""" <p>Puts an Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Working with Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>. For a complete list of S3 Storage Lens metrics, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html">S3 Storage Lens metrics glossary</a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:PutStorageLensConfiguration</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['storage_lens_configuration_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def put_storage_lens_configuration( storagelensid: constr(pattern=r'[a-zA-Z0-9\-\_\.]+', min_length=1, max_length=64), x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/v20180820/storagelens/{storagelensid}/tagging#x-amz-account-id', description=""" <p>Deletes the Amazon S3 Storage Lens configuration tags. For more information about S3 Storage Lens, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Assessing your storage activity and usage with Amazon S3 Storage Lens </a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:DeleteStorageLensConfigurationTagging</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['storage_lens_configuration_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def delete_storage_lens_configuration_tagging( storagelensid: constr(pattern=r'[a-zA-Z0-9\-\_\.]+', min_length=1, max_length=64), x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/v20180820/storagelens/{storagelensid}/tagging#x-amz-account-id', description=""" <p>Gets the tags of Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Assessing your storage activity and usage with Amazon S3 Storage Lens </a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:GetStorageLensConfigurationTagging</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['storage_lens_configuration_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def get_storage_lens_configuration_tagging( storagelensid: constr(pattern=r'[a-zA-Z0-9\-\_\.]+', min_length=1, max_length=64), x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/v20180820/storagelens/{storagelensid}/tagging#x-amz-account-id', description=""" <p>Put or replace tags on an existing Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens.html">Assessing your storage activity and usage with Amazon S3 Storage Lens </a> in the <i>Amazon S3 User Guide</i>.</p> <note> <p>To use this action, you must have permission to perform the <code>s3:PutStorageLensConfigurationTagging</code> action. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage_lens_iam_permissions.html">Setting permissions to use Amazon S3 Storage Lens</a> in the <i>Amazon S3 User Guide</i>.</p> </note> """, tags=['storage_lens_configuration_management'], security=[ APIKeyHeader(name="Authorization"), ], ) def put_storage_lens_configuration_tagging( storagelensid: constr(pattern=r'[a-zA-Z0-9\-\_\.]+', min_length=1, max_length=64), x_amz_account_id: constr(pattern=r'^\d{12}$', max_length=64) = Header( ..., alias='x-amz-account-id' ), x__amz__content__sha256: Optional[str] = Header(None, alias='X-Amz-Content-Sha256'), x__amz__date: Optional[str] = Header(None, alias='X-Amz-Date'), x__amz__algorithm: Optional[str] = Header(None, alias='X-Amz-Algorithm'), x__amz__credential: Optional[str] = Header(None, alias='X-Amz-Credential'), x__amz__security__token: Optional[str] = Header(None, alias='X-Amz-Security-Token'), x__amz__signature: Optional[str] = Header(None, alias='X-Amz-Signature'), x__amz__signed_headers: Optional[str] = Header(None, alias='X-Amz-SignedHeaders'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") if __name__ == "__main__": parser = argparse.ArgumentParser(description="MCP Server") parser.add_argument( "transport", choices=["stdio", "sse"], help="Transport mode (stdio or sse)" ) args = parser.parse_args() if "CONFIG_PATH" in os.environ: config_path = os.environ["CONFIG_PATH"] app.load_configuration(config_path) if "CONFIG" in os.environ: config = os.environ["CONFIG"] app.load_configuration_from_string(config) if "SECURITY" in os.environ: security_params = BaseSecurity.parse_security_parameters_from_env( os.environ, ) app.set_security_params(security_params) app.mcp.run(transport=args.transport)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qingyun-wu/aws-s3-control'

If you have feedback or need assistance with the MCP directory API, please join our Discord server