libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 S3 bucket in the same 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
Eq SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Read SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Show SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Generic SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Associated Types

type Rep SetStackPolicy :: Type -> Type #

NFData SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Methods

rnf :: SetStackPolicy -> () #

Hashable SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

AWSRequest SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Associated Types

type AWSResponse SetStackPolicy #

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

type Rep SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type Rep SetStackPolicy = D1 ('MetaData "SetStackPolicy" "Amazonka.CloudFormation.SetStackPolicy" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" '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))))
type AWSResponse SetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

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 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

Instances details
Eq SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Read SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Show SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Generic SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Associated Types

type Rep SetStackPolicyResponse :: Type -> Type #

NFData SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

Methods

rnf :: SetStackPolicyResponse -> () #

type Rep SetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.SetStackPolicy

type Rep SetStackPolicyResponse = D1 ('MetaData "SetStackPolicyResponse" "Amazonka.CloudFormation.SetStackPolicy" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" '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.