« blib/lib/Paws/IoT/UpdateThingGroupResponse.pm
↑ Summary
blib/lib/Paws/IoT/UpdateThingGroupsForThingResponse.pm »
| 1 | |||
| 2 | package Paws::IoT::UpdateThingGroupsForThing; | ||
| 3 | use Moose; | ||
| 4 | has OverrideDynamicGroups => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'overrideDynamicGroups'); | ||
| 5 | has ThingGroupsToAdd => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'thingGroupsToAdd'); | ||
| 6 | has ThingGroupsToRemove => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'thingGroupsToRemove'); | ||
| 7 | has ThingName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'thingName'); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateThingGroupsForThing'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/thing-groups/updateThingGroupsForThing'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::UpdateThingGroupsForThingResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::IoT::UpdateThingGroupsForThing - Arguments for method UpdateThingGroupsForThing on L<Paws::IoT> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdateThingGroupsForThing on the | ||
| 26 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdateThingGroupsForThing. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateThingGroupsForThing. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $iot = Paws->service('IoT'); | ||
| 34 | my $UpdateThingGroupsForThingResponse = $iot->UpdateThingGroupsForThing( | ||
| 35 | OverrideDynamicGroups => 1, # OPTIONAL | ||
| 36 | ThingGroupsToAdd => [ | ||
| 37 | 'MyThingGroupName', ... # min: 1, max: 128 | ||
| 38 | ], # OPTIONAL | ||
| 39 | ThingGroupsToRemove => [ | ||
| 40 | 'MyThingGroupName', ... # min: 1, max: 128 | ||
| 41 | ], # OPTIONAL | ||
| 42 | ThingName => 'MyThingName', # OPTIONAL | ||
| 43 | ); | ||
| 44 | |||
| 45 | 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. | ||
| 46 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/UpdateThingGroupsForThing> | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 OverrideDynamicGroups => Bool | ||
| 52 | |||
| 53 | Override dynamic thing groups with static thing groups when 10-group | ||
| 54 | limit is reached. If a thing belongs to 10 thing groups, and one or | ||
| 55 | more of those groups are dynamic thing groups, adding a thing to a | ||
| 56 | static group removes the thing from the last dynamic group. | ||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | =head2 ThingGroupsToAdd => ArrayRef[Str|Undef] | ||
| 61 | |||
| 62 | The groups to which the thing will be added. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 ThingGroupsToRemove => ArrayRef[Str|Undef] | ||
| 67 | |||
| 68 | The groups from which the thing will be removed. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 ThingName => Str | ||
| 73 | |||
| 74 | The thing whose group memberships will be updated. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head1 SEE ALSO | ||
| 80 | |||
| 81 | This class forms part of L<Paws>, documenting arguments for method UpdateThingGroupsForThing in L<Paws::IoT> | ||
| 82 | |||
| 83 | =head1 BUGS and CONTRIBUTIONS | ||
| 84 | |||
| 85 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 86 | |||
| 87 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 88 | |||
| 89 | =cut | ||
| 90 |