Class SetStackPolicyRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
The input for the SetStackPolicy action.
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe name or unique stack ID that you want to associate a policy with.Structure containing the stack policy body.Location of a file containing the stack policy.inthashCode()voidsetStackName(String stackName) The name or unique stack ID that you want to associate a policy with.voidsetStackPolicyBody(String stackPolicyBody) Structure containing the stack policy body.voidsetStackPolicyURL(String stackPolicyURL) Location of a file containing the stack policy.toString()Returns a string representation of this object; useful for testing and debugging.withStackName(String stackName) The name or unique stack ID that you want to associate a policy with.withStackPolicyBody(String stackPolicyBody) Structure containing the stack policy body.withStackPolicyURL(String stackPolicyURL) Location of a file containing the stack policy.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
SetStackPolicyRequest
public SetStackPolicyRequest()
-
-
Method Details
-
setStackName
The name or unique stack ID that you want to associate a policy with.
- Parameters:
stackName- The name or unique stack ID that you want to associate a policy with.
-
getStackName
The name or unique stack ID that you want to associate a policy with.
- Returns:
- The name or unique stack ID that you want to associate a policy with.
-
withStackName
The name or unique stack ID that you want to associate a policy with.
- Parameters:
stackName- The name or unique stack ID that you want to associate a policy with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackPolicyBody
Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Parameters:
stackPolicyBody- Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either theStackPolicyBodyor theStackPolicyURLparameter, but not both.
-
getStackPolicyBody
Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Returns:
- Structure containing the stack policy body. For more information,
go to Prevent Updates to Stack Resources in the AWS
CloudFormation User Guide. You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.
-
withStackPolicyBody
Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Parameters:
stackPolicyBody- Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either theStackPolicyBodyor theStackPolicyURLparameter, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackPolicyURL
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
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Parameters:
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 theStackPolicyBodyor theStackPolicyURLparameter, but not both.
-
getStackPolicyURL
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
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Returns:
- 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
StackPolicyBodyor theStackPolicyURLparameter, but not both.
-
withStackPolicyURL
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
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Parameters:
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 theStackPolicyBodyor theStackPolicyURLparameter, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-