« blib/lib/Paws/CloudDirectory/UntagResourceResponse.pm
↑ Summary
blib/lib/Paws/CloudDirectory/UpdateFacetResponse.pm »
| 1 | |||
| 2 | package Paws::CloudDirectory::UpdateFacet; | ||
| 3 | use Moose; | ||
| 4 | has AttributeUpdates => (is => 'ro', isa => 'ArrayRef[Paws::CloudDirectory::FacetAttributeUpdate]'); | ||
| 5 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has ObjectType => (is => 'ro', isa => 'Str'); | ||
| 7 | has SchemaArn => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-data-partition', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFacet'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/amazonclouddirectory/2017-01-11/facet'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudDirectory::UpdateFacetResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::CloudDirectory::UpdateFacet - Arguments for method UpdateFacet on L<Paws::CloudDirectory> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdateFacet on the | ||
| 26 | L<Amazon CloudDirectory|Paws::CloudDirectory> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdateFacet. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFacet. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $clouddirectory = Paws->service('CloudDirectory'); | ||
| 34 | my $UpdateFacetResponse = $clouddirectory->UpdateFacet( | ||
| 35 | Name => 'MyFacetName', | ||
| 36 | SchemaArn => 'MyArn', | ||
| 37 | AttributeUpdates => [ | ||
| 38 | { | ||
| 39 | Action => | ||
| 40 | 'CREATE_OR_UPDATE', # values: CREATE_OR_UPDATE, DELETE; OPTIONAL | ||
| 41 | Attribute => { | ||
| 42 | Name => 'MyAttributeName', # min: 1, max: 230 | ||
| 43 | AttributeDefinition => { | ||
| 44 | Type => 'STRING' | ||
| 45 | , # values: STRING, BINARY, BOOLEAN, NUMBER, DATETIME, VARIANT | ||
| 46 | DefaultValue => { | ||
| 47 | BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL | ||
| 48 | BooleanValue => 1, # OPTIONAL | ||
| 49 | DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL | ||
| 50 | NumberValue => 'MyNumberAttributeValue', # OPTIONAL | ||
| 51 | StringValue => 'MyStringAttributeValue', # OPTIONAL | ||
| 52 | }, # OPTIONAL | ||
| 53 | IsImmutable => 1, # OPTIONAL | ||
| 54 | Rules => { | ||
| 55 | 'MyRuleKey' => { | ||
| 56 | Parameters => | ||
| 57 | { 'MyRuleParameterKey' => 'MyRuleParameterValue', } | ||
| 58 | , # OPTIONAL | ||
| 59 | Type => 'BINARY_LENGTH' | ||
| 60 | , # values: BINARY_LENGTH, NUMBER_COMPARISON, STRING_FROM_SET, STRING_LENGTH; OPTIONAL | ||
| 61 | }, # key: min: 1, max: 64 | ||
| 62 | }, # OPTIONAL | ||
| 63 | }, # OPTIONAL | ||
| 64 | AttributeReference => { | ||
| 65 | TargetAttributeName => 'MyAttributeName', # min: 1, max: 230 | ||
| 66 | TargetFacetName => 'MyFacetName', # min: 1, max: 64 | ||
| 67 | |||
| 68 | }, # OPTIONAL | ||
| 69 | RequiredBehavior => 'REQUIRED_ALWAYS' | ||
| 70 | , # values: REQUIRED_ALWAYS, NOT_REQUIRED; OPTIONAL | ||
| 71 | }, # OPTIONAL | ||
| 72 | }, | ||
| 73 | ... | ||
| 74 | ], # OPTIONAL | ||
| 75 | ObjectType => 'NODE', # OPTIONAL | ||
| 76 | ); | ||
| 77 | |||
| 78 | 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. | ||
| 79 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/clouddirectory/UpdateFacet> | ||
| 80 | |||
| 81 | =head1 ATTRIBUTES | ||
| 82 | |||
| 83 | |||
| 84 | =head2 AttributeUpdates => ArrayRef[L<Paws::CloudDirectory::FacetAttributeUpdate>] | ||
| 85 | |||
| 86 | List of attributes that need to be updated in a given schema Facet. | ||
| 87 | Each attribute is followed by C<AttributeAction>, which specifies the | ||
| 88 | type of update operation to perform. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head2 B<REQUIRED> Name => Str | ||
| 93 | |||
| 94 | The name of the facet. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 ObjectType => Str | ||
| 99 | |||
| 100 | The object type that is associated with the facet. See | ||
| 101 | CreateFacetRequest$ObjectType for more details. | ||
| 102 | |||
| 103 | Valid values are: C<"NODE">, C<"LEAF_NODE">, C<"POLICY">, C<"INDEX"> | ||
| 104 | |||
| 105 | =head2 B<REQUIRED> SchemaArn => Str | ||
| 106 | |||
| 107 | The Amazon Resource Name (ARN) that is associated with the Facet. For | ||
| 108 | more information, see arns. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head1 SEE ALSO | ||
| 114 | |||
| 115 | This class forms part of L<Paws>, documenting arguments for method UpdateFacet in L<Paws::CloudDirectory> | ||
| 116 | |||
| 117 | =head1 BUGS and CONTRIBUTIONS | ||
| 118 | |||
| 119 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 120 | |||
| 121 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 122 | |||
| 123 | =cut | ||
| 124 |