Skip to main content

file_system_policies

Creates, updates, deletes, gets or lists a file_system_policies resource.

Overview

Namefile_system_policies
TypeResource
Idaws.s3files.file_system_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
file_system_idstringThe ID of the file system. (pattern: <code>(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}|fs-[0-9a-f]{17,40})</code>)
policystringThe JSON-formatted resource policy for the file system.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_file_system_policyselectfile_system_id, regionReturns the IAM resource policy of an S3 File System.
put_file_system_policyreplacefile_system_id, region, policyCreates or replaces the IAM resource policy for an S3 File System to control access permissions.
delete_file_system_policydeletefile_system_id, regionDeletes the IAM resource policy of an S3 File System.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
file_system_idstringThe ID or Amazon Resource Name (ARN) of the S3 File System whose resource policy to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the IAM resource policy of an S3 File System.

SELECT
file_system_id,
policy
FROM aws.s3files.file_system_policies
WHERE file_system_id = '{{ file_system_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates or replaces the IAM resource policy for an S3 File System to control access permissions.

REPLACE aws.s3files.file_system_policies
SET
policy = '{{ policy }}'
WHERE
file_system_id = '{{ file_system_id }}' --required
AND region = '{{ region }}' --required
AND policy = '{{ policy }}' --required;

DELETE examples

Deletes the IAM resource policy of an S3 File System.

DELETE FROM aws.s3files.file_system_policies
WHERE file_system_id = '{{ file_system_id }}' --required
AND region = '{{ region }}' --required
;