« blib/lib/Paws/IoT/CreateSecurityProfileResponse.pm
↑ Summary
blib/lib/Paws/IoT/CreateStreamResponse.pm »
| 1 | |||
| 2 | package Paws::IoT::CreateStream; | ||
| 3 | use Moose; | ||
| 4 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 5 | has Files => (is => 'ro', isa => 'ArrayRef[Paws::IoT::StreamFile]', traits => ['NameInRequest'], request_name => 'files', required => 1); | ||
| 6 | has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn', required => 1); | ||
| 7 | has StreamId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'streamId', required => 1); | ||
| 8 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateStream'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/streams/{streamId}'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateStreamResponse'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::IoT::CreateStream - Arguments for method CreateStream on L<Paws::IoT> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateStream on the | ||
| 27 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateStream. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateStream. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $iot = Paws->service('IoT'); | ||
| 35 | my $CreateStreamResponse = $iot->CreateStream( | ||
| 36 | Files => [ | ||
| 37 | { | ||
| 38 | FileId => 1, # max: 255; OPTIONAL | ||
| 39 | S3Location => { | ||
| 40 | Bucket => 'MyS3Bucket', # min: 1; OPTIONAL | ||
| 41 | Key => 'MyS3Key', # min: 1; OPTIONAL | ||
| 42 | Version => 'MyS3Version', # OPTIONAL | ||
| 43 | }, # OPTIONAL | ||
| 44 | }, | ||
| 45 | ... | ||
| 46 | ], | ||
| 47 | RoleArn => 'MyRoleArn', | ||
| 48 | StreamId => 'MyStreamId', | ||
| 49 | Description => 'MyStreamDescription', # OPTIONAL | ||
| 50 | Tags => [ | ||
| 51 | { | ||
| 52 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 53 | Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL | ||
| 54 | }, | ||
| 55 | ... | ||
| 56 | ], # OPTIONAL | ||
| 57 | ); | ||
| 58 | |||
| 59 | # Results: | ||
| 60 | my $Description = $CreateStreamResponse->Description; | ||
| 61 | my $StreamArn = $CreateStreamResponse->StreamArn; | ||
| 62 | my $StreamId = $CreateStreamResponse->StreamId; | ||
| 63 | my $StreamVersion = $CreateStreamResponse->StreamVersion; | ||
| 64 | |||
| 65 | # Returns a L<Paws::IoT::CreateStreamResponse> object. | ||
| 66 | |||
| 67 | 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. | ||
| 68 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateStream> | ||
| 69 | |||
| 70 | =head1 ATTRIBUTES | ||
| 71 | |||
| 72 | |||
| 73 | =head2 Description => Str | ||
| 74 | |||
| 75 | A description of the stream. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> Files => ArrayRef[L<Paws::IoT::StreamFile>] | ||
| 80 | |||
| 81 | The files to stream. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 B<REQUIRED> RoleArn => Str | ||
| 86 | |||
| 87 | An IAM role that allows the IoT service principal assumes to access | ||
| 88 | your S3 files. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head2 B<REQUIRED> StreamId => Str | ||
| 93 | |||
| 94 | The stream ID. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 Tags => ArrayRef[L<Paws::IoT::Tag>] | ||
| 99 | |||
| 100 | Metadata which can be used to manage streams. | ||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head1 SEE ALSO | ||
| 106 | |||
| 107 | This class forms part of L<Paws>, documenting arguments for method CreateStream in L<Paws::IoT> | ||
| 108 | |||
| 109 | =head1 BUGS and CONTRIBUTIONS | ||
| 110 | |||
| 111 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 112 | |||
| 113 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 114 | |||
| 115 | =cut | ||
| 116 |