CfnResourceProps
Struct External
Properties for defining a CfnResource.
| 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_apigateway as apigateway } from 'aws-cdk-lib';
const cfnResourceProps: apigateway.CfnResourceProps = {
parentId: 'parentId',
pathPart: 'pathPart',
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_apigateway as apigateway
cfn_resource_props = apigateway.CfnResourceProps(
parent_id="parentId",
path_part="pathPart",
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.apigateway.*;
CfnResourceProps cfnResourceProps = CfnResourceProps.builder()
.parentId("parentId")
.pathPart("pathPart")
.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.APIGateway;
var cfnResourceProps = new CfnResourceProps {
ParentId = "parentId",
PathPart = "pathPart",
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"
cfnResourceProps := &CfnResourceProps{
ParentId: jsii.String("parentId"),
PathPart: jsii.String("pathPart"),
RestApiId: jsii.String("restApiId"),
}
Properties
parentIdstring | IResourceRefparent_idtyping.Union[str, IResourceRef]parentIdStringParentIdstringParentIdinterface{} required #The parent resource's identifier.
The last path segment for this resource.
restApiIdstring | IRestApiRefrest_api_idtyping.Union[str, IRestApiRef]restApiIdStringRestApiIdstringRestApiIdinterface{} required #The string identifier of the associated RestApi.