Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
Synopsis
- data GetStackPolicy = GetStackPolicy' {}
- newGetStackPolicy :: Text -> GetStackPolicy
- getStackPolicy_stackName :: Lens' GetStackPolicy Text
- data GetStackPolicyResponse = GetStackPolicyResponse' {}
- newGetStackPolicyResponse :: Int -> GetStackPolicyResponse
- getStackPolicyResponse_stackPolicyBody :: Lens' GetStackPolicyResponse (Maybe Text)
- getStackPolicyResponse_httpStatus :: Lens' GetStackPolicyResponse Int
Creating a Request
data GetStackPolicy Source #
The input for the GetStackPolicy action.
See: newGetStackPolicy
smart constructor.
Instances
Create a value of GetStackPolicy
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:
GetStackPolicy
, getStackPolicy_stackName
- The name or unique stack ID that's associated with the stack whose
policy you want to get.
Request Lenses
getStackPolicy_stackName :: Lens' GetStackPolicy Text Source #
The name or unique stack ID that's associated with the stack whose policy you want to get.
Destructuring the Response
data GetStackPolicyResponse Source #
The output for the GetStackPolicy action.
See: newGetStackPolicyResponse
smart constructor.
GetStackPolicyResponse' | |
|
Instances
newGetStackPolicyResponse Source #
Create a value of GetStackPolicyResponse
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:stackPolicyBody:GetStackPolicyResponse'
, getStackPolicyResponse_stackPolicyBody
- Structure containing the stack policy body. (For more information, go to
Prevent Updates to Stack Resources
in the CloudFormation User Guide.)
$sel:httpStatus:GetStackPolicyResponse'
, getStackPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getStackPolicyResponse_stackPolicyBody :: Lens' GetStackPolicyResponse (Maybe Text) Source #
Structure containing the stack policy body. (For more information, go to Prevent Updates to Stack Resources in the CloudFormation User Guide.)
getStackPolicyResponse_httpStatus :: Lens' GetStackPolicyResponse Int Source #
The response's http status code.