| Copyright | (c) 2013-2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CloudFormation.GetStackPolicy
Description
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
See: AWS API Reference for GetStackPolicy.
Creating a Request
Arguments
| :: Text | |
| -> GetStackPolicy |
Creates a value of GetStackPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetStackPolicy Source
The input for the GetStackPolicy action.
See: getStackPolicy smart constructor.
Instances
Request Lenses
gspStackName :: Lens' GetStackPolicy Text Source
The name or unique stack ID that is associated with the stack whose policy you want to get.
Destructuring the Response
Arguments
| :: Int | |
| -> GetStackPolicyResponse |
Creates a value of GetStackPolicyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetStackPolicyResponse Source
The output for the GetStackPolicy action.
See: getStackPolicyResponse smart constructor.
Response Lenses
gsprsStackPolicyBody :: Lens' GetStackPolicyResponse (Maybe Text) Source
Structure containing the stack policy body. (For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide.)
gsprsStatus :: Lens' GetStackPolicyResponse Int Source
The response status code.