public class DeletePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeletePolicyVersion operation
.
Deletes the specified version of the specified managed policy.
You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.
For information about versions for managed policies, refer to Versioning for Managed Policies in the IAM User Guide .
NOOP
Constructor and Description |
---|
DeletePolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
DeletePolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
String |
getVersionId()
The policy version to delete.
|
int |
hashCode() |
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
void |
setVersionId(String versionId)
The policy version to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeletePolicyVersionRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
DeletePolicyVersionRequest |
withVersionId(String versionId)
The policy version to delete.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getPolicyArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public DeletePolicyVersionRequest withPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String getVersionId()
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public void setVersionId(String versionId)
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
versionId
- The policy version to delete. For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public DeletePolicyVersionRequest withVersionId(String versionId)
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
versionId
- The policy version to delete. 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 DeletePolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.