« blib/lib/Paws/LakeFormation.pm
↑ Summary
blib/lib/Paws/LakeFormation/AddLFTagsToResourceResponse.pm »
| 1 | |||
| 2 | package Paws::LakeFormation::AddLFTagsToResource; | ||
| 3 | use Moose; | ||
| 4 | has CatalogId => (is => 'ro', isa => 'Str'); | ||
| 5 | has LFTags => (is => 'ro', isa => 'ArrayRef[Paws::LakeFormation::LFTagPair]', required => 1); | ||
| 6 | has Resource => (is => 'ro', isa => 'Paws::LakeFormation::Resource', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddLFTagsToResource'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LakeFormation::AddLFTagsToResourceResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::LakeFormation::AddLFTagsToResource - Arguments for method AddLFTagsToResource on L<Paws::LakeFormation> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method AddLFTagsToResource on the | ||
| 24 | L<AWS Lake Formation|Paws::LakeFormation> service. Use the attributes of this class | ||
| 25 | as arguments to method AddLFTagsToResource. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddLFTagsToResource. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $lakeformation = Paws->service('LakeFormation'); | ||
| 32 | my $AddLFTagsToResourceResponse = $lakeformation->AddLFTagsToResource( | ||
| 33 | LFTags => [ | ||
| 34 | { | ||
| 35 | TagKey => 'MyLFTagKey', # min: 1, max: 128 | ||
| 36 | TagValues => [ | ||
| 37 | 'MyLFTagValue', ... # max: 256 | ||
| 38 | ], # min: 1, max: 50 | ||
| 39 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 40 | }, | ||
| 41 | ... | ||
| 42 | ], | ||
| 43 | Resource => { | ||
| 44 | Catalog => { | ||
| 45 | |||
| 46 | }, # OPTIONAL | ||
| 47 | DataLocation => { | ||
| 48 | ResourceArn => 'MyResourceArnString', | ||
| 49 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 50 | }, # OPTIONAL | ||
| 51 | Database => { | ||
| 52 | Name => 'MyNameString', # min: 1, max: 255 | ||
| 53 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 54 | }, # OPTIONAL | ||
| 55 | LFTag => { | ||
| 56 | TagKey => 'MyNameString', # min: 1, max: 255 | ||
| 57 | TagValues => [ | ||
| 58 | 'MyLFTagValue', ... # max: 256 | ||
| 59 | ], # min: 1, max: 50 | ||
| 60 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 61 | }, # OPTIONAL | ||
| 62 | LFTagPolicy => { | ||
| 63 | Expression => [ | ||
| 64 | { | ||
| 65 | TagKey => 'MyLFTagKey', # min: 1, max: 128 | ||
| 66 | TagValues => [ | ||
| 67 | 'MyLFTagValue', ... # max: 256 | ||
| 68 | ], # min: 1, max: 50 | ||
| 69 | |||
| 70 | }, | ||
| 71 | ... | ||
| 72 | ], # min: 1, max: 5 | ||
| 73 | ResourceType => 'DATABASE', # values: DATABASE, TABLE | ||
| 74 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 75 | }, # OPTIONAL | ||
| 76 | Table => { | ||
| 77 | DatabaseName => 'MyNameString', # min: 1, max: 255 | ||
| 78 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 79 | Name => 'MyNameString', # min: 1, max: 255 | ||
| 80 | TableWildcard => { | ||
| 81 | |||
| 82 | }, # OPTIONAL | ||
| 83 | }, # OPTIONAL | ||
| 84 | TableWithColumns => { | ||
| 85 | DatabaseName => 'MyNameString', # min: 1, max: 255 | ||
| 86 | Name => 'MyNameString', # min: 1, max: 255 | ||
| 87 | CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL | ||
| 88 | ColumnNames => [ | ||
| 89 | 'MyNameString', ... # min: 1, max: 255 | ||
| 90 | ], # OPTIONAL | ||
| 91 | ColumnWildcard => { | ||
| 92 | ExcludedColumnNames => [ | ||
| 93 | 'MyNameString', ... # min: 1, max: 255 | ||
| 94 | ], # OPTIONAL | ||
| 95 | }, # OPTIONAL | ||
| 96 | }, # OPTIONAL | ||
| 97 | }, | ||
| 98 | CatalogId => 'MyCatalogIdString', # OPTIONAL | ||
| 99 | ); | ||
| 100 | |||
| 101 | # Results: | ||
| 102 | my $Failures = $AddLFTagsToResourceResponse->Failures; | ||
| 103 | |||
| 104 | # Returns a L<Paws::LakeFormation::AddLFTagsToResourceResponse> object. | ||
| 105 | |||
| 106 | 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. | ||
| 107 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lakeformation/AddLFTagsToResource> | ||
| 108 | |||
| 109 | =head1 ATTRIBUTES | ||
| 110 | |||
| 111 | |||
| 112 | =head2 CatalogId => Str | ||
| 113 | |||
| 114 | The identifier for the Data Catalog. By default, the account ID. The | ||
| 115 | Data Catalog is the persistent metadata store. It contains database | ||
| 116 | definitions, table definitions, and other control information to manage | ||
| 117 | your AWS Lake Formation environment. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 B<REQUIRED> LFTags => ArrayRef[L<Paws::LakeFormation::LFTagPair>] | ||
| 122 | |||
| 123 | The tags to attach to the resource. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 B<REQUIRED> Resource => L<Paws::LakeFormation::Resource> | ||
| 128 | |||
| 129 | The resource to which to attach a tag. | ||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | =head1 SEE ALSO | ||
| 135 | |||
| 136 | This class forms part of L<Paws>, documenting arguments for method AddLFTagsToResource in L<Paws::LakeFormation> | ||
| 137 | |||
| 138 | =head1 BUGS and CONTRIBUTIONS | ||
| 139 | |||
| 140 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 141 | |||
| 142 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 143 | |||
| 144 | =cut | ||
| 145 |