S3Files / Client / put_file_system_policy
put_file_system_policy¶
- S3Files.Client.put_file_system_policy(**kwargs)¶
Creates or replaces the IAM resource policy for an S3 File System to control access permissions.
See also: AWS API Documentation
Request Syntax
response = client.put_file_system_policy( fileSystemId='string', policy='string' )
- Parameters:
fileSystemId (string) –
[REQUIRED]
The ID or Amazon Resource Name (ARN) of the S3 File System to apply the resource policy to.
policy (string) –
[REQUIRED]
The JSON-formatted resource policy to apply to the file system. The policy defines the permissions for accessing the file system. The policy must be a valid JSON document that follows IAM policy syntax.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
S3Files.Client.exceptions.InternalServerExceptionS3Files.Client.exceptions.ResourceNotFoundExceptionS3Files.Client.exceptions.ThrottlingExceptionS3Files.Client.exceptions.ValidationException