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 |
Sets the permission policy for an application. For the list of actions supported for this operation, see Application Permissions .
Synopsis
- data PutApplicationPolicy = PutApplicationPolicy' {}
- newPutApplicationPolicy :: Text -> PutApplicationPolicy
- putApplicationPolicy_applicationId :: Lens' PutApplicationPolicy Text
- putApplicationPolicy_statements :: Lens' PutApplicationPolicy [ApplicationPolicyStatement]
- data PutApplicationPolicyResponse = PutApplicationPolicyResponse' {}
- newPutApplicationPolicyResponse :: Int -> PutApplicationPolicyResponse
- putApplicationPolicyResponse_statements :: Lens' PutApplicationPolicyResponse (Maybe [ApplicationPolicyStatement])
- putApplicationPolicyResponse_httpStatus :: Lens' PutApplicationPolicyResponse Int
Creating a Request
data PutApplicationPolicy Source #
See: newPutApplicationPolicy
smart constructor.
PutApplicationPolicy' | |
|
Instances
newPutApplicationPolicy Source #
Create a value of PutApplicationPolicy
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:PutApplicationPolicy'
, putApplicationPolicy_applicationId
- The Amazon Resource Name (ARN) of the application.
$sel:statements:PutApplicationPolicy'
, putApplicationPolicy_statements
- An array of policy statements applied to the application.
Request Lenses
putApplicationPolicy_applicationId :: Lens' PutApplicationPolicy Text Source #
The Amazon Resource Name (ARN) of the application.
putApplicationPolicy_statements :: Lens' PutApplicationPolicy [ApplicationPolicyStatement] Source #
An array of policy statements applied to the application.
Destructuring the Response
data PutApplicationPolicyResponse Source #
See: newPutApplicationPolicyResponse
smart constructor.
PutApplicationPolicyResponse' | |
|
Instances
Eq PutApplicationPolicyResponse Source # | |
Read PutApplicationPolicyResponse Source # | |
Show PutApplicationPolicyResponse Source # | |
Generic PutApplicationPolicyResponse Source # | |
NFData PutApplicationPolicyResponse Source # | |
type Rep PutApplicationPolicyResponse Source # | |
Defined in Amazonka.ServerlessApplicationRepository.PutApplicationPolicy type Rep PutApplicationPolicyResponse = D1 ('MetaData "PutApplicationPolicyResponse" "Amazonka.ServerlessApplicationRepository.PutApplicationPolicy" "libZSservicesZSamazonka-serverlessrepoZSamazonka-serverlessrepo" 'False) (C1 ('MetaCons "PutApplicationPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "statements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ApplicationPolicyStatement])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutApplicationPolicyResponse Source #
Create a value of PutApplicationPolicyResponse
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:PutApplicationPolicy'
, putApplicationPolicyResponse_statements
- An array of policy statements applied to the application.
$sel:httpStatus:PutApplicationPolicyResponse'
, putApplicationPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putApplicationPolicyResponse_statements :: Lens' PutApplicationPolicyResponse (Maybe [ApplicationPolicyStatement]) Source #
An array of policy statements applied to the application.
putApplicationPolicyResponse_httpStatus :: Lens' PutApplicationPolicyResponse Int Source #
The response's http status code.