public class SetStackPolicyRequest extends AmazonWebServiceRequest implements Serializable
SetStackPolicy operation
.
Sets a stack policy for a specified stack.
NOOP
Constructor and Description |
---|
SetStackPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getStackName()
The name or stack ID that you want to associate a policy with.
|
String |
getStackPolicyBody()
Structure containing the stack policy body.
|
String |
getStackPolicyURL()
Location of a file containing the stack policy.
|
int |
hashCode() |
void |
setStackName(String stackName)
The name or stack ID that you want to associate a policy with.
|
void |
setStackPolicyBody(String stackPolicyBody)
Structure containing the stack policy body.
|
void |
setStackPolicyURL(String stackPolicyURL)
Location of a file containing the stack policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetStackPolicyRequest |
withStackName(String stackName)
The name or stack ID that you want to associate a policy with.
|
SetStackPolicyRequest |
withStackPolicyBody(String stackPolicyBody)
Structure containing the stack policy body.
|
SetStackPolicyRequest |
withStackPolicyURL(String stackPolicyURL)
Location of a file containing the stack policy.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStackName()
public void setStackName(String stackName)
stackName
- The name or stack ID that you want to associate a policy with.public SetStackPolicyRequest withStackName(String stackName)
Returns a reference to this object so that method calls can be chained together.
stackName
- The name or stack ID that you want to associate a policy with.public String getStackPolicyBody()
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 16384
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.public void setStackPolicyBody(String stackPolicyBody)
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 16384
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 the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.public SetStackPolicyRequest withStackPolicyBody(String stackPolicyBody)
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
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 the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.public String getStackPolicyURL()
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 1350
StackPolicyBody
or the StackPolicyURL
parameter, but not both.public void setStackPolicyURL(String stackPolicyURL)
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 1350
stackPolicyURL
- Location of a file containing the stack policy. The URL must point to
a policy (max size: 16KB) 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.public SetStackPolicyRequest withStackPolicyURL(String stackPolicyURL)
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1350
stackPolicyURL
- Location of a file containing the stack policy. The URL must point to
a policy (max size: 16KB) 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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.