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.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 is associated with the stack whose policy you want to get.

Instances

Instances details
Eq GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Read GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Show GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Generic GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Associated Types

type Rep GetStackPolicy :: Type -> Type #

NFData GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Methods

rnf :: GetStackPolicy -> () #

Hashable GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

AWSRequest GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Associated Types

type AWSResponse GetStackPolicy #

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

type Rep GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

type Rep GetStackPolicy = D1 ('MetaData "GetStackPolicy" "Amazonka.CloudFormation.GetStackPolicy" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "GetStackPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetStackPolicy Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

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:

$sel:stackName:GetStackPolicy', getStackPolicy_stackName - The name or unique stack ID that is 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 is 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
Eq GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Read GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Show GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Generic GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Associated Types

type Rep GetStackPolicyResponse :: Type -> Type #

NFData GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

Methods

rnf :: GetStackPolicyResponse -> () #

type Rep GetStackPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.GetStackPolicy

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