@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyVersionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
|
String |
getPolicyDocument()
The JSON policy document that you want to use as the content for this new version of the policy.
|
Boolean |
getSetAsDefault()
Specifies whether to set this version as the policy's default version.
|
int |
hashCode() |
Boolean |
isSetAsDefault()
Specifies whether to set this version as the policy's default version.
|
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
|
void |
setPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
|
void |
setSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
String |
toString()
Returns a string representation of this object.
|
CreatePolicyVersionRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
|
CreatePolicyVersionRequest |
withPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
|
CreatePolicyVersionRequest |
withSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
policyArn
- The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
public String getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
public CreatePolicyVersionRequest withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
policyArn
- The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
public void setPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and STS character quotas.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
) through the end of the ASCII
character range
The printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ
)
The special characters tab (
), line feed (
), and carriage return (
)
policyDocument
- The JSON policy document that you want to use as the content for this new version of the policy.
You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and STS character quotas.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
) through the end of
the ASCII character range
The printable characters in the Basic Latin and Latin-1 Supplement character set (through
ÿ
)
The special characters tab (
), line feed (
), and carriage return (
)
public String getPolicyDocument()
The JSON policy document that you want to use as the content for this new version of the policy.
You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and STS character quotas.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
) through the end of the ASCII
character range
The printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ
)
The special characters tab (
), line feed (
), and carriage return (
)
You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and STS character quotas.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
) through the end of
the ASCII character range
The printable characters in the Basic Latin and Latin-1 Supplement character set (through
ÿ
)
The special characters tab (
), line feed (
), and carriage return (
)
public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and STS character quotas.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
) through the end of the ASCII
character range
The printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ
)
The special characters tab (
), line feed (
), and carriage return (
)
policyDocument
- The JSON policy document that you want to use as the content for this new version of the policy.
You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and STS character quotas.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
Any printable ASCII character ranging from the space character (
) through the end of
the ASCII character range
The printable characters in the Basic Latin and Latin-1 Supplement character set (through
ÿ
)
The special characters tab (
), line feed (
), and carriage return (
)
public void setSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
When this parameter is true
, the new policy version becomes the operative version. That is, it
becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
setAsDefault
- Specifies whether to set this version as the policy's default version.
When this parameter is true
, the new policy version becomes the operative version. That is,
it becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached
to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
public Boolean getSetAsDefault()
Specifies whether to set this version as the policy's default version.
When this parameter is true
, the new policy version becomes the operative version. That is, it
becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
When this parameter is true
, the new policy version becomes the operative version. That is,
it becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached
to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
public CreatePolicyVersionRequest withSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
When this parameter is true
, the new policy version becomes the operative version. That is, it
becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
setAsDefault
- Specifies whether to set this version as the policy's default version.
When this parameter is true
, the new policy version becomes the operative version. That is,
it becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached
to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
public Boolean isSetAsDefault()
Specifies whether to set this version as the policy's default version.
When this parameter is true
, the new policy version becomes the operative version. That is, it
becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
When this parameter is true
, the new policy version becomes the operative version. That is,
it becomes the version that is in effect for the IAM users, groups, and roles that the policy is attached
to.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
public String toString()
toString
in class Object
Object.toString()
public CreatePolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()