@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ValidatePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
ValidatePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getLocale()
The locale to use for localizing the findings.
|
Integer |
getMaxResults()
The maximum number of results to return in the response.
|
String |
getNextToken()
A token used for pagination of results returned.
|
String |
getPolicyDocument()
The JSON policy document to use as the content for the policy.
|
String |
getPolicyType()
The type of policy to validate.
|
String |
getValidatePolicyResourceType()
The type of resource to attach to your resource policy.
|
int |
hashCode() |
void |
setLocale(String locale)
The locale to use for localizing the findings.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return in the response.
|
void |
setNextToken(String nextToken)
A token used for pagination of results returned.
|
void |
setPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
|
void |
setPolicyType(String policyType)
The type of policy to validate.
|
void |
setValidatePolicyResourceType(String validatePolicyResourceType)
The type of resource to attach to your resource policy.
|
String |
toString()
Returns a string representation of this object.
|
ValidatePolicyRequest |
withLocale(Locale locale)
The locale to use for localizing the findings.
|
ValidatePolicyRequest |
withLocale(String locale)
The locale to use for localizing the findings.
|
ValidatePolicyRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return in the response.
|
ValidatePolicyRequest |
withNextToken(String nextToken)
A token used for pagination of results returned.
|
ValidatePolicyRequest |
withPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
|
ValidatePolicyRequest |
withPolicyType(PolicyType policyType)
The type of policy to validate.
|
ValidatePolicyRequest |
withPolicyType(String policyType)
The type of policy to validate.
|
ValidatePolicyRequest |
withValidatePolicyResourceType(String validatePolicyResourceType)
The type of resource to attach to your resource policy.
|
ValidatePolicyRequest |
withValidatePolicyResourceType(ValidatePolicyResourceType validatePolicyResourceType)
The type of resource to attach to your resource policy.
|
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 setLocale(String locale)
The locale to use for localizing the findings.
locale
- The locale to use for localizing the findings.Locale
public String getLocale()
The locale to use for localizing the findings.
Locale
public ValidatePolicyRequest withLocale(String locale)
The locale to use for localizing the findings.
locale
- The locale to use for localizing the findings.Locale
public ValidatePolicyRequest withLocale(Locale locale)
The locale to use for localizing the findings.
locale
- The locale to use for localizing the findings.Locale
public void setMaxResults(Integer maxResults)
The maximum number of results to return in the response.
maxResults
- The maximum number of results to return in the response.public Integer getMaxResults()
The maximum number of results to return in the response.
public ValidatePolicyRequest withMaxResults(Integer maxResults)
The maximum number of results to return in the response.
maxResults
- The maximum number of results to return in the response.public void setNextToken(String nextToken)
A token used for pagination of results returned.
nextToken
- A token used for pagination of results returned.public String getNextToken()
A token used for pagination of results returned.
public ValidatePolicyRequest withNextToken(String nextToken)
A token used for pagination of results returned.
nextToken
- A token used for pagination of results returned.public void setPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
policyDocument
- The JSON policy document to use as the content for the policy.public String getPolicyDocument()
The JSON policy document to use as the content for the policy.
public ValidatePolicyRequest withPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
policyDocument
- The JSON policy document to use as the content for the policy.public void setPolicyType(String policyType)
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
policyType
- The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies
include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
PolicyType
public String getPolicyType()
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
PolicyType
public ValidatePolicyRequest withPolicyType(String policyType)
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
policyType
- The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies
include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
PolicyType
public ValidatePolicyRequest withPolicyType(PolicyType policyType)
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
policyType
- The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies
include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
PolicyType
public void setValidatePolicyResourceType(String validatePolicyResourceType)
The type of resource to attach to your resource policy. Specify a value for the policy validation resource type
only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy to attach to
an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
validatePolicyResourceType
- The type of resource to attach to your resource policy. Specify a value for the policy validation resource
type only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy
to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation
resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
ValidatePolicyResourceType
public String getValidatePolicyResourceType()
The type of resource to attach to your resource policy. Specify a value for the policy validation resource type
only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy to attach to
an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
RESOURCE_POLICY
. For example, to validate a
resource policy to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the
policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
ValidatePolicyResourceType
public ValidatePolicyRequest withValidatePolicyResourceType(String validatePolicyResourceType)
The type of resource to attach to your resource policy. Specify a value for the policy validation resource type
only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy to attach to
an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
validatePolicyResourceType
- The type of resource to attach to your resource policy. Specify a value for the policy validation resource
type only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy
to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation
resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
ValidatePolicyResourceType
public ValidatePolicyRequest withValidatePolicyResourceType(ValidatePolicyResourceType validatePolicyResourceType)
The type of resource to attach to your resource policy. Specify a value for the policy validation resource type
only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy to attach to
an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
validatePolicyResourceType
- The type of resource to attach to your resource policy. Specify a value for the policy validation resource
type only if the policy type is RESOURCE_POLICY
. For example, to validate a resource policy
to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket
for the policy validation
resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
ValidatePolicyResourceType
public String toString()
toString
in class Object
Object.toString()
public ValidatePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()