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 |
Amazonka.ServerlessApplicationRepository.GetApplicationPolicy
Description
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.
Constructors
GetApplicationPolicy' | |
Fields
|
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.
Constructors
GetApplicationPolicyResponse' | |
Fields
|
Instances
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.