We recommend new projects start with resources from the AWS provider.
aws-native.eventschemas.Schema
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EventSchemas::Schema
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var executionStatusChangeSchema = new AwsNative.EventSchemas.Schema("executionStatusChangeSchema", new()
{
RegistryName = "aws.events",
SchemaName = "ExecutionStatusChange",
Description = "event emitted when the status of a state machine execution change",
Type = "OpenApi3",
Content = "{ \"openapi\": \"3.0.0\", \"info\": { \"version\": \"1.0.0\", \"title\": \"StepFunctionsExecutionStatusChange\" }, \"paths\":{}, \"components\": { \"schemas\": { \"StepFunctionsExecutionStatusChange\": { \"type\": \"object\", \"required\": [ \"output\", \"input\", \"executionArn\", \"name\", \"stateMachineArn\", \"startDate\", \"stopDate\", \"status\" ], \"properties\": { \"output\": {\"type\": \"string\",\"nullable\": true}, \"input\": {\"type\": \"string\"}, \"executionArn\": {\"type\": \"string\"}, \"name\": {\"type\": \"string\"}, \"stateMachineArn\": {\"type\": \"string\"}, \"startDate\": {\"type\": \"integer\",\"format\": \"int64\"}, \"stopDate\": {\"type\": \"integer\",\"format\": \"int64\",\"nullable\": true}, \"status\": {\"type\": \"string\",\"enum\": [ \"FAILED\", \"RUNNING\", \"SUCCEEDED\", \"ABORTED\" ]} } } } } }",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/eventschemas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventschemas.NewSchema(ctx, "executionStatusChangeSchema", &eventschemas.SchemaArgs{
RegistryName: pulumi.String("aws.events"),
SchemaName: pulumi.String("ExecutionStatusChange"),
Description: pulumi.String("event emitted when the status of a state machine execution change"),
Type: pulumi.String("OpenApi3"),
Content: pulumi.String("{ \"openapi\": \"3.0.0\", \"info\": { \"version\": \"1.0.0\", \"title\": \"StepFunctionsExecutionStatusChange\" }, \"paths\":{}, \"components\": { \"schemas\": { \"StepFunctionsExecutionStatusChange\": { \"type\": \"object\", \"required\": [ \"output\", \"input\", \"executionArn\", \"name\", \"stateMachineArn\", \"startDate\", \"stopDate\", \"status\" ], \"properties\": { \"output\": {\"type\": \"string\",\"nullable\": true}, \"input\": {\"type\": \"string\"}, \"executionArn\": {\"type\": \"string\"}, \"name\": {\"type\": \"string\"}, \"stateMachineArn\": {\"type\": \"string\"}, \"startDate\": {\"type\": \"integer\",\"format\": \"int64\"}, \"stopDate\": {\"type\": \"integer\",\"format\": \"int64\",\"nullable\": true}, \"status\": {\"type\": \"string\",\"enum\": [ \"FAILED\", \"RUNNING\", \"SUCCEEDED\", \"ABORTED\" ]} } } } } }"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
execution_status_change_schema = aws_native.eventschemas.Schema("executionStatusChangeSchema",
registry_name="aws.events",
schema_name="ExecutionStatusChange",
description="event emitted when the status of a state machine execution change",
type="OpenApi3",
content="{ \"openapi\": \"3.0.0\", \"info\": { \"version\": \"1.0.0\", \"title\": \"StepFunctionsExecutionStatusChange\" }, \"paths\":{}, \"components\": { \"schemas\": { \"StepFunctionsExecutionStatusChange\": { \"type\": \"object\", \"required\": [ \"output\", \"input\", \"executionArn\", \"name\", \"stateMachineArn\", \"startDate\", \"stopDate\", \"status\" ], \"properties\": { \"output\": {\"type\": \"string\",\"nullable\": true}, \"input\": {\"type\": \"string\"}, \"executionArn\": {\"type\": \"string\"}, \"name\": {\"type\": \"string\"}, \"stateMachineArn\": {\"type\": \"string\"}, \"startDate\": {\"type\": \"integer\",\"format\": \"int64\"}, \"stopDate\": {\"type\": \"integer\",\"format\": \"int64\",\"nullable\": true}, \"status\": {\"type\": \"string\",\"enum\": [ \"FAILED\", \"RUNNING\", \"SUCCEEDED\", \"ABORTED\" ]} } } } } }")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const executionStatusChangeSchema = new aws_native.eventschemas.Schema("executionStatusChangeSchema", {
registryName: "aws.events",
schemaName: "ExecutionStatusChange",
description: "event emitted when the status of a state machine execution change",
type: "OpenApi3",
content: "{ \"openapi\": \"3.0.0\", \"info\": { \"version\": \"1.0.0\", \"title\": \"StepFunctionsExecutionStatusChange\" }, \"paths\":{}, \"components\": { \"schemas\": { \"StepFunctionsExecutionStatusChange\": { \"type\": \"object\", \"required\": [ \"output\", \"input\", \"executionArn\", \"name\", \"stateMachineArn\", \"startDate\", \"stopDate\", \"status\" ], \"properties\": { \"output\": {\"type\": \"string\",\"nullable\": true}, \"input\": {\"type\": \"string\"}, \"executionArn\": {\"type\": \"string\"}, \"name\": {\"type\": \"string\"}, \"stateMachineArn\": {\"type\": \"string\"}, \"startDate\": {\"type\": \"integer\",\"format\": \"int64\"}, \"stopDate\": {\"type\": \"integer\",\"format\": \"int64\",\"nullable\": true}, \"status\": {\"type\": \"string\",\"enum\": [ \"FAILED\", \"RUNNING\", \"SUCCEEDED\", \"ABORTED\" ]} } } } } }",
});
Coming soon!
Create Schema Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Schema(name: string, args: SchemaArgs, opts?: CustomResourceOptions);
@overload
def Schema(resource_name: str,
args: SchemaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Schema(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
registry_name: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
schema_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewSchema(ctx *Context, name string, args SchemaArgs, opts ...ResourceOption) (*Schema, error)
public Schema(string name, SchemaArgs args, CustomResourceOptions? opts = null)
public Schema(String name, SchemaArgs args)
public Schema(String name, SchemaArgs args, CustomResourceOptions options)
type: aws-native:eventschemas:Schema
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Schema Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Schema resource accepts the following input properties:
- Content string
- The source of the schema definition.
- Registry
Name string - The name of the schema registry.
- Type string
- The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
- Description string
- A description of the schema.
- Schema
Name string - The name of the schema.
- List<Pulumi.
Aws Native. Inputs. Tag> - Tags associated with the resource.
- Content string
- The source of the schema definition.
- Registry
Name string - The name of the schema registry.
- Type string
- The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
- Description string
- A description of the schema.
- Schema
Name string - The name of the schema.
- Tag
Args - Tags associated with the resource.
- content String
- The source of the schema definition.
- registry
Name String - The name of the schema registry.
- type String
- The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
- description String
- A description of the schema.
- schema
Name String - The name of the schema.
- List<Tag>
- Tags associated with the resource.
- content string
- The source of the schema definition.
- registry
Name string - The name of the schema registry.
- type string
- The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
- description string
- A description of the schema.
- schema
Name string - The name of the schema.
- Tag[]
- Tags associated with the resource.
- content str
- The source of the schema definition.
- registry_
name str - The name of the schema registry.
- type str
- The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
- description str
- A description of the schema.
- schema_
name str - The name of the schema.
- Sequence[Tag
Args] - Tags associated with the resource.
- content String
- The source of the schema definition.
- registry
Name String - The name of the schema registry.
- type String
- The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
- description String
- A description of the schema.
- schema
Name String - The name of the schema.
- List<Property Map>
- Tags associated with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Schema resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - The last modified time of the schema.
- Schema
Arn string - The ARN of the schema.
- Schema
Version string - The version number of the schema.
- Version
Created stringDate - The date the schema version was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - The last modified time of the schema.
- Schema
Arn string - The ARN of the schema.
- Schema
Version string - The version number of the schema.
- Version
Created stringDate - The date the schema version was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - The last modified time of the schema.
- schema
Arn String - The ARN of the schema.
- schema
Version String - The version number of the schema.
- version
Created StringDate - The date the schema version was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified string - The last modified time of the schema.
- schema
Arn string - The ARN of the schema.
- schema
Version string - The version number of the schema.
- version
Created stringDate - The date the schema version was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified str - The last modified time of the schema.
- schema_
arn str - The ARN of the schema.
- schema_
version str - The version number of the schema.
- version_
created_ strdate - The date the schema version was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - The last modified time of the schema.
- schema
Arn String - The ARN of the schema.
- schema
Version String - The version number of the schema.
- version
Created StringDate - The date the schema version was created.
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.