« blib/lib/Paws/IoT/AssetPropertyVariant.pm
↑ Summary
blib/lib/Paws/IoT/AssociateTargetsWithJobResponse.pm »
| 1 | |||
| 2 | package Paws::IoT::AssociateTargetsWithJob; | ||
| 3 | use Moose; | ||
| 4 | has Comment => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'comment'); | ||
| 5 | has JobId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'jobId', required => 1); | ||
| 6 | has NamespaceId => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'namespaceId'); | ||
| 7 | has Targets => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'targets', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssociateTargetsWithJob'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/jobs/{jobId}/targets'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::AssociateTargetsWithJobResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::IoT::AssociateTargetsWithJob - Arguments for method AssociateTargetsWithJob on L<Paws::IoT> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method AssociateTargetsWithJob on the | ||
| 26 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 27 | as arguments to method AssociateTargetsWithJob. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssociateTargetsWithJob. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $iot = Paws->service('IoT'); | ||
| 34 | my $AssociateTargetsWithJobResponse = $iot->AssociateTargetsWithJob( | ||
| 35 | JobId => 'MyJobId', | ||
| 36 | Targets => [ | ||
| 37 | 'MyTargetArn', ... # max: 2048 | ||
| 38 | ], | ||
| 39 | Comment => 'MyComment', # OPTIONAL | ||
| 40 | NamespaceId => 'MyNamespaceId', # OPTIONAL | ||
| 41 | ); | ||
| 42 | |||
| 43 | # Results: | ||
| 44 | my $Description = $AssociateTargetsWithJobResponse->Description; | ||
| 45 | my $JobArn = $AssociateTargetsWithJobResponse->JobArn; | ||
| 46 | my $JobId = $AssociateTargetsWithJobResponse->JobId; | ||
| 47 | |||
| 48 | # Returns a L<Paws::IoT::AssociateTargetsWithJobResponse> object. | ||
| 49 | |||
| 50 | 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. | ||
| 51 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/AssociateTargetsWithJob> | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | |||
| 56 | =head2 Comment => Str | ||
| 57 | |||
| 58 | An optional comment string describing why the job was associated with | ||
| 59 | the targets. | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> JobId => Str | ||
| 64 | |||
| 65 | The unique identifier you assigned to this job when it was created. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 NamespaceId => Str | ||
| 70 | |||
| 71 | The namespace used to indicate that a job is a customer-managed job. | ||
| 72 | |||
| 73 | When you specify a value for this parameter, AWS IoT Core sends jobs | ||
| 74 | notifications to MQTT topics that contain the value in the following | ||
| 75 | format. | ||
| 76 | |||
| 77 | C<$aws/things/I<THING_NAME>/jobs/I<JOB_ID>/notify-namespace-I<NAMESPACE_ID>/> | ||
| 78 | |||
| 79 | The C<namespaceId> feature is in public preview. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 B<REQUIRED> Targets => ArrayRef[Str|Undef] | ||
| 84 | |||
| 85 | A list of thing group ARNs that define the targets of the job. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head1 SEE ALSO | ||
| 91 | |||
| 92 | This class forms part of L<Paws>, documenting arguments for method AssociateTargetsWithJob in L<Paws::IoT> | ||
| 93 | |||
| 94 | =head1 BUGS and CONTRIBUTIONS | ||
| 95 | |||
| 96 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 97 | |||
| 98 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 99 | |||
| 100 | =cut | ||
| 101 |