| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.ServerlessApplicationRepository.PutApplicationPolicy
Description
Puts the policy for the specified application.
Synopsis
- putApplicationPolicy :: Text -> PutApplicationPolicy
- data PutApplicationPolicy
- papStatements :: Lens' PutApplicationPolicy [ApplicationPolicyStatement]
- papApplicationId :: Lens' PutApplicationPolicy Text
- putApplicationPolicyResponse :: Int -> PutApplicationPolicyResponse
- data PutApplicationPolicyResponse
- paprsStatements :: Lens' PutApplicationPolicyResponse [ApplicationPolicyStatement]
- paprsResponseStatus :: Lens' PutApplicationPolicyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> PutApplicationPolicy |
Creates a value of PutApplicationPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
papStatements- Array of policy statements applied to the application.papApplicationId- The ID of the application to get.
data PutApplicationPolicy Source #
See: putApplicationPolicy smart constructor.
Instances
Request Lenses
papStatements :: Lens' PutApplicationPolicy [ApplicationPolicyStatement] Source #
Array of policy statements applied to the application.
papApplicationId :: Lens' PutApplicationPolicy Text Source #
The ID of the application to get.
Destructuring the Response
putApplicationPolicyResponse Source #
Arguments
| :: Int | |
| -> PutApplicationPolicyResponse |
Creates a value of PutApplicationPolicyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
paprsStatements- Array of policy statements applied to the application.paprsResponseStatus- -- | The response status code.
data PutApplicationPolicyResponse Source #
See: putApplicationPolicyResponse smart constructor.
Instances
Response Lenses
paprsStatements :: Lens' PutApplicationPolicyResponse [ApplicationPolicyStatement] Source #
Array of policy statements applied to the application.
paprsResponseStatus :: Lens' PutApplicationPolicyResponse Int Source #
- - | The response status code.