AmplifyBackend.Client.
create_backend_storage
(**kwargs)¶Creates a backend storage resource.
See also: AWS API Documentation
Request Syntax
response = client.create_backend_storage(
AppId='string',
BackendEnvironmentName='string',
ResourceConfig={
'BucketName': 'string',
'Permissions': {
'Authenticated': [
'READ'|'CREATE_AND_UPDATE'|'DELETE',
],
'UnAuthenticated': [
'READ'|'CREATE_AND_UPDATE'|'DELETE',
]
},
'ServiceName': 'S3'
},
ResourceName='string'
)
[REQUIRED]
The app ID.
[REQUIRED]
The name of the backend environment.
[REQUIRED]
The resource configuration for creating backend storage.
The name of the S3 bucket.
The authorization configuration for the storage S3 bucket.
Lists all authenticated user read, write, and delete permissions for your S3 bucket.
Lists all unauthenticated user read, write, and delete permissions for your S3 bucket.
The name of the storage service.
[REQUIRED]
The name of the storage resource.
dict
Response Syntax
{
'AppId': 'string',
'BackendEnvironmentName': 'string',
'JobId': 'string',
'Status': 'string'
}
Response Structure
(dict) --
200 response
AppId (string) --
The app ID.
BackendEnvironmentName (string) --
The name of the backend environment.
JobId (string) --
The ID for the job.
Status (string) --
The current status of the request.
Exceptions
AmplifyBackend.Client.exceptions.NotFoundException
AmplifyBackend.Client.exceptions.GatewayTimeoutException
AmplifyBackend.Client.exceptions.TooManyRequestsException
AmplifyBackend.Client.exceptions.BadRequestException