Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Applies an Amazon EFS FileSystemPolicy
to an Amazon EFS file system. A
file system policy is an IAM resource-based policy and can contain
multiple policy statements. A file system always has exactly one file
system policy, which can be the default policy or an explicit policy set
or updated using this API operation. EFS file system policies have a
20,000 character limit. When an explicit policy is set, it overrides the
default policy. For more information about the default file system
policy, see
Default EFS File System Policy.
EFS file system policies have a 20,000 character limit.
This operation requires permissions for the
elasticfilesystem:PutFileSystemPolicy
action.
Synopsis
- data PutFileSystemPolicy = PutFileSystemPolicy' {}
- newPutFileSystemPolicy :: Text -> Text -> PutFileSystemPolicy
- putFileSystemPolicy_bypassPolicyLockoutSafetyCheck :: Lens' PutFileSystemPolicy (Maybe Bool)
- putFileSystemPolicy_fileSystemId :: Lens' PutFileSystemPolicy Text
- putFileSystemPolicy_policy :: Lens' PutFileSystemPolicy Text
- data FileSystemPolicyDescription = FileSystemPolicyDescription' {}
- newFileSystemPolicyDescription :: FileSystemPolicyDescription
- fileSystemPolicyDescription_fileSystemId :: Lens' FileSystemPolicyDescription (Maybe Text)
- fileSystemPolicyDescription_policy :: Lens' FileSystemPolicyDescription (Maybe Text)
Creating a Request
data PutFileSystemPolicy Source #
See: newPutFileSystemPolicy
smart constructor.
PutFileSystemPolicy' | |
|
Instances
newPutFileSystemPolicy Source #
:: Text | |
-> Text | |
-> PutFileSystemPolicy |
Create a value of PutFileSystemPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bypassPolicyLockoutSafetyCheck:PutFileSystemPolicy'
, putFileSystemPolicy_bypassPolicyLockoutSafetyCheck
- (Optional) A flag to indicate whether to bypass the FileSystemPolicy
lockout safety check. The policy lockout safety check determines whether
the policy in the request will prevent the principal making the request
will be locked out from making future PutFileSystemPolicy
requests on
the file system. Set BypassPolicyLockoutSafetyCheck
to True
only
when you intend to prevent the principal that is making the request from
making a subsequent PutFileSystemPolicy
request on the file system.
The default value is False.
$sel:fileSystemId:PutFileSystemPolicy'
, putFileSystemPolicy_fileSystemId
- The ID of the EFS file system that you want to create or update the
FileSystemPolicy
for.
$sel:policy:PutFileSystemPolicy'
, putFileSystemPolicy_policy
- The FileSystemPolicy
that you're creating. Accepts a JSON formatted
policy definition. EFS file system policies have a 20,000 character
limit. To find out more about the elements that make up a file system
policy, see
EFS Resource-based Policies.
Request Lenses
putFileSystemPolicy_bypassPolicyLockoutSafetyCheck :: Lens' PutFileSystemPolicy (Maybe Bool) Source #
(Optional) A flag to indicate whether to bypass the FileSystemPolicy
lockout safety check. The policy lockout safety check determines whether
the policy in the request will prevent the principal making the request
will be locked out from making future PutFileSystemPolicy
requests on
the file system. Set BypassPolicyLockoutSafetyCheck
to True
only
when you intend to prevent the principal that is making the request from
making a subsequent PutFileSystemPolicy
request on the file system.
The default value is False.
putFileSystemPolicy_fileSystemId :: Lens' PutFileSystemPolicy Text Source #
The ID of the EFS file system that you want to create or update the
FileSystemPolicy
for.
putFileSystemPolicy_policy :: Lens' PutFileSystemPolicy Text Source #
The FileSystemPolicy
that you're creating. Accepts a JSON formatted
policy definition. EFS file system policies have a 20,000 character
limit. To find out more about the elements that make up a file system
policy, see
EFS Resource-based Policies.
Destructuring the Response
data FileSystemPolicyDescription Source #
See: newFileSystemPolicyDescription
smart constructor.
Instances
newFileSystemPolicyDescription :: FileSystemPolicyDescription Source #
Create a value of FileSystemPolicyDescription
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fileSystemId:FileSystemPolicyDescription'
, fileSystemPolicyDescription_fileSystemId
- Specifies the EFS file system to which the FileSystemPolicy
applies.
$sel:policy:FileSystemPolicyDescription'
, fileSystemPolicyDescription_policy
- The JSON formatted FileSystemPolicy
for the EFS file system.
Response Lenses
fileSystemPolicyDescription_fileSystemId :: Lens' FileSystemPolicyDescription (Maybe Text) Source #
Specifies the EFS file system to which the FileSystemPolicy
applies.
fileSystemPolicyDescription_policy :: Lens' FileSystemPolicyDescription (Maybe Text) Source #
The JSON formatted FileSystemPolicy
for the EFS file system.