Modifier and Type | Method and Description |
---|---|
CfnRoute |
build() |
static CfnRoute.Builder |
create(Construct scope,
java.lang.String id) |
CfnRoute.Builder |
meshName(java.lang.String meshName)
The name of the service mesh to create the route in.
|
CfnRoute.Builder |
meshOwner(java.lang.String meshOwner)
The AWS IAM account ID of the service mesh owner.
|
CfnRoute.Builder |
routeName(java.lang.String routeName)
The name to use for the route.
|
CfnRoute.Builder |
spec(CfnRoute.RouteSpecProperty spec)
The route specification to apply.
|
CfnRoute.Builder |
spec(IResolvable spec)
The route specification to apply.
|
CfnRoute.Builder |
tags(java.util.List<? extends CfnTag> tags)
Optional metadata that you can apply to the route to assist with categorization and organization.
|
CfnRoute.Builder |
virtualRouterName(java.lang.String virtualRouterName)
The name of the virtual router in which to create the route.
|
public static CfnRoute.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnRoute.DurationProperty.Builder
.public CfnRoute.Builder meshName(java.lang.String meshName)
meshName
- The name of the service mesh to create the route in. This parameter is required.this
public CfnRoute.Builder spec(IResolvable spec)
spec
- The route specification to apply. This parameter is required.this
public CfnRoute.Builder spec(CfnRoute.RouteSpecProperty spec)
spec
- The route specification to apply. This parameter is required.this
public CfnRoute.Builder virtualRouterName(java.lang.String virtualRouterName)
If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource.
virtualRouterName
- The name of the virtual router in which to create the route. This parameter is required.this
public CfnRoute.Builder meshOwner(java.lang.String meshOwner)
If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes .
meshOwner
- The AWS IAM account ID of the service mesh owner. This parameter is required.this
public CfnRoute.Builder routeName(java.lang.String routeName)
routeName
- The name to use for the route. This parameter is required.this
public CfnRoute.Builder tags(java.util.List<? extends CfnTag> tags)
Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
tags
- Optional metadata that you can apply to the route to assist with categorization and organization. This parameter is required.this
public CfnRoute build()