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 |
Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
Synopsis
- data GetLayerVersionPolicy = GetLayerVersionPolicy' {}
- newGetLayerVersionPolicy :: Text -> Integer -> GetLayerVersionPolicy
- getLayerVersionPolicy_layerName :: Lens' GetLayerVersionPolicy Text
- getLayerVersionPolicy_versionNumber :: Lens' GetLayerVersionPolicy Integer
- data GetLayerVersionPolicyResponse = GetLayerVersionPolicyResponse' {
- policy :: Maybe Text
- revisionId :: Maybe Text
- httpStatus :: Int
- newGetLayerVersionPolicyResponse :: Int -> GetLayerVersionPolicyResponse
- getLayerVersionPolicyResponse_policy :: Lens' GetLayerVersionPolicyResponse (Maybe Text)
- getLayerVersionPolicyResponse_revisionId :: Lens' GetLayerVersionPolicyResponse (Maybe Text)
- getLayerVersionPolicyResponse_httpStatus :: Lens' GetLayerVersionPolicyResponse Int
Creating a Request
data GetLayerVersionPolicy Source #
See: newGetLayerVersionPolicy
smart constructor.
GetLayerVersionPolicy' | |
|
Instances
newGetLayerVersionPolicy Source #
:: Text | |
-> Integer | |
-> GetLayerVersionPolicy |
Create a value of GetLayerVersionPolicy
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:layerName:GetLayerVersionPolicy'
, getLayerVersionPolicy_layerName
- The name or Amazon Resource Name (ARN) of the layer.
$sel:versionNumber:GetLayerVersionPolicy'
, getLayerVersionPolicy_versionNumber
- The version number.
Request Lenses
getLayerVersionPolicy_layerName :: Lens' GetLayerVersionPolicy Text Source #
The name or Amazon Resource Name (ARN) of the layer.
getLayerVersionPolicy_versionNumber :: Lens' GetLayerVersionPolicy Integer Source #
The version number.
Destructuring the Response
data GetLayerVersionPolicyResponse Source #
See: newGetLayerVersionPolicyResponse
smart constructor.
GetLayerVersionPolicyResponse' | |
|
Instances
newGetLayerVersionPolicyResponse Source #
Create a value of GetLayerVersionPolicyResponse
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:policy:GetLayerVersionPolicyResponse'
, getLayerVersionPolicyResponse_policy
- The policy document.
$sel:revisionId:GetLayerVersionPolicyResponse'
, getLayerVersionPolicyResponse_revisionId
- A unique identifier for the current revision of the policy.
$sel:httpStatus:GetLayerVersionPolicyResponse'
, getLayerVersionPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getLayerVersionPolicyResponse_policy :: Lens' GetLayerVersionPolicyResponse (Maybe Text) Source #
The policy document.
getLayerVersionPolicyResponse_revisionId :: Lens' GetLayerVersionPolicyResponse (Maybe Text) Source #
A unique identifier for the current revision of the policy.
getLayerVersionPolicyResponse_httpStatus :: Lens' GetLayerVersionPolicyResponse Int Source #
The response's http status code.