GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Paws::ApiGateway::CreateRestApi(3) User Contributed Perl Documentation Paws::ApiGateway::CreateRestApi(3)

Paws::ApiGateway::CreateRestApi - Arguments for method CreateRestApi on Paws::ApiGateway

This class represents the parameters used for calling the method CreateRestApi on the Amazon API Gateway service. Use the attributes of this class as arguments to method CreateRestApi.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRestApi.

    my $apigateway = Paws->service('ApiGateway');
    my $RestApi = $apigateway->CreateRestApi(
      Name                      => 'MyString',
      ApiKeySource              => 'HEADER',               # OPTIONAL
      BinaryMediaTypes          => [ 'MyString', ... ],    # OPTIONAL
      CloneFrom                 => 'MyString',             # OPTIONAL
      Description               => 'MyString',             # OPTIONAL
      DisableExecuteApiEndpoint => 1,                      # OPTIONAL
      EndpointConfiguration     => {
        Types => [
          'REGIONAL', ...    # values: REGIONAL, EDGE, PRIVATE
        ],    # OPTIONAL
        VpcEndpointIds => [ 'MyString', ... ],
      },    # OPTIONAL
      MinimumCompressionSize => 1,                                # OPTIONAL
      Policy                 => 'MyString',                       # OPTIONAL
      Tags                   => { 'MyString' => 'MyString', },    # OPTIONAL
      Version                => 'MyString',                       # OPTIONAL
    );
    # Results:
    my $ApiKeySource              = $RestApi->ApiKeySource;
    my $BinaryMediaTypes          = $RestApi->BinaryMediaTypes;
    my $CreatedDate               = $RestApi->CreatedDate;
    my $Description               = $RestApi->Description;
    my $DisableExecuteApiEndpoint = $RestApi->DisableExecuteApiEndpoint;
    my $EndpointConfiguration     = $RestApi->EndpointConfiguration;
    my $Id                        = $RestApi->Id;
    my $MinimumCompressionSize    = $RestApi->MinimumCompressionSize;
    my $Name                      = $RestApi->Name;
    my $Policy                    = $RestApi->Policy;
    my $Tags                      = $RestApi->Tags;
    my $Version                   = $RestApi->Version;
    my $Warnings                  = $RestApi->Warnings;
    # Returns a L<Paws::ApiGateway::RestApi> object.

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. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/apigateway/CreateRestApi>

The source of the API key for metering requests according to a usage plan. Valid values are:

  • "HEADER" to read the API key from the "X-API-Key" header of a request.
  • "AUTHORIZER" to read the API key from the "UsageIdentifierKey" from a custom authorizer.

Valid values are: "HEADER", "AUTHORIZER"

The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.

The ID of the RestApi that you want to clone from.

The description of the RestApi.

Specifies whether clients can invoke your API by using the default "execute-api" endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

The endpoint configuration of this RestApi showing the endpoint types of the API.

A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.

REQUIRED Name => Str

[Required] The name of the RestApi.

A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with "aws:". The tag value can be up to 256 characters.

A version identifier for the API.

This class forms part of Paws, documenting arguments for method CreateRestApi in Paws::ApiGateway

The source code is located here: <https://github.com/pplu/aws-sdk-perl>

Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>

2022-06-01 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.