| 1 | |||
| 2 | package Paws::IoT::UpdateThing; | ||
| 3 | use Moose; | ||
| 4 | has AttributePayload => (is => 'ro', isa => 'Paws::IoT::AttributePayload', traits => ['NameInRequest'], request_name => 'attributePayload'); | ||
| 5 | has ExpectedVersion => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'expectedVersion'); | ||
| 6 | has RemoveThingType => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'removeThingType'); | ||
| 7 | has ThingName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'thingName', required => 1); | ||
| 8 | has ThingTypeName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'thingTypeName'); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateThing'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/things/{thingName}'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::UpdateThingResponse'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::IoT::UpdateThing - Arguments for method UpdateThing on L<Paws::IoT> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method UpdateThing on the | ||
| 27 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 28 | as arguments to method UpdateThing. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateThing. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $iot = Paws->service('IoT'); | ||
| 35 | my $UpdateThingResponse = $iot->UpdateThing( | ||
| 36 | ThingName => 'MyThingName', | ||
| 37 | AttributePayload => { | ||
| 38 | Attributes => { | ||
| 39 | 'MyAttributeName' => | ||
| 40 | 'MyAttributeValue', # key: max: 128, value: max: 800 | ||
| 41 | }, # OPTIONAL | ||
| 42 | Merge => 1, # OPTIONAL | ||
| 43 | }, # OPTIONAL | ||
| 44 | ExpectedVersion => 1, # OPTIONAL | ||
| 45 | RemoveThingType => 1, # OPTIONAL | ||
| 46 | ThingTypeName => 'MyThingTypeName', # OPTIONAL | ||
| 47 | ); | ||
| 48 | |||
| 49 | 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. | ||
| 50 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/UpdateThing> | ||
| 51 | |||
| 52 | =head1 ATTRIBUTES | ||
| 53 | |||
| 54 | |||
| 55 | =head2 AttributePayload => L<Paws::IoT::AttributePayload> | ||
| 56 | |||
| 57 | A list of thing attributes, a JSON string containing name-value pairs. | ||
| 58 | For example: | ||
| 59 | |||
| 60 | C<{\"attributes\":{\"name1\":\"value2\"}}> | ||
| 61 | |||
| 62 | This data is used to add new attributes or update existing attributes. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 ExpectedVersion => Int | ||
| 67 | |||
| 68 | The expected version of the thing record in the registry. If the | ||
| 69 | version of the record in the registry does not match the expected | ||
| 70 | version specified in the request, the C<UpdateThing> request is | ||
| 71 | rejected with a C<VersionConflictException>. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 RemoveThingType => Bool | ||
| 76 | |||
| 77 | Remove a thing type association. If B<true>, the association is | ||
| 78 | removed. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 B<REQUIRED> ThingName => Str | ||
| 83 | |||
| 84 | The name of the thing to update. | ||
| 85 | |||
| 86 | You can't change a thing's name. To change a thing's name, you must | ||
| 87 | create a new thing, give it the new name, and then delete the old | ||
| 88 | thing. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head2 ThingTypeName => Str | ||
| 93 | |||
| 94 | The name of the thing type. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head1 SEE ALSO | ||
| 100 | |||
| 101 | This class forms part of L<Paws>, documenting arguments for method UpdateThing in L<Paws::IoT> | ||
| 102 | |||
| 103 | =head1 BUGS and CONTRIBUTIONS | ||
| 104 | |||
| 105 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 106 | |||
| 107 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 108 | |||
| 109 | =cut | ||
| 110 |