« blib/lib/Paws/IoT/CreateCustomMetricResponse.pm
↑ Summary
blib/lib/Paws/IoT/CreateDimensionResponse.pm »
| 1 | |||
| 2 | package Paws::IoT::CreateDimension; | ||
| 3 | use Moose; | ||
| 4 | has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken', required => 1); | ||
| 5 | has Name => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'name', required => 1); | ||
| 6 | has StringValues => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'stringValues', required => 1); | ||
| 7 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 8 | has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type', required => 1); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDimension'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/dimensions/{name}'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateDimensionResponse'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::IoT::CreateDimension - Arguments for method CreateDimension on L<Paws::IoT> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateDimension on the | ||
| 27 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateDimension. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDimension. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $iot = Paws->service('IoT'); | ||
| 35 | my $CreateDimensionResponse = $iot->CreateDimension( | ||
| 36 | ClientRequestToken => 'MyClientRequestToken', | ||
| 37 | Name => 'MyDimensionName', | ||
| 38 | StringValues => [ | ||
| 39 | 'MyDimensionStringValue', ... # min: 1, max: 256 | ||
| 40 | ], | ||
| 41 | Type => 'TOPIC_FILTER', | ||
| 42 | Tags => [ | ||
| 43 | { | ||
| 44 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 45 | Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL | ||
| 46 | }, | ||
| 47 | ... | ||
| 48 | ], # OPTIONAL | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $Arn = $CreateDimensionResponse->Arn; | ||
| 53 | my $Name = $CreateDimensionResponse->Name; | ||
| 54 | |||
| 55 | # Returns a L<Paws::IoT::CreateDimensionResponse> object. | ||
| 56 | |||
| 57 | 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. | ||
| 58 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateDimension> | ||
| 59 | |||
| 60 | =head1 ATTRIBUTES | ||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> ClientRequestToken => Str | ||
| 64 | |||
| 65 | Each dimension must have a unique client request token. If you try to | ||
| 66 | create a new dimension with the same token as a dimension that already | ||
| 67 | exists, an exception occurs. If you omit this value, AWS SDKs will | ||
| 68 | automatically generate a unique client request. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 B<REQUIRED> Name => Str | ||
| 73 | |||
| 74 | A unique identifier for the dimension. Choose something that describes | ||
| 75 | the type and value to make it easy to remember what it does. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> StringValues => ArrayRef[Str|Undef] | ||
| 80 | |||
| 81 | Specifies the value or list of values for the dimension. For | ||
| 82 | C<TOPIC_FILTER> dimensions, this is a pattern used to match the MQTT | ||
| 83 | topic (for example, "admin/#"). | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head2 Tags => ArrayRef[L<Paws::IoT::Tag>] | ||
| 88 | |||
| 89 | Metadata that can be used to manage the dimension. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 B<REQUIRED> Type => Str | ||
| 94 | |||
| 95 | Specifies the type of dimension. Supported types: C<TOPIC_FILTER.> | ||
| 96 | |||
| 97 | Valid values are: C<"TOPIC_FILTER"> | ||
| 98 | |||
| 99 | |||
| 100 | =head1 SEE ALSO | ||
| 101 | |||
| 102 | This class forms part of L<Paws>, documenting arguments for method CreateDimension in L<Paws::IoT> | ||
| 103 | |||
| 104 | =head1 BUGS and CONTRIBUTIONS | ||
| 105 | |||
| 106 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 107 | |||
| 108 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 109 | |||
| 110 | =cut | ||
| 111 |