AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ValidatePolicy operation. Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AccessAnalyzer.AmazonAccessAnalyzerRequest
      Amazon.AccessAnalyzer.Model.ValidatePolicyRequest

Namespace: Amazon.AccessAnalyzer.Model
Assembly: AWSSDK.AccessAnalyzer.dll
Version: 3.x.y.z

Syntax

C#
public class ValidatePolicyRequest : AmazonAccessAnalyzerRequest
         IAmazonWebServiceRequest

The ValidatePolicyRequest type exposes the following members

Constructors

NameDescription
Public Method ValidatePolicyRequest()

Properties

NameTypeDescription
Public Property Locale Amazon.AccessAnalyzer.Locale

Gets and sets the property Locale.

The locale to use for localizing the findings.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of results to return in the response.

Public Property NextToken System.String

Gets and sets the property NextToken.

A token used for pagination of results returned.

Public Property PolicyDocument System.String

Gets and sets the property PolicyDocument.

The JSON policy document to use as the content for the policy.

Public Property PolicyType Amazon.AccessAnalyzer.PolicyType

Gets and sets the property 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.

Public Property ValidatePolicyResourceType Amazon.AccessAnalyzer.ValidatePolicyResourceType

Gets and sets the property 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.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5