class Aws::ApiGatewayV2::Types::CreateApiRequest
@note When making an API call, you may pass CreateApiRequest
data as a hash: { api_key_selection_expression: "SelectionExpression", cors_configuration: { allow_credentials: false, allow_headers: ["__string"], allow_methods: ["StringWithLengthBetween1And64"], allow_origins: ["__string"], expose_headers: ["__string"], max_age: 1, }, credentials_arn: "Arn", description: "StringWithLengthBetween0And1024", disable_schema_validation: false, disable_execute_api_endpoint: false, name: "StringWithLengthBetween1And128", # required protocol_type: "WEBSOCKET", # required, accepts WEBSOCKET, HTTP route_key: "SelectionKey", route_selection_expression: "SelectionExpression", tags: { "__string" => "StringWithLengthBetween1And1600", }, target: "UriWithLengthBetween1And2048", version: "StringWithLengthBetween1And64", }
@!attribute [rw] api_key_selection_expression
An expression used to extract information at runtime. See [Selection Expressions][1] for more information. [1]: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions @return [String]
@!attribute [rw] cors_configuration
Represents a CORS configuration. Supported only for HTTP APIs. See [Configuring CORS][1] for more information. [1]: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html @return [Types::Cors]
@!attribute [rw] credentials_arn
Represents an Amazon Resource Name (ARN). @return [String]
@!attribute [rw] description
A string with a length between \[0-1024\]. @return [String]
@!attribute [rw] disable_schema_validation
@return [Boolean]
@!attribute [rw] disable_execute_api_endpoint
@return [Boolean]
@!attribute [rw] name
A string with a length between \[1-128\]. @return [String]
@!attribute [rw] protocol_type
Represents a protocol type. @return [String]
@!attribute [rw] route_key
After evaluating a selection expression, the result is compared against one or more selection keys to find a matching key. See [Selection Expressions][1] for a list of expressions and each expression's associated selection key type. [1]: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions @return [String]
@!attribute [rw] route_selection_expression
An expression used to extract information at runtime. See [Selection Expressions][1] for more information. [1]: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions @return [String]
@!attribute [rw] tags
Represents a collection of tags associated with the resource. @return [Hash<String,String>]
@!attribute [rw] target
A string representation of a URI with a length between \[1-2048\]. @return [String]
@!attribute [rw] version
A string with a length between \[1-64\]. @return [String]
Constants
- SENSITIVE