ApiEventProperty Struct
| Source | |
|---|---|
| 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_sam as sam } from 'aws-cdk-lib';
const apiEventProperty: sam.CfnStateMachine.ApiEventProperty = {
method: 'method',
path: 'path',
// the properties below are optional
restApiId: 'restApiId',
};
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_sam as sam
api_event_property = sam.CfnStateMachine.ApiEventProperty(
method="method",
path="path",
# the properties below are optional
rest_api_id="restApiId"
)
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.sam.*;
ApiEventProperty apiEventProperty = ApiEventProperty.builder()
.method("method")
.path("path")
// the properties below are optional
.restApiId("restApiId")
.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.SAM;
var apiEventProperty = new ApiEventProperty {
Method = "method",
Path = "path",
// the properties below are optional
RestApiId = "restApiId"
};
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"
apiEventProperty := &ApiEventProperty{
Method: jsii.String("method"),
Path: jsii.String("path"),
// the properties below are optional
RestApiId: jsii.String("restApiId"),
}