Class CfnStateMachine
A CloudFormation AWS::Serverless::StateMachine
.
Inherited Members
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.AWS.SAM.dll
Syntax (csharp)
public class CfnStateMachine : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnStateMachine
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
CloudformationResource: AWS::Serverless::StateMachine
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;
var definition;
var cfnStateMachine = new CfnStateMachine(this, "MyCfnStateMachine", new CfnStateMachineProps {
Definition = definition,
DefinitionSubstitutions = new Dictionary<string, string> {
{ "definitionSubstitutionsKey", "definitionSubstitutions" }
},
DefinitionUri = "definitionUri",
Events = new Dictionary<string, object> {
{ "eventsKey", new EventSourceProperty {
Properties = new CloudWatchEventEventProperty {
Method = "method",
Path = "path",
// the properties below are optional
RestApiId = "restApiId"
},
Type = "type"
} }
},
Logging = new LoggingConfigurationProperty {
Destinations = new [] { new LogDestinationProperty {
CloudWatchLogsLogGroup = new CloudWatchLogsLogGroupProperty {
LogGroupArn = "logGroupArn"
}
} },
IncludeExecutionData = false,
Level = "level"
},
Name = "name",
PermissionsBoundaries = "permissionsBoundaries",
Policies = "policies",
Role = "role",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
Tracing = new TracingConfigurationProperty {
Enabled = false
},
Type = "type"
});
Synopsis
Constructors
CfnStateMachine(Construct, String, ICfnStateMachineProps) | Create a new |
CfnStateMachine(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnStateMachine(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Definition |
|
DefinitionSubstitutions |
|
DefinitionUri |
|
Events |
|
Logging |
|
Name |
|
PermissionsBoundaries |
|
Policies |
|
REQUIRED_TRANSFORM | The |
Role |
|
Tags |
|
Tracing |
|
Type |
|
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnStateMachine(Construct, String, ICfnStateMachineProps)
Create a new AWS::Serverless::StateMachine
.
public CfnStateMachine(Construct scope, string id, ICfnStateMachineProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnStateMachineProps
- resource properties.
CfnStateMachine(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnStateMachine(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnStateMachine(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnStateMachine(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Definition
AWS::Serverless::StateMachine.Definition
.
public virtual object Definition { get; set; }
Property Value
System.Object
Remarks
DefinitionSubstitutions
AWS::Serverless::StateMachine.DefinitionSubstitutions
.
public virtual object DefinitionSubstitutions { get; set; }
Property Value
System.Object
Remarks
DefinitionUri
AWS::Serverless::StateMachine.DefinitionUri
.
public virtual object DefinitionUri { get; set; }
Property Value
System.Object
Remarks
Events
AWS::Serverless::StateMachine.Events
.
public virtual object Events { get; set; }
Property Value
System.Object
Remarks
Logging
AWS::Serverless::StateMachine.Logging
.
public virtual object Logging { get; set; }
Property Value
System.Object
Remarks
Name
AWS::Serverless::StateMachine.Name
.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
PermissionsBoundaries
AWS::Serverless::StateMachine.PermissionsBoundaries
.
public virtual string PermissionsBoundaries { get; set; }
Property Value
System.String
Remarks
Policies
AWS::Serverless::StateMachine.Policies
.
public virtual object Policies { get; set; }
Property Value
System.Object
Remarks
REQUIRED_TRANSFORM
The Transform
a template must use in order to use this resource.
public static string REQUIRED_TRANSFORM { get; }
Property Value
System.String
Role
AWS::Serverless::StateMachine.Role
.
public virtual string Role { get; set; }
Property Value
System.String
Remarks
Tags
AWS::Serverless::StateMachine.Tags
.
public virtual TagManager Tags { get; }
Property Value
Remarks
Tracing
AWS::Serverless::StateMachine.Tracing
.
public virtual object Tracing { get; set; }
Property Value
System.Object
Remarks
Type
AWS::Serverless::StateMachine.Type
.
public virtual string Type { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>