StateMachineGrantsProps Struct
Properties for StateMachineGrants.
| Source | aws-stepfunctions/lib/state-machine-grants.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
import { aws_stepfunctions as interfaces_stepfunctions } from 'aws-cdk-lib/interfaces';
declare const stateMachineRef: interfaces_stepfunctions.IStateMachineRef;
const stateMachineGrantsProps: stepfunctions.StateMachineGrantsProps = {
resource: stateMachineRef,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions
from aws_cdk.interfaces import aws_stepfunctions as interfaces_stepfunctions
# state_machine_ref: interfaces_stepfunctions.IStateMachineRef
state_machine_grants_props = stepfunctions.StateMachineGrantsProps(
resource=state_machine_ref
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.interfaces.stepfunctions.*;
IStateMachineRef stateMachineRef;
StateMachineGrantsProps stateMachineGrantsProps = StateMachineGrantsProps.builder()
.resource(stateMachineRef)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;
using Amazon.CDK.Interfaces.StepFunctions;
IStateMachineRef stateMachineRef;
var stateMachineGrantsProps = new StateMachineGrantsProps {
Resource = stateMachineRef
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var stateMachineRef IStateMachineRef
stateMachineGrantsProps := &StateMachineGrantsProps{
Resource: stateMachineRef,
}
Properties
resourceIStateMachineRefresourceIStateMachineRefresourceIStateMachineRefResourceIStateMachineRefResourceIStateMachineRef required #The resource on which actions will be allowed.