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 |
Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
Synopsis
- data RemoveLayerVersionPermission = RemoveLayerVersionPermission' {
- revisionId :: Maybe Text
- layerName :: Text
- versionNumber :: Integer
- statementId :: Text
- newRemoveLayerVersionPermission :: Text -> Integer -> Text -> RemoveLayerVersionPermission
- removeLayerVersionPermission_revisionId :: Lens' RemoveLayerVersionPermission (Maybe Text)
- removeLayerVersionPermission_layerName :: Lens' RemoveLayerVersionPermission Text
- removeLayerVersionPermission_versionNumber :: Lens' RemoveLayerVersionPermission Integer
- removeLayerVersionPermission_statementId :: Lens' RemoveLayerVersionPermission Text
- data RemoveLayerVersionPermissionResponse = RemoveLayerVersionPermissionResponse' {
- newRemoveLayerVersionPermissionResponse :: RemoveLayerVersionPermissionResponse
Creating a Request
data RemoveLayerVersionPermission Source #
See: newRemoveLayerVersionPermission
smart constructor.
RemoveLayerVersionPermission' | |
|
Instances
newRemoveLayerVersionPermission Source #
:: Text | |
-> Integer | |
-> Text | |
-> RemoveLayerVersionPermission |
Create a value of RemoveLayerVersionPermission
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:revisionId:RemoveLayerVersionPermission'
, removeLayerVersionPermission_revisionId
- Only update the policy if the revision ID matches the ID specified. Use
this option to avoid modifying a policy that has changed since you last
read it.
$sel:layerName:RemoveLayerVersionPermission'
, removeLayerVersionPermission_layerName
- The name or Amazon Resource Name (ARN) of the layer.
$sel:versionNumber:RemoveLayerVersionPermission'
, removeLayerVersionPermission_versionNumber
- The version number.
$sel:statementId:RemoveLayerVersionPermission'
, removeLayerVersionPermission_statementId
- The identifier that was specified when the statement was added.
Request Lenses
removeLayerVersionPermission_revisionId :: Lens' RemoveLayerVersionPermission (Maybe Text) Source #
Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
removeLayerVersionPermission_layerName :: Lens' RemoveLayerVersionPermission Text Source #
The name or Amazon Resource Name (ARN) of the layer.
removeLayerVersionPermission_versionNumber :: Lens' RemoveLayerVersionPermission Integer Source #
The version number.
removeLayerVersionPermission_statementId :: Lens' RemoveLayerVersionPermission Text Source #
The identifier that was specified when the statement was added.
Destructuring the Response
data RemoveLayerVersionPermissionResponse Source #
See: newRemoveLayerVersionPermissionResponse
smart constructor.
Instances
newRemoveLayerVersionPermissionResponse :: RemoveLayerVersionPermissionResponse Source #
Create a value of RemoveLayerVersionPermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.