@Generated(value="software.amazon.awssdk:codegen") public final class ValidatePolicyRequest extends AccessAnalyzerRequest implements ToCopyableBuilder<ValidatePolicyRequest.Builder,ValidatePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ValidatePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ValidatePolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Locale |
locale()
The locale to use for localizing the findings.
|
String |
localeAsString()
The locale to use for localizing the findings.
|
Integer |
maxResults()
The maximum number of results to return in the response.
|
String |
nextToken()
A token used for pagination of results returned.
|
String |
policyDocument()
The JSON policy document to use as the content for the policy.
|
PolicyType |
policyType()
The type of policy to validate.
|
String |
policyTypeAsString()
The type of policy to validate.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ValidatePolicyRequest.Builder> |
serializableBuilderClass() |
ValidatePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ValidatePolicyResourceType |
validatePolicyResourceType()
The type of resource to attach to your resource policy.
|
String |
validatePolicyResourceTypeAsString()
The type of resource to attach to your resource policy.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Locale locale()
The locale to use for localizing the findings.
If the service returns an enum value that is not available in the current SDK version, locale will
return Locale.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
localeAsString().
Localepublic final String localeAsString()
The locale to use for localizing the findings.
If the service returns an enum value that is not available in the current SDK version, locale will
return Locale.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
localeAsString().
Localepublic final Integer maxResults()
The maximum number of results to return in the response.
public final String nextToken()
A token used for pagination of results returned.
public final String policyDocument()
The JSON policy document to use as the content for the policy.
public final 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. They also include service-control policies (SCPs) that are 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.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
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.
PolicyTypepublic final String policyTypeAsString()
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. They also include service-control policies (SCPs) that are 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.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
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.
PolicyTypepublic final 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.
If the service returns an enum value that is not available in the current SDK version,
validatePolicyResourceType will return ValidatePolicyResourceType.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from validatePolicyResourceTypeAsString().
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.
ValidatePolicyResourceTypepublic final String validatePolicyResourceTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
validatePolicyResourceType will return ValidatePolicyResourceType.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from validatePolicyResourceTypeAsString().
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.
ValidatePolicyResourceTypepublic ValidatePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ValidatePolicyRequest.Builder,ValidatePolicyRequest>toBuilder in class AccessAnalyzerRequestpublic static ValidatePolicyRequest.Builder builder()
public static Class<? extends ValidatePolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.