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

Description

Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

Synopsis

Creating a Request

data GetStackPolicy Source #

The input for the GetStackPolicy action.

See: newGetStackPolicy smart constructor.

Constructors

GetStackPolicy' 

Fields

  • stackName :: Text

    The name or unique stack ID that's associated with the stack whose policy you want to get.

Instances

Instances details
ToHeaders GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

ToPath GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

ToQuery GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

AWSRequest GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Associated Types

type AWSResponse GetStackPolicy #

Generic GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Associated Types

type Rep GetStackPolicy :: Type -> Type #

Read GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Show GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

NFData GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Methods

rnf :: GetStackPolicy -> () #

Eq GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Hashable GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

type AWSResponse GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

type Rep GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

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

newGetStackPolicy Source #

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.

Constructors

GetStackPolicyResponse' 

Fields

Instances

Instances details
Generic GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Associated Types

type Rep GetStackPolicyResponse :: Type -> Type #

Read GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Show GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

NFData GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Methods

rnf :: GetStackPolicyResponse -> () #

Eq GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

type Rep GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

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

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