« blib/lib/Paws/IoTEvents/CreateDetectorModelResponse.pm
↑ Summary
blib/lib/Paws/IoTEvents/CreateInputResponse.pm »
| 1 | |||
| 2 | package Paws::IoTEvents::CreateInput; | ||
| 3 | use Moose; | ||
| 4 | has InputDefinition => (is => 'ro', isa => 'Paws::IoTEvents::InputDefinition', traits => ['NameInRequest'], request_name => 'inputDefinition', required => 1); | ||
| 5 | has InputDescription => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'inputDescription'); | ||
| 6 | has InputName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'inputName', required => 1); | ||
| 7 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoTEvents::Tag]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateInput'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/inputs'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoTEvents::CreateInputResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::IoTEvents::CreateInput - Arguments for method CreateInput on L<Paws::IoTEvents> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CreateInput on the | ||
| 26 | L<AWS IoT Events|Paws::IoTEvents> service. Use the attributes of this class | ||
| 27 | as arguments to method CreateInput. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateInput. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $iotevents = Paws->service('IoTEvents'); | ||
| 34 | my $CreateInputResponse = $iotevents->CreateInput( | ||
| 35 | InputDefinition => { | ||
| 36 | Attributes => [ | ||
| 37 | { | ||
| 38 | JsonPath => 'MyAttributeJsonPath', # min: 1, max: 128 | ||
| 39 | |||
| 40 | }, | ||
| 41 | ... | ||
| 42 | ], # min: 1, max: 200 | ||
| 43 | |||
| 44 | }, | ||
| 45 | InputName => 'MyInputName', | ||
| 46 | InputDescription => 'MyInputDescription', # OPTIONAL | ||
| 47 | Tags => [ | ||
| 48 | { | ||
| 49 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 50 | Value => 'MyTagValue', # max: 256 | ||
| 51 | |||
| 52 | }, | ||
| 53 | ... | ||
| 54 | ], # OPTIONAL | ||
| 55 | ); | ||
| 56 | |||
| 57 | # Results: | ||
| 58 | my $InputConfiguration = $CreateInputResponse->InputConfiguration; | ||
| 59 | |||
| 60 | # Returns a L<Paws::IoTEvents::CreateInputResponse> object. | ||
| 61 | |||
| 62 | 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. | ||
| 63 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iotevents/CreateInput> | ||
| 64 | |||
| 65 | =head1 ATTRIBUTES | ||
| 66 | |||
| 67 | |||
| 68 | =head2 B<REQUIRED> InputDefinition => L<Paws::IoTEvents::InputDefinition> | ||
| 69 | |||
| 70 | The definition of the input. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 InputDescription => Str | ||
| 75 | |||
| 76 | A brief description of the input. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 B<REQUIRED> InputName => Str | ||
| 81 | |||
| 82 | The name you want to give to the input. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head2 Tags => ArrayRef[L<Paws::IoTEvents::Tag>] | ||
| 87 | |||
| 88 | Metadata that can be used to manage the input. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head1 SEE ALSO | ||
| 94 | |||
| 95 | This class forms part of L<Paws>, documenting arguments for method CreateInput in L<Paws::IoTEvents> | ||
| 96 | |||
| 97 | =head1 BUGS and CONTRIBUTIONS | ||
| 98 | |||
| 99 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 100 | |||
| 101 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 102 | |||
| 103 | =cut | ||
| 104 |