« blib/lib/Paws/IoTSiteWise/UntagResourceResponse.pm
↑ Summary
blib/lib/Paws/IoTSiteWise/UpdateAccessPolicyResponse.pm »
| 1 | |||
| 2 | package Paws::IoTSiteWise::UpdateAccessPolicy; | ||
| 3 | use Moose; | ||
| 4 | has AccessPolicyId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'accessPolicyId', required => 1); | ||
| 5 | has AccessPolicyIdentity => (is => 'ro', isa => 'Paws::IoTSiteWise::Identity', traits => ['NameInRequest'], request_name => 'accessPolicyIdentity', required => 1); | ||
| 6 | has AccessPolicyPermission => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'accessPolicyPermission', required => 1); | ||
| 7 | has AccessPolicyResource => (is => 'ro', isa => 'Paws::IoTSiteWise::Resource', traits => ['NameInRequest'], request_name => 'accessPolicyResource', required => 1); | ||
| 8 | has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken'); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateAccessPolicy'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/access-policies/{accessPolicyId}'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoTSiteWise::UpdateAccessPolicyResponse'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::IoTSiteWise::UpdateAccessPolicy - Arguments for method UpdateAccessPolicy on L<Paws::IoTSiteWise> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method UpdateAccessPolicy on the | ||
| 27 | L<AWS IoT SiteWise|Paws::IoTSiteWise> service. Use the attributes of this class | ||
| 28 | as arguments to method UpdateAccessPolicy. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAccessPolicy. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $iotsitewise = Paws->service('IoTSiteWise'); | ||
| 35 | my $UpdateAccessPolicyResponse = $iotsitewise->UpdateAccessPolicy( | ||
| 36 | AccessPolicyId => 'MyID', | ||
| 37 | AccessPolicyIdentity => { | ||
| 38 | Group => { | ||
| 39 | Id => 'MyIdentityId', # min: 1, max: 256 | ||
| 40 | |||
| 41 | }, # OPTIONAL | ||
| 42 | IamRole => { | ||
| 43 | Arn => 'MyARN', # min: 1, max: 1600 | ||
| 44 | |||
| 45 | }, # OPTIONAL | ||
| 46 | IamUser => { | ||
| 47 | Arn => 'MyARN', # min: 1, max: 1600 | ||
| 48 | |||
| 49 | }, # OPTIONAL | ||
| 50 | User => { | ||
| 51 | Id => 'MyIdentityId', # min: 1, max: 256 | ||
| 52 | |||
| 53 | }, # OPTIONAL | ||
| 54 | }, | ||
| 55 | AccessPolicyPermission => 'ADMINISTRATOR', | ||
| 56 | AccessPolicyResource => { | ||
| 57 | Portal => { | ||
| 58 | Id => 'MyID', # min: 36, max: 36 | ||
| 59 | |||
| 60 | }, # OPTIONAL | ||
| 61 | Project => { | ||
| 62 | Id => 'MyID', # min: 36, max: 36 | ||
| 63 | |||
| 64 | }, # OPTIONAL | ||
| 65 | }, | ||
| 66 | ClientToken => 'MyClientToken', # OPTIONAL | ||
| 67 | ); | ||
| 68 | |||
| 69 | 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. | ||
| 70 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iotsitewise/UpdateAccessPolicy> | ||
| 71 | |||
| 72 | =head1 ATTRIBUTES | ||
| 73 | |||
| 74 | |||
| 75 | =head2 B<REQUIRED> AccessPolicyId => Str | ||
| 76 | |||
| 77 | The ID of the access policy. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 B<REQUIRED> AccessPolicyIdentity => L<Paws::IoTSiteWise::Identity> | ||
| 82 | |||
| 83 | The identity for this access policy. Choose an AWS SSO user, an AWS SSO | ||
| 84 | group, or an IAM user. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 B<REQUIRED> AccessPolicyPermission => Str | ||
| 89 | |||
| 90 | The permission level for this access policy. Note that a project | ||
| 91 | C<ADMINISTRATOR> is also known as a project owner. | ||
| 92 | |||
| 93 | Valid values are: C<"ADMINISTRATOR">, C<"VIEWER"> | ||
| 94 | |||
| 95 | =head2 B<REQUIRED> AccessPolicyResource => L<Paws::IoTSiteWise::Resource> | ||
| 96 | |||
| 97 | The AWS IoT SiteWise Monitor resource for this access policy. Choose | ||
| 98 | either a portal or a project. | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | =head2 ClientToken => Str | ||
| 103 | |||
| 104 | A unique case-sensitive identifier that you can provide to ensure the | ||
| 105 | idempotency of the request. Don't reuse this client token if a new | ||
| 106 | idempotent request is required. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head1 SEE ALSO | ||
| 112 | |||
| 113 | This class forms part of L<Paws>, documenting arguments for method UpdateAccessPolicy in L<Paws::IoTSiteWise> | ||
| 114 | |||
| 115 | =head1 BUGS and CONTRIBUTIONS | ||
| 116 | |||
| 117 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 118 | |||
| 119 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 120 | |||
| 121 | =cut | ||
| 122 |