« blib/lib/Paws/CloudDirectory/BatchUpdateObjectAttributesResponse.pm
↑ Summary
blib/lib/Paws/CloudDirectory/BatchWriteOperation.pm »
| 1 | |||
| 2 | package Paws::CloudDirectory::BatchWrite; | ||
| 3 | use Moose; | ||
| 4 | has DirectoryArn => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-data-partition', required => 1); | ||
| 5 | has Operations => (is => 'ro', isa => 'ArrayRef[Paws::CloudDirectory::BatchWriteOperation]', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'BatchWrite'); | ||
| 10 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/amazonclouddirectory/2017-01-11/batchwrite'); | ||
| 11 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudDirectory::BatchWriteResponse'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::CloudDirectory::BatchWrite - Arguments for method BatchWrite on L<Paws::CloudDirectory> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method BatchWrite on the | ||
| 24 | L<Amazon CloudDirectory|Paws::CloudDirectory> service. Use the attributes of this class | ||
| 25 | as arguments to method BatchWrite. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to BatchWrite. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $clouddirectory = Paws->service('CloudDirectory'); | ||
| 32 | my $BatchWriteResponse = $clouddirectory->BatchWrite( | ||
| 33 | DirectoryArn => 'MyArn', | ||
| 34 | Operations => [ | ||
| 35 | { | ||
| 36 | AddFacetToObject => { | ||
| 37 | ObjectAttributeList => [ | ||
| 38 | { | ||
| 39 | Key => { | ||
| 40 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 41 | Name => 'MyAttributeName', # min: 1, max: 230 | ||
| 42 | SchemaArn => 'MyArn', | ||
| 43 | |||
| 44 | }, | ||
| 45 | Value => { | ||
| 46 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 47 | BooleanValue => 1, # OPTIONAL | ||
| 48 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 49 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 50 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 51 | }, | ||
| 52 | |||
| 53 | }, | ||
| 54 | ... | ||
| 55 | ], | ||
| 56 | ObjectReference => { | ||
| 57 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 58 | }, | ||
| 59 | SchemaFacet => { | ||
| 60 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 61 | SchemaArn => 'MyArn', | ||
| 62 | }, | ||
| 63 | |||
| 64 | }, # OPTIONAL | ||
| 65 | AttachObject => { | ||
| 66 | ChildReference => { | ||
| 67 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 68 | }, | ||
| 69 | LinkName => 'MyLinkName', # min: 1, max: 64 | ||
| 70 | ParentReference => { | ||
| 71 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 72 | }, | ||
| 73 | |||
| 74 | }, # OPTIONAL | ||
| 75 | AttachPolicy => { | ||
| 76 | ObjectReference => { | ||
| 77 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 78 | }, | ||
| 79 | PolicyReference => { | ||
| 80 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 81 | }, | ||
| 82 | |||
| 83 | }, # OPTIONAL | ||
| 84 | AttachToIndex => { | ||
| 85 | IndexReference => { | ||
| 86 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 87 | }, | ||
| 88 | TargetReference => { | ||
| 89 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 90 | }, | ||
| 91 | |||
| 92 | }, # OPTIONAL | ||
| 93 | AttachTypedLink => { | ||
| 94 | Attributes => [ | ||
| 95 | { | ||
| 96 | AttributeName => 'MyAttributeName', # min: 1, max: 230 | ||
| 97 | Value => { | ||
| 98 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 99 | BooleanValue => 1, # OPTIONAL | ||
| 100 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 101 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 102 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 103 | }, | ||
| 104 | |||
| 105 | }, | ||
| 106 | ... | ||
| 107 | ], | ||
| 108 | SourceObjectReference => { | ||
| 109 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 110 | }, | ||
| 111 | TargetObjectReference => { | ||
| 112 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 113 | }, | ||
| 114 | TypedLinkFacet => { | ||
| 115 | SchemaArn => 'MyArn', | ||
| 116 | TypedLinkName => 'MyTypedLinkName', | ||
| 117 | |||
| 118 | }, | ||
| 119 | |||
| 120 | }, # OPTIONAL | ||
| 121 | CreateIndex => { | ||
| 122 | IsUnique => 1, | ||
| 123 | OrderedIndexedAttributeList => [ | ||
| 124 | { | ||
| 125 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 126 | Name => 'MyAttributeName', # min: 1, max: 230 | ||
| 127 | SchemaArn => 'MyArn', | ||
| 128 | |||
| 129 | }, | ||
| 130 | ... | ||
| 131 | ], | ||
| 132 | BatchReferenceName => 'MyBatchReferenceName', # OPTIONAL | ||
| 133 | LinkName => 'MyLinkName', # min: 1, max: 64 | ||
| 134 | ParentReference => { | ||
| 135 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 136 | }, | ||
| 137 | }, # OPTIONAL | ||
| 138 | CreateObject => { | ||
| 139 | ObjectAttributeList => [ | ||
| 140 | { | ||
| 141 | Key => { | ||
| 142 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 143 | Name => 'MyAttributeName', # min: 1, max: 230 | ||
| 144 | SchemaArn => 'MyArn', | ||
| 145 | |||
| 146 | }, | ||
| 147 | Value => { | ||
| 148 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 149 | BooleanValue => 1, # OPTIONAL | ||
| 150 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 151 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 152 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 153 | }, | ||
| 154 | |||
| 155 | }, | ||
| 156 | ... | ||
| 157 | ], | ||
| 158 | SchemaFacet => [ | ||
| 159 | { | ||
| 160 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 161 | SchemaArn => 'MyArn', | ||
| 162 | }, | ||
| 163 | ... | ||
| 164 | ], | ||
| 165 | BatchReferenceName => 'MyBatchReferenceName', # OPTIONAL | ||
| 166 | LinkName => 'MyLinkName', # min: 1, max: 64 | ||
| 167 | ParentReference => { | ||
| 168 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 169 | }, | ||
| 170 | }, # OPTIONAL | ||
| 171 | DeleteObject => { | ||
| 172 | ObjectReference => { | ||
| 173 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 174 | }, | ||
| 175 | |||
| 176 | }, # OPTIONAL | ||
| 177 | DetachFromIndex => { | ||
| 178 | IndexReference => { | ||
| 179 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 180 | }, | ||
| 181 | TargetReference => { | ||
| 182 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 183 | }, | ||
| 184 | |||
| 185 | }, # OPTIONAL | ||
| 186 | DetachObject => { | ||
| 187 | LinkName => 'MyLinkName', # min: 1, max: 64 | ||
| 188 | ParentReference => { | ||
| 189 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 190 | }, | ||
| 191 | BatchReferenceName => 'MyBatchReferenceName', # OPTIONAL | ||
| 192 | }, # OPTIONAL | ||
| 193 | DetachPolicy => { | ||
| 194 | ObjectReference => { | ||
| 195 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 196 | }, | ||
| 197 | PolicyReference => { | ||
| 198 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 199 | }, | ||
| 200 | |||
| 201 | }, # OPTIONAL | ||
| 202 | DetachTypedLink => { | ||
| 203 | TypedLinkSpecifier => { | ||
| 204 | IdentityAttributeValues => [ | ||
| 205 | { | ||
| 206 | AttributeName => 'MyAttributeName', # min: 1, max: 230 | ||
| 207 | Value => { | ||
| 208 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 209 | BooleanValue => 1, # OPTIONAL | ||
| 210 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 211 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 212 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 213 | }, | ||
| 214 | |||
| 215 | }, | ||
| 216 | ... | ||
| 217 | ], | ||
| 218 | SourceObjectReference => { | ||
| 219 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 220 | }, | ||
| 221 | TargetObjectReference => { | ||
| 222 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 223 | }, | ||
| 224 | TypedLinkFacet => { | ||
| 225 | SchemaArn => 'MyArn', | ||
| 226 | TypedLinkName => 'MyTypedLinkName', | ||
| 227 | |||
| 228 | }, | ||
| 229 | |||
| 230 | }, | ||
| 231 | |||
| 232 | }, # OPTIONAL | ||
| 233 | RemoveFacetFromObject => { | ||
| 234 | ObjectReference => { | ||
| 235 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 236 | }, | ||
| 237 | SchemaFacet => { | ||
| 238 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 239 | SchemaArn => 'MyArn', | ||
| 240 | }, | ||
| 241 | |||
| 242 | }, # OPTIONAL | ||
| 243 | UpdateLinkAttributes => { | ||
| 244 | AttributeUpdates => [ | ||
| 245 | { | ||
| 246 | AttributeAction => { | ||
| 247 | AttributeActionType => 'CREATE_OR_UPDATE' | ||
| 248 | , # values: CREATE_OR_UPDATE, DELETE; OPTIONAL | ||
| 249 | AttributeUpdateValue => { | ||
| 250 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 251 | BooleanValue => 1, # OPTIONAL | ||
| 252 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 253 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 254 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 255 | }, | ||
| 256 | }, # OPTIONAL | ||
| 257 | AttributeKey => { | ||
| 258 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 259 | Name => 'MyAttributeName', # min: 1, max: 230 | ||
| 260 | SchemaArn => 'MyArn', | ||
| 261 | |||
| 262 | }, | ||
| 263 | }, | ||
| 264 | ... | ||
| 265 | ], | ||
| 266 | TypedLinkSpecifier => { | ||
| 267 | IdentityAttributeValues => [ | ||
| 268 | { | ||
| 269 | AttributeName => 'MyAttributeName', # min: 1, max: 230 | ||
| 270 | Value => { | ||
| 271 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 272 | BooleanValue => 1, # OPTIONAL | ||
| 273 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 274 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 275 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 276 | }, | ||
| 277 | |||
| 278 | }, | ||
| 279 | ... | ||
| 280 | ], | ||
| 281 | SourceObjectReference => { | ||
| 282 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 283 | }, | ||
| 284 | TargetObjectReference => { | ||
| 285 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 286 | }, | ||
| 287 | TypedLinkFacet => { | ||
| 288 | SchemaArn => 'MyArn', | ||
| 289 | TypedLinkName => 'MyTypedLinkName', | ||
| 290 | |||
| 291 | }, | ||
| 292 | |||
| 293 | }, | ||
| 294 | |||
| 295 | }, # OPTIONAL | ||
| 296 | UpdateObjectAttributes => { | ||
| 297 | AttributeUpdates => [ | ||
| 298 | { | ||
| 299 | ObjectAttributeAction => { | ||
| 300 | ObjectAttributeActionType => 'CREATE_OR_UPDATE' | ||
| 301 | , # values: CREATE_OR_UPDATE, DELETE; OPTIONAL | ||
| 302 | ObjectAttributeUpdateValue => { | ||
| 303 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 304 | BooleanValue => 1, # OPTIONAL | ||
| 305 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 306 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 307 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 308 | }, | ||
| 309 | }, # OPTIONAL | ||
| 310 | ObjectAttributeKey => { | ||
| 311 | FacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 312 | Name => 'MyAttributeName', # min: 1, max: 230 | ||
| 313 | SchemaArn => 'MyArn', | ||
| 314 | |||
| 315 | }, | ||
| 316 | }, | ||
| 317 | ... | ||
| 318 | ], | ||
| 319 | ObjectReference => { | ||
| 320 | Selector => 'MySelectorObjectReference', # OPTIONAL | ||
| 321 | }, | ||
| 322 | |||
| 323 | }, # OPTIONAL | ||
| 324 | }, | ||
| 325 | ... | ||
| 326 | ], | ||
| 327 | |||
| 328 | ); | ||
| 329 | |||
| 330 | # Results: | ||
| 331 | my $Responses = $BatchWriteResponse->Responses; | ||
| 332 | |||
| 333 | # Returns a L<Paws::CloudDirectory::BatchWriteResponse> object. | ||
| 334 | |||
| 335 | 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. | ||
| 336 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/clouddirectory/BatchWrite> | ||
| 337 | |||
| 338 | =head1 ATTRIBUTES | ||
| 339 | |||
| 340 | |||
| 341 | =head2 B<REQUIRED> DirectoryArn => Str | ||
| 342 | |||
| 343 | The Amazon Resource Name (ARN) that is associated with the Directory. | ||
| 344 | For more information, see arns. | ||
| 345 | |||
| 346 | |||
| 347 | |||
| 348 | =head2 B<REQUIRED> Operations => ArrayRef[L<Paws::CloudDirectory::BatchWriteOperation>] | ||
| 349 | |||
| 350 | A list of operations that are part of the batch. | ||
| 351 | |||
| 352 | |||
| 353 | |||
| 354 | |||
| 355 | =head1 SEE ALSO | ||
| 356 | |||
| 357 | This class forms part of L<Paws>, documenting arguments for method BatchWrite in L<Paws::CloudDirectory> | ||
| 358 | |||
| 359 | =head1 BUGS and CONTRIBUTIONS | ||
| 360 | |||
| 361 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 362 | |||
| 363 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 364 | |||
| 365 | =cut | ||
| 366 |