amazonka-cloudformation-2.0: Amazon CloudFormation SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudFormation.SetStackPolicy

Description

Sets a stack policy for a specified stack.

Synopsis

Creating a Request

data SetStackPolicy Source #

The input for the SetStackPolicy action.

See: newSetStackPolicy smart constructor.

Constructors

SetStackPolicy' 

Fields

  • stackPolicyBody :: Maybe Text

    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.

  • stackPolicyURL :: Maybe Text

    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.

  • stackName :: Text

    The name or unique stack ID that you want to associate a policy with.

Instances

Instances details
ToHeaders SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

ToPath SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

ToQuery SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

AWSRequest SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Associated Types

type AWSResponse SetStackPolicy #

Generic SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Associated Types

type Rep SetStackPolicy :: Type -> Type #

Read SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Show SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

NFData SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Methods

rnf :: SetStackPolicy -> () #

Eq SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Hashable SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type AWSResponse SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type Rep SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type Rep SetStackPolicy = D1 ('MetaData "SetStackPolicy" "Amazonka.CloudFormation.SetStackPolicy" "amazonka-cloudformation-2.0-2g2oPzedi5AcwbDRlNZfB" 'False) (C1 ('MetaCons "SetStackPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stackPolicyBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "stackPolicyURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newSetStackPolicy Source #

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.

Instances

Instances details
Generic SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Associated Types

type Rep SetStackPolicyResponse :: Type -> Type #

Read SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Show SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

NFData SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Methods

rnf :: SetStackPolicyResponse -> () #

Eq SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type Rep SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type Rep SetStackPolicyResponse = D1 ('MetaData "SetStackPolicyResponse" "Amazonka.CloudFormation.SetStackPolicy" "amazonka-cloudformation-2.0-2g2oPzedi5AcwbDRlNZfB" 'False) (C1 ('MetaCons "SetStackPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetStackPolicyResponse :: SetStackPolicyResponse Source #

Create a value of SetStackPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.