@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.526Z") @Stability(value=Stable) public class CfnVirtualService extends CfnResource implements IInspectable
Creates a virtual service within a service mesh.
A virtual service is an abstraction of a real service that is provided by a virtual node directly or indirectly by means of a virtual router. Dependent services call your virtual service by its virtualServiceName , and those requests are routed to the virtual node or virtual router that is specified as the provider for the virtual service.
For more information about virtual services, see Virtual services .
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.appmesh.*;
CfnVirtualService cfnVirtualService = CfnVirtualService.Builder.create(this, "MyCfnVirtualService")
.meshName("meshName")
.spec(VirtualServiceSpecProperty.builder()
.provider(VirtualServiceProviderProperty.builder()
.virtualNode(VirtualNodeServiceProviderProperty.builder()
.virtualNodeName("virtualNodeName")
.build())
.virtualRouter(VirtualRouterServiceProviderProperty.builder()
.virtualRouterName("virtualRouterName")
.build())
.build())
.build())
.virtualServiceName("virtualServiceName")
// the properties below are optional
.meshOwner("meshOwner")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnVirtualService.Builder
A fluent builder for
CfnVirtualService. |
static interface |
CfnVirtualService.VirtualNodeServiceProviderProperty
An object that represents a virtual node service provider.
|
static interface |
CfnVirtualService.VirtualRouterServiceProviderProperty
An object that represents a virtual node service provider.
|
static interface |
CfnVirtualService.VirtualServiceProviderProperty
An object that represents the provider for a virtual service.
|
static interface |
CfnVirtualService.VirtualServiceSpecProperty
An object that represents the specification of a virtual service.
|
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.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnVirtualService(software.constructs.Construct scope,
String id,
CfnVirtualServiceProps props)
Create a new `AWS::AppMesh::VirtualService`.
|
protected |
CfnVirtualService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVirtualService(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The full Amazon Resource Name (ARN) for the virtual service.
|
String |
getAttrMeshName()
The name of the service mesh that the virtual service resides in.
|
String |
getAttrMeshOwner()
The AWS IAM account ID of the service mesh owner.
|
String |
getAttrResourceOwner()
The AWS IAM account ID of the resource owner.
|
String |
getAttrUid()
The unique identifier for the virtual service.
|
String |
getAttrVirtualServiceName()
The name of the virtual service.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getMeshName()
The name of the service mesh to create the virtual service in.
|
String |
getMeshOwner()
The AWS IAM account ID of the service mesh owner.
|
Object |
getSpec()
The virtual service specification to apply.
|
TagManager |
getTags()
Optional metadata that you can apply to the virtual service to assist with categorization and organization.
|
String |
getVirtualServiceName()
The name to use for the virtual service.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setMeshName(String value)
The name of the service mesh to create the virtual service in.
|
void |
setMeshOwner(String value)
The AWS IAM account ID of the service mesh owner.
|
void |
setSpec(CfnVirtualService.VirtualServiceSpecProperty value)
The virtual service specification to apply.
|
void |
setSpec(IResolvable value)
The virtual service specification to apply.
|
void |
setVirtualServiceName(String value)
The name to use for the virtual service.
|
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
protected CfnVirtualService(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVirtualService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnVirtualService(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnVirtualServiceProps 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. 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 public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrMeshName()
@Stability(value=Stable) @NotNull public String getAttrMeshOwner()
If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with Shared Meshes .
@Stability(value=Stable) @NotNull public String getAttrResourceOwner()
If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with Shared Meshes .
@Stability(value=Stable) @NotNull public String getAttrUid()
@Stability(value=Stable) @NotNull public String getAttrVirtualServiceName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
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.
@Stability(value=Stable) @NotNull public String getMeshName()
@Stability(value=Stable)
public void setMeshName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getSpec()
@Stability(value=Stable)
public void setSpec(@NotNull
CfnVirtualService.VirtualServiceSpecProperty value)
@Stability(value=Stable)
public void setSpec(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getVirtualServiceName()
@Stability(value=Stable)
public void setVirtualServiceName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getMeshOwner()
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 .
@Stability(value=Stable)
public void setMeshOwner(@Nullable
String value)
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 .
Copyright © 2022. All rights reserved.