@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.998Z") @Stability(value=Stable) public class CfnStateMachine extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sam.*;
Object definition;
CfnStateMachine cfnStateMachine = CfnStateMachine.Builder.create(this, "MyCfnStateMachine")
.definition(definition)
.definitionSubstitutions(Map.of(
"definitionSubstitutionsKey", "definitionSubstitutions"))
.definitionUri("definitionUri")
.events(Map.of(
"eventsKey", EventSourceProperty.builder()
.properties(CloudWatchEventEventProperty.builder()
.method("method")
.path("path")
// the properties below are optional
.restApiId("restApiId")
.build())
.type("type")
.build()))
.logging(LoggingConfigurationProperty.builder()
.destinations(List.of(LogDestinationProperty.builder()
.cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder()
.logGroupArn("logGroupArn")
.build())
.build()))
.includeExecutionData(false)
.level("level")
.build())
.name("name")
.permissionsBoundaries("permissionsBoundaries")
.policies("policies")
.role("role")
.tags(Map.of(
"tagsKey", "tags"))
.tracing(TracingConfigurationProperty.builder()
.enabled(false)
.build())
.type("type")
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
static String |
REQUIRED_TRANSFORM
The `Transform` a template must use in order to use this resource.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnStateMachine(software.constructs.Construct scope,
String id)
Create a new `AWS::Serverless::StateMachine`.
|
|
CfnStateMachine(software.constructs.Construct scope,
String id,
CfnStateMachineProps props)
Create a new `AWS::Serverless::StateMachine`.
|
protected |
CfnStateMachine(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStateMachine(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDefinition()
`AWS::Serverless::StateMachine.Definition`.
|
Object |
getDefinitionSubstitutions()
`AWS::Serverless::StateMachine.DefinitionSubstitutions`.
|
Object |
getDefinitionUri()
`AWS::Serverless::StateMachine.DefinitionUri`.
|
Object |
getEvents()
`AWS::Serverless::StateMachine.Events`.
|
Object |
getLogging()
`AWS::Serverless::StateMachine.Logging`.
|
String |
getName()
`AWS::Serverless::StateMachine.Name`.
|
String |
getPermissionsBoundaries()
`AWS::Serverless::StateMachine.PermissionsBoundaries`.
|
Object |
getPolicies()
`AWS::Serverless::StateMachine.Policies`.
|
String |
getRole()
`AWS::Serverless::StateMachine.Role`.
|
TagManager |
getTags()
`AWS::Serverless::StateMachine.Tags`.
|
Object |
getTracing()
`AWS::Serverless::StateMachine.Tracing`.
|
String |
getType()
`AWS::Serverless::StateMachine.Type`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDefinition(Object value)
`AWS::Serverless::StateMachine.Definition`.
|
void |
setDefinitionSubstitutions(IResolvable value)
`AWS::Serverless::StateMachine.DefinitionSubstitutions`.
|
void |
setDefinitionSubstitutions(Map<String,String> value)
`AWS::Serverless::StateMachine.DefinitionSubstitutions`.
|
void |
setDefinitionUri(CfnStateMachine.S3LocationProperty value)
`AWS::Serverless::StateMachine.DefinitionUri`.
|
void |
setDefinitionUri(IResolvable value)
`AWS::Serverless::StateMachine.DefinitionUri`.
|
void |
setDefinitionUri(String value)
`AWS::Serverless::StateMachine.DefinitionUri`.
|
void |
setEvents(IResolvable value)
`AWS::Serverless::StateMachine.Events`.
|
void |
setEvents(Map<String,Object> value)
`AWS::Serverless::StateMachine.Events`.
|
void |
setLogging(CfnStateMachine.LoggingConfigurationProperty value)
`AWS::Serverless::StateMachine.Logging`.
|
void |
setLogging(IResolvable value)
`AWS::Serverless::StateMachine.Logging`.
|
void |
setName(String value)
`AWS::Serverless::StateMachine.Name`.
|
void |
setPermissionsBoundaries(String value)
`AWS::Serverless::StateMachine.PermissionsBoundaries`.
|
void |
setPolicies(CfnStateMachine.IAMPolicyDocumentProperty value)
`AWS::Serverless::StateMachine.Policies`.
|
void |
setPolicies(IResolvable value)
`AWS::Serverless::StateMachine.Policies`.
|
void |
setPolicies(List<Object> value)
`AWS::Serverless::StateMachine.Policies`.
|
void |
setPolicies(String value)
`AWS::Serverless::StateMachine.Policies`.
|
void |
setRole(String value)
`AWS::Serverless::StateMachine.Role`.
|
void |
setTracing(CfnStateMachine.TracingConfigurationProperty value)
`AWS::Serverless::StateMachine.Tracing`.
|
void |
setTracing(IResolvable value)
`AWS::Serverless::StateMachine.Tracing`.
|
void |
setType(String value)
`AWS::Serverless::StateMachine.Type`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
@Stability(value=Stable) public static final String REQUIRED_TRANSFORM
protected CfnStateMachine(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStateMachine(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnStateMachine(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnStateMachineProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnStateMachine(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getDefinition()
@Stability(value=Stable)
public void setDefinition(@NotNull
Object value)
@Stability(value=Stable) @Nullable public Object getDefinitionSubstitutions()
@Stability(value=Stable)
public void setDefinitionSubstitutions(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setDefinitionSubstitutions(@Nullable
Map<String,String> value)
@Stability(value=Stable) @Nullable public Object getDefinitionUri()
@Stability(value=Stable)
public void setDefinitionUri(@Nullable
String value)
@Stability(value=Stable)
public void setDefinitionUri(@Nullable
CfnStateMachine.S3LocationProperty value)
@Stability(value=Stable)
public void setDefinitionUri(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getEvents()
@Stability(value=Stable)
public void setEvents(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setEvents(@Nullable
Map<String,Object> value)
@Stability(value=Stable) @Nullable public Object getLogging()
@Stability(value=Stable)
public void setLogging(@Nullable
CfnStateMachine.LoggingConfigurationProperty value)
@Stability(value=Stable)
public void setLogging(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPermissionsBoundaries()
@Stability(value=Stable)
public void setPermissionsBoundaries(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getPolicies()
@Stability(value=Stable)
public void setPolicies(@Nullable
String value)
@Stability(value=Stable)
public void setPolicies(@Nullable
CfnStateMachine.IAMPolicyDocumentProperty value)
@Stability(value=Stable)
public void setPolicies(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setPolicies(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getRole()
@Stability(value=Stable)
public void setRole(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getTracing()
@Stability(value=Stable)
public void setTracing(@Nullable
CfnStateMachine.TracingConfigurationProperty value)
@Stability(value=Stable)
public void setTracing(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getType()
@Stability(value=Stable)
public void setType(@Nullable
String value)
Copyright © 2022. All rights reserved.