NAME

Paws::IoTSiteWise::CreateAccessPolicy - Arguments for method CreateAccessPolicy on Paws::IoTSiteWise

DESCRIPTION

This class represents the parameters used for calling the method CreateAccessPolicy on the AWS IoT SiteWise service. Use the attributes of this class as arguments to method CreateAccessPolicy.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAccessPolicy.

SYNOPSIS

my $iotsitewise = Paws->service('IoTSiteWise');
my $CreateAccessPolicyResponse = $iotsitewise->CreateAccessPolicy(
  AccessPolicyIdentity => {
    Group => {
      Id => 'MyIdentityId',    # min: 1, max: 256

    },    # OPTIONAL
    IamRole => {
      Arn => 'MyARN',    # min: 1, max: 1600

    },    # OPTIONAL
    IamUser => {
      Arn => 'MyARN',    # min: 1, max: 1600

    },    # OPTIONAL
    User => {
      Id => 'MyIdentityId',    # min: 1, max: 256

    },    # OPTIONAL
  },
  AccessPolicyPermission => 'ADMINISTRATOR',
  AccessPolicyResource   => {
    Portal => {
      Id => 'MyID',    # min: 36, max: 36

    },    # OPTIONAL
    Project => {
      Id => 'MyID',    # min: 36, max: 36

    },    # OPTIONAL
  },
  ClientToken => 'MyClientToken',    # OPTIONAL
  Tags        => {
    'MyTagKey' => 'MyTagValue',    # key: min: 1, max: 128, value: max: 256
  },    # OPTIONAL
);

# Results:
my $AccessPolicyArn = $CreateAccessPolicyResponse->AccessPolicyArn;
my $AccessPolicyId  = $CreateAccessPolicyResponse->AccessPolicyId;

# Returns a L<Paws::IoTSiteWise::CreateAccessPolicyResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/iotsitewise/CreateAccessPolicy

ATTRIBUTES

REQUIRED AccessPolicyIdentity => Paws::IoTSiteWise::Identity

The identity for this access policy. Choose an AWS SSO user, an AWS SSO group, or an IAM user.

REQUIRED AccessPolicyPermission => Str

The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

Valid values are: "ADMINISTRATOR", "VIEWER"

REQUIRED AccessPolicyResource => Paws::IoTSiteWise::Resource

The AWS IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

ClientToken => Str

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

Tags => Paws::IoTSiteWise::TagMap

A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT SiteWise resources (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) in the AWS IoT SiteWise User Guide.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateAccessPolicy in Paws::IoTSiteWise

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues