« blib/lib/Paws/ApiGatewayV2/CreateApiInput.pm
↑ Summary
blib/lib/Paws/ApiGatewayV2/CreateApiMappingInput.pm »
| 1 | |||
| 2 | package Paws::ApiGatewayV2::CreateApiMapping; | ||
| 3 | use Moose; | ||
| 4 | has ApiId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'apiId', required => 1); | ||
| 5 | has ApiMappingKey => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'apiMappingKey'); | ||
| 6 | has DomainName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'domainName', required => 1); | ||
| 7 | has Stage => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'stage', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApiMapping'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v2/domainnames/{domainName}/apimappings'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGatewayV2::CreateApiMappingResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::ApiGatewayV2::CreateApiMapping - Arguments for method CreateApiMapping on L<Paws::ApiGatewayV2> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CreateApiMapping on the | ||
| 26 | L<AmazonApiGatewayV2|Paws::ApiGatewayV2> service. Use the attributes of this class | ||
| 27 | as arguments to method CreateApiMapping. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApiMapping. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $apigateway = Paws->service('ApiGatewayV2'); | ||
| 34 | my $CreateApiMappingResponse = $apigateway->CreateApiMapping( | ||
| 35 | ApiId => 'MyId', | ||
| 36 | DomainName => 'My__string', | ||
| 37 | Stage => 'MyStringWithLengthBetween1And128', | ||
| 38 | ApiMappingKey => 'MySelectionKey', # OPTIONAL | ||
| 39 | ); | ||
| 40 | |||
| 41 | # Results: | ||
| 42 | my $ApiId = $CreateApiMappingResponse->ApiId; | ||
| 43 | my $ApiMappingId = $CreateApiMappingResponse->ApiMappingId; | ||
| 44 | my $ApiMappingKey = $CreateApiMappingResponse->ApiMappingKey; | ||
| 45 | my $Stage = $CreateApiMappingResponse->Stage; | ||
| 46 | |||
| 47 | # Returns a L<Paws::ApiGatewayV2::CreateApiMappingResponse> object. | ||
| 48 | |||
| 49 | 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. | ||
| 50 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apigateway/CreateApiMapping> | ||
| 51 | |||
| 52 | =head1 ATTRIBUTES | ||
| 53 | |||
| 54 | |||
| 55 | =head2 B<REQUIRED> ApiId => Str | ||
| 56 | |||
| 57 | The API identifier. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head2 ApiMappingKey => Str | ||
| 62 | |||
| 63 | The API mapping key. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> DomainName => Str | ||
| 68 | |||
| 69 | The domain name. | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | =head2 B<REQUIRED> Stage => Str | ||
| 74 | |||
| 75 | The API stage. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head1 SEE ALSO | ||
| 81 | |||
| 82 | This class forms part of L<Paws>, documenting arguments for method CreateApiMapping in L<Paws::ApiGatewayV2> | ||
| 83 | |||
| 84 | =head1 BUGS and CONTRIBUTIONS | ||
| 85 | |||
| 86 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 87 | |||
| 88 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 89 | |||
| 90 | =cut | ||
| 91 |