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 |
Amazonka.CloudFormation.SetStackPolicy
Description
Sets a stack policy for a specified stack.
Synopsis
- data SetStackPolicy = SetStackPolicy' {}
- newSetStackPolicy :: Text -> SetStackPolicy
- setStackPolicy_stackPolicyBody :: Lens' SetStackPolicy (Maybe Text)
- setStackPolicy_stackPolicyURL :: Lens' SetStackPolicy (Maybe Text)
- setStackPolicy_stackName :: Lens' SetStackPolicy Text
- data SetStackPolicyResponse = SetStackPolicyResponse' {
- newSetStackPolicyResponse :: SetStackPolicyResponse
Creating a Request
data SetStackPolicy Source #
The input for the SetStackPolicy action.
See: newSetStackPolicy
smart constructor.
Constructors
SetStackPolicy' | |
Fields
|
Instances
Arguments
:: Text | |
-> SetStackPolicy |
Create a value of SetStackPolicy
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:SetStackPolicy'
, setStackPolicy_stackPolicyBody
- Structure containing the stack policy body. For more information, go to
Prevent updates to stack resources
in the CloudFormation User Guide. You can specify either the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
$sel:stackPolicyURL:SetStackPolicy'
, setStackPolicy_stackPolicyURL
- Location of a file containing the stack policy. The URL must point to a
policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same
Amazon Web Services Region as the stack. You can specify either the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
SetStackPolicy
, setStackPolicy_stackName
- The name or unique stack ID that you want to associate a policy with.
Request Lenses
setStackPolicy_stackPolicyBody :: Lens' SetStackPolicy (Maybe Text) Source #
Structure containing the stack policy body. For more information, go to
Prevent updates to stack resources
in the CloudFormation User Guide. You can specify either the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
setStackPolicy_stackPolicyURL :: Lens' SetStackPolicy (Maybe Text) Source #
Location of a file containing the stack policy. The URL must point to a
policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same
Amazon Web Services Region as the stack. You can specify either the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
setStackPolicy_stackName :: Lens' SetStackPolicy Text Source #
The name or unique stack ID that you want to associate a policy with.
Destructuring the Response
data SetStackPolicyResponse Source #
See: newSetStackPolicyResponse
smart constructor.
Constructors
SetStackPolicyResponse' | |
Instances
newSetStackPolicyResponse :: SetStackPolicyResponse Source #
Create a value of SetStackPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.