Class ApiArgs
Inherited Members
Namespace: Pulumi.Aws.ApiGatewayV2
Assembly: Pulumi.Aws.dll
Syntax
public sealed class ApiArgs : ResourceArgs
Constructors
View SourceApiArgs()
Declaration
public ApiArgs()
Properties
View SourceApiKeySelectionExpression
An API key selection expression.
Valid values: $context.authorizer.usageIdentifierKey, $request.header.x-api-key. Defaults to $request.header.x-api-key.
Applicable for WebSocket APIs.
Declaration
public Input<string> ApiKeySelectionExpression { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CorsConfiguration
The cross-origin resource sharing (CORS) configuration. Applicable for HTTP APIs.
Declaration
public Input<ApiCorsConfigurationArgs> CorsConfiguration { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<ApiCorsConfigurationArgs> |
CredentialsArn
Part of quick create. Specifies any credentials required for the integration. Applicable for HTTP APIs.
Declaration
public Input<string> CredentialsArn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Description
The description of the API.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
The name of the API.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ProtocolType
The API protocol. Valid values: HTTP, WEBSOCKET.
Declaration
public Input<string> ProtocolType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RouteKey
Part of quick create. Specifies any route key. Applicable for HTTP APIs.
Declaration
public Input<string> RouteKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RouteSelectionExpression
The route selection expression for the API.
Defaults to $request.method $request.path.
Declaration
public Input<string> RouteSelectionExpression { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
A map of tags to assign to the API.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
Target
Part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes.
For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN.
The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Applicable for HTTP APIs.
Declaration
public Input<string> Target { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Version
A version identifier for the API.
Declaration
public Input<string> Version { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |