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 |
Retrieves the policy for the application.
Synopsis
- data GetApplicationPolicy = GetApplicationPolicy' {}
- newGetApplicationPolicy :: Text -> GetApplicationPolicy
- getApplicationPolicy_applicationId :: Lens' GetApplicationPolicy Text
- data GetApplicationPolicyResponse = GetApplicationPolicyResponse' {}
- newGetApplicationPolicyResponse :: Int -> GetApplicationPolicyResponse
- getApplicationPolicyResponse_statements :: Lens' GetApplicationPolicyResponse (Maybe [ApplicationPolicyStatement])
- getApplicationPolicyResponse_httpStatus :: Lens' GetApplicationPolicyResponse Int
Creating a Request
data GetApplicationPolicy Source #
See: newGetApplicationPolicy
smart constructor.
GetApplicationPolicy' | |
|
Instances
newGetApplicationPolicy Source #
Create a value of GetApplicationPolicy
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:applicationId:GetApplicationPolicy'
, getApplicationPolicy_applicationId
- The Amazon Resource Name (ARN) of the application.
Request Lenses
getApplicationPolicy_applicationId :: Lens' GetApplicationPolicy Text Source #
The Amazon Resource Name (ARN) of the application.
Destructuring the Response
data GetApplicationPolicyResponse Source #
See: newGetApplicationPolicyResponse
smart constructor.
GetApplicationPolicyResponse' | |
|
Instances
Eq GetApplicationPolicyResponse Source # | |
Read GetApplicationPolicyResponse Source # | |
Show GetApplicationPolicyResponse Source # | |
Generic GetApplicationPolicyResponse Source # | |
NFData GetApplicationPolicyResponse Source # | |
type Rep GetApplicationPolicyResponse Source # | |
Defined in Amazonka.ServerlessApplicationRepository.GetApplicationPolicy type Rep GetApplicationPolicyResponse = D1 ('MetaData "GetApplicationPolicyResponse" "Amazonka.ServerlessApplicationRepository.GetApplicationPolicy" "libZSservicesZSamazonka-serverlessrepoZSamazonka-serverlessrepo" 'False) (C1 ('MetaCons "GetApplicationPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "statements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ApplicationPolicyStatement])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetApplicationPolicyResponse Source #
Create a value of GetApplicationPolicyResponse
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:statements:GetApplicationPolicyResponse'
, getApplicationPolicyResponse_statements
- An array of policy statements applied to the application.
$sel:httpStatus:GetApplicationPolicyResponse'
, getApplicationPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getApplicationPolicyResponse_statements :: Lens' GetApplicationPolicyResponse (Maybe [ApplicationPolicyStatement]) Source #
An array of policy statements applied to the application.
getApplicationPolicyResponse_httpStatus :: Lens' GetApplicationPolicyResponse Int Source #
The response's http status code.