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 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.
SetStackPolicy' | |
|
Instances
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 S3 bucket in the same Region
as the stack. You can specify either the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
$sel:stackName: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 S3 bucket in the same 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.
Instances
Eq SetStackPolicyResponse Source # | |
Defined in Amazonka.CloudFormation.SetStackPolicy | |
Read SetStackPolicyResponse Source # | |
Show SetStackPolicyResponse Source # | |
Defined in Amazonka.CloudFormation.SetStackPolicy showsPrec :: Int -> SetStackPolicyResponse -> ShowS # show :: SetStackPolicyResponse -> String # showList :: [SetStackPolicyResponse] -> ShowS # | |
Generic SetStackPolicyResponse Source # | |
Defined in Amazonka.CloudFormation.SetStackPolicy type Rep SetStackPolicyResponse :: Type -> Type # | |
NFData SetStackPolicyResponse Source # | |
Defined in Amazonka.CloudFormation.SetStackPolicy rnf :: SetStackPolicyResponse -> () # | |
type Rep SetStackPolicyResponse Source # | |
Defined in Amazonka.CloudFormation.SetStackPolicy |
newSetStackPolicyResponse :: SetStackPolicyResponse Source #
Create a value of SetStackPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.