AWS Native is in preview. AWS Classic is fully supported.
aws-native.apigatewayv2.getModel
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
The AWS::ApiGatewayV2::Model
resource updates data model for a WebSocket API. For more information, see Model Selection Expressions in the API Gateway Developer Guide.
Using getModel
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>
def get_model(api_id: Optional[str] = None,
model_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelResult
def get_model_output(api_id: Optional[pulumi.Input[str]] = None,
model_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]
func LookupModel(ctx *Context, args *LookupModelArgs, opts ...InvokeOption) (*LookupModelResult, error)
func LookupModelOutput(ctx *Context, args *LookupModelOutputArgs, opts ...InvokeOption) LookupModelResultOutput
> Note: This function is named LookupModel
in the Go SDK.
public static class GetModel
{
public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:apigatewayv2:getModel
arguments:
# arguments dictionary
The following arguments are supported:
getModel Result
The following output properties are available:
- Content
Type string - The content-type for the model, for example, "application/json".
- Description string
- The description of the model.
- Model
Id string - The model ID.
- Name string
- The name of the model.
- Schema object
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Model
for more information about the expected schema for this property.
- Content
Type string - The content-type for the model, for example, "application/json".
- Description string
- The description of the model.
- Model
Id string - The model ID.
- Name string
- The name of the model.
- Schema interface{}
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Model
for more information about the expected schema for this property.
- content
Type String - The content-type for the model, for example, "application/json".
- description String
- The description of the model.
- model
Id String - The model ID.
- name String
- The name of the model.
- schema Object
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Model
for more information about the expected schema for this property.
- content
Type string - The content-type for the model, for example, "application/json".
- description string
- The description of the model.
- model
Id string - The model ID.
- name string
- The name of the model.
- schema any
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Model
for more information about the expected schema for this property.
- content_
type str - The content-type for the model, for example, "application/json".
- description str
- The description of the model.
- model_
id str - The model ID.
- name str
- The name of the model.
- schema Any
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Model
for more information about the expected schema for this property.
- content
Type String - The content-type for the model, for example, "application/json".
- description String
- The description of the model.
- model
Id String - The model ID.
- name String
- The name of the model.
- schema Any
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Model
for more information about the expected schema for this property.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.