| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.EFS.PutFileSystemPolicy
Description
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.
Constructors
| PutFileSystemPolicy' | |
Fields
| |
Instances
newPutFileSystemPolicy Source #
Arguments
| :: 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 boolean that specifies whether or not to bypass the
FileSystemPolicy lockout safety check. The lockout safety check
determines whether the policy in the request will lock out, or prevent,
the IAM principal that is making the request from making future
PutFileSystemPolicy requests on this file system. Set
BypassPolicyLockoutSafetyCheck to True only when you intend to
prevent the IAM principal that is making the request from making
subsequent PutFileSystemPolicy requests on this file system. The
default value is False.
PutFileSystemPolicy, putFileSystemPolicy_fileSystemId - The ID of the EFS file system that you want to create or update the
FileSystemPolicy for.
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 boolean that specifies whether or not to bypass the
FileSystemPolicy lockout safety check. The lockout safety check
determines whether the policy in the request will lock out, or prevent,
the IAM principal that is making the request from making future
PutFileSystemPolicy requests on this file system. Set
BypassPolicyLockoutSafetyCheck to True only when you intend to
prevent the IAM principal that is making the request from making
subsequent PutFileSystemPolicy requests on this 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.
Constructors
| FileSystemPolicyDescription' | |
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.