CfnVirtualNode L1 construct
Creates a virtual node within a service mesh.
A virtual node acts as a logical pointer to a particular task group, such as an Amazon ECS service or a Kubernetes deployment. When you create a virtual node, you can specify the service discovery information for your task group, and whether the proxy running in a task group will communicate with other proxies using Transport Layer Security (TLS).
You define a listener for any inbound traffic that your virtual node expects. Any virtual service that your virtual node expects to communicate to is specified as a backend .
The response metadata for your new virtual node contains the arn that is associated with the virtual node. Set this value to the full ARN; for example, arn:aws:appmesh:us-west-2:123456789012:myMesh/default/virtualNode/myApp ) as the APPMESH_RESOURCE_ARN environment variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to the node.id and node.cluster Envoy parameters.
By default, App Mesh uses the name of the resource you specified in
APPMESH_RESOURCE_ARNwhen Envoy is referring to itself in metrics and traces. You can override this behavior by setting theAPPMESH_RESOURCE_CLUSTERenvironment variable with your own name.
For more information about virtual nodes, see Virtual nodes . You must be using 1.15.0 or later of the Envoy image when setting these variables. For more information aboutApp Mesh Envoy variables, see Envoy image in the AWS App Mesh User Guide.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const cfnVirtualNode = new appmesh.CfnVirtualNode(this, 'MyCfnVirtualNode', {
meshName: 'meshName',
spec: {
backendDefaults: {
clientPolicy: {
tls: {
validation: {
trust: {
acm: {
certificateAuthorityArns: ['certificateAuthorityArns'],
},
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
// the properties below are optional
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
},
// the properties below are optional
certificate: {
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
enforce: false,
ports: [123],
},
},
},
backends: [{
virtualService: {
virtualServiceName: 'virtualServiceName',
// the properties below are optional
clientPolicy: {
tls: {
validation: {
trust: {
acm: {
certificateAuthorityArns: ['certificateAuthorityArns'],
},
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
// the properties below are optional
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
},
// the properties below are optional
certificate: {
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
enforce: false,
ports: [123],
},
},
},
}],
listeners: [{
portMapping: {
port: 123,
protocol: 'protocol',
},
// the properties below are optional
connectionPool: {
grpc: {
maxRequests: 123,
},
http: {
maxConnections: 123,
// the properties below are optional
maxPendingRequests: 123,
},
http2: {
maxRequests: 123,
},
tcp: {
maxConnections: 123,
},
},
healthCheck: {
healthyThreshold: 123,
intervalMillis: 123,
protocol: 'protocol',
timeoutMillis: 123,
unhealthyThreshold: 123,
// the properties below are optional
path: 'path',
port: 123,
},
outlierDetection: {
baseEjectionDuration: {
unit: 'unit',
value: 123,
},
interval: {
unit: 'unit',
value: 123,
},
maxEjectionPercent: 123,
maxServerErrors: 123,
},
timeout: {
grpc: {
idle: {
unit: 'unit',
value: 123,
},
perRequest: {
unit: 'unit',
value: 123,
},
},
http: {
idle: {
unit: 'unit',
value: 123,
},
perRequest: {
unit: 'unit',
value: 123,
},
},
http2: {
idle: {
unit: 'unit',
value: 123,
},
perRequest: {
unit: 'unit',
value: 123,
},
},
tcp: {
idle: {
unit: 'unit',
value: 123,
},
},
},
tls: {
certificate: {
acm: {
certificateArn: 'certificateArn',
},
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
mode: 'mode',
// the properties below are optional
validation: {
trust: {
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
// the properties below are optional
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
},
},
}],
logging: {
accessLog: {
file: {
path: 'path',
// the properties below are optional
format: {
json: [{
key: 'key',
value: 'value',
}],
text: 'text',
},
},
},
},
serviceDiscovery: {
awsCloudMap: {
namespaceName: 'namespaceName',
serviceName: 'serviceName',
// the properties below are optional
attributes: [{
key: 'key',
value: 'value',
}],
ipPreference: 'ipPreference',
},
dns: {
hostname: 'hostname',
// the properties below are optional
ipPreference: 'ipPreference',
responseType: 'responseType',
},
},
},
// the properties below are optional
meshOwner: 'meshOwner',
tags: [{
key: 'key',
value: 'value',
}],
virtualNodeName: 'virtualNodeName',
});
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh
cfn_virtual_node = appmesh.CfnVirtualNode(self, "MyCfnVirtualNode",
mesh_name="meshName",
spec=appmesh.CfnVirtualNode.VirtualNodeSpecProperty(
backend_defaults=appmesh.CfnVirtualNode.BackendDefaultsProperty(
client_policy=appmesh.CfnVirtualNode.ClientPolicyProperty(
tls=appmesh.CfnVirtualNode.ClientPolicyTlsProperty(
validation=appmesh.CfnVirtualNode.TlsValidationContextProperty(
trust=appmesh.CfnVirtualNode.TlsValidationContextTrustProperty(
acm=appmesh.CfnVirtualNode.TlsValidationContextAcmTrustProperty(
certificate_authority_arns=["certificateAuthorityArns"]
),
file=appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty(
certificate_chain="certificateChain"
),
sds=appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty(
secret_name="secretName"
)
),
# the properties below are optional
subject_alternative_names=appmesh.CfnVirtualNode.SubjectAlternativeNamesProperty(
match=appmesh.CfnVirtualNode.SubjectAlternativeNameMatchersProperty(
exact=["exact"]
)
)
),
# the properties below are optional
certificate=appmesh.CfnVirtualNode.ClientTlsCertificateProperty(
file=appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty(
certificate_chain="certificateChain",
private_key="privateKey"
),
sds=appmesh.CfnVirtualNode.ListenerTlsSdsCertificateProperty(
secret_name="secretName"
)
),
enforce=False,
ports=[123]
)
)
),
backends=[appmesh.CfnVirtualNode.BackendProperty(
virtual_service=appmesh.CfnVirtualNode.VirtualServiceBackendProperty(
virtual_service_name="virtualServiceName",
# the properties below are optional
client_policy=appmesh.CfnVirtualNode.ClientPolicyProperty(
tls=appmesh.CfnVirtualNode.ClientPolicyTlsProperty(
validation=appmesh.CfnVirtualNode.TlsValidationContextProperty(
trust=appmesh.CfnVirtualNode.TlsValidationContextTrustProperty(
acm=appmesh.CfnVirtualNode.TlsValidationContextAcmTrustProperty(
certificate_authority_arns=["certificateAuthorityArns"]
),
file=appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty(
certificate_chain="certificateChain"
),
sds=appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty(
secret_name="secretName"
)
),
# the properties below are optional
subject_alternative_names=appmesh.CfnVirtualNode.SubjectAlternativeNamesProperty(
match=appmesh.CfnVirtualNode.SubjectAlternativeNameMatchersProperty(
exact=["exact"]
)
)
),
# the properties below are optional
certificate=appmesh.CfnVirtualNode.ClientTlsCertificateProperty(
file=appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty(
certificate_chain="certificateChain",
private_key="privateKey"
),
sds=appmesh.CfnVirtualNode.ListenerTlsSdsCertificateProperty(
secret_name="secretName"
)
),
enforce=False,
ports=[123]
)
)
)
)],
listeners=[appmesh.CfnVirtualNode.ListenerProperty(
port_mapping=appmesh.CfnVirtualNode.PortMappingProperty(
port=123,
protocol="protocol"
),
# the properties below are optional
connection_pool=appmesh.CfnVirtualNode.VirtualNodeConnectionPoolProperty(
grpc=appmesh.CfnVirtualNode.VirtualNodeGrpcConnectionPoolProperty(
max_requests=123
),
http=appmesh.CfnVirtualNode.VirtualNodeHttpConnectionPoolProperty(
max_connections=123,
# the properties below are optional
max_pending_requests=123
),
http2=appmesh.CfnVirtualNode.VirtualNodeHttp2ConnectionPoolProperty(
max_requests=123
),
tcp=appmesh.CfnVirtualNode.VirtualNodeTcpConnectionPoolProperty(
max_connections=123
)
),
health_check=appmesh.CfnVirtualNode.HealthCheckProperty(
healthy_threshold=123,
interval_millis=123,
protocol="protocol",
timeout_millis=123,
unhealthy_threshold=123,
# the properties below are optional
path="path",
port=123
),
outlier_detection=appmesh.CfnVirtualNode.OutlierDetectionProperty(
base_ejection_duration=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
),
interval=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
),
max_ejection_percent=123,
max_server_errors=123
),
timeout=appmesh.CfnVirtualNode.ListenerTimeoutProperty(
grpc=appmesh.CfnVirtualNode.GrpcTimeoutProperty(
idle=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
),
per_request=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
)
),
http=appmesh.CfnVirtualNode.HttpTimeoutProperty(
idle=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
),
per_request=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
)
),
http2=appmesh.CfnVirtualNode.HttpTimeoutProperty(
idle=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
),
per_request=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
)
),
tcp=appmesh.CfnVirtualNode.TcpTimeoutProperty(
idle=appmesh.CfnVirtualNode.DurationProperty(
unit="unit",
value=123
)
)
),
tls=appmesh.CfnVirtualNode.ListenerTlsProperty(
certificate=appmesh.CfnVirtualNode.ListenerTlsCertificateProperty(
acm=appmesh.CfnVirtualNode.ListenerTlsAcmCertificateProperty(
certificate_arn="certificateArn"
),
file=appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty(
certificate_chain="certificateChain",
private_key="privateKey"
),
sds=appmesh.CfnVirtualNode.ListenerTlsSdsCertificateProperty(
secret_name="secretName"
)
),
mode="mode",
# the properties below are optional
validation=appmesh.CfnVirtualNode.ListenerTlsValidationContextProperty(
trust=appmesh.CfnVirtualNode.ListenerTlsValidationContextTrustProperty(
file=appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty(
certificate_chain="certificateChain"
),
sds=appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty(
secret_name="secretName"
)
),
# the properties below are optional
subject_alternative_names=appmesh.CfnVirtualNode.SubjectAlternativeNamesProperty(
match=appmesh.CfnVirtualNode.SubjectAlternativeNameMatchersProperty(
exact=["exact"]
)
)
)
)
)],
logging=appmesh.CfnVirtualNode.LoggingProperty(
access_log=appmesh.CfnVirtualNode.AccessLogProperty(
file=appmesh.CfnVirtualNode.FileAccessLogProperty(
path="path",
# the properties below are optional
format=appmesh.CfnVirtualNode.LoggingFormatProperty(
json=[appmesh.CfnVirtualNode.JsonFormatRefProperty(
key="key",
value="value"
)],
text="text"
)
)
)
),
service_discovery=appmesh.CfnVirtualNode.ServiceDiscoveryProperty(
aws_cloud_map=appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty(
namespace_name="namespaceName",
service_name="serviceName",
# the properties below are optional
attributes=[appmesh.CfnVirtualNode.AwsCloudMapInstanceAttributeProperty(
key="key",
value="value"
)],
ip_preference="ipPreference"
),
dns=appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty(
hostname="hostname",
# the properties below are optional
ip_preference="ipPreference",
response_type="responseType"
)
)
),
# the properties below are optional
mesh_owner="meshOwner",
tags=[CfnTag(
key="key",
value="value"
)],
virtual_node_name="virtualNodeName"
)
// 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.*;
CfnVirtualNode cfnVirtualNode = CfnVirtualNode.Builder.create(this, "MyCfnVirtualNode")
.meshName("meshName")
.spec(VirtualNodeSpecProperty.builder()
.backendDefaults(BackendDefaultsProperty.builder()
.clientPolicy(ClientPolicyProperty.builder()
.tls(ClientPolicyTlsProperty.builder()
.validation(TlsValidationContextProperty.builder()
.trust(TlsValidationContextTrustProperty.builder()
.acm(TlsValidationContextAcmTrustProperty.builder()
.certificateAuthorityArns(List.of("certificateAuthorityArns"))
.build())
.file(TlsValidationContextFileTrustProperty.builder()
.certificateChain("certificateChain")
.build())
.sds(TlsValidationContextSdsTrustProperty.builder()
.secretName("secretName")
.build())
.build())
// the properties below are optional
.subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
.match(SubjectAlternativeNameMatchersProperty.builder()
.exact(List.of("exact"))
.build())
.build())
.build())
// the properties below are optional
.certificate(ClientTlsCertificateProperty.builder()
.file(ListenerTlsFileCertificateProperty.builder()
.certificateChain("certificateChain")
.privateKey("privateKey")
.build())
.sds(ListenerTlsSdsCertificateProperty.builder()
.secretName("secretName")
.build())
.build())
.enforce(false)
.ports(List.of(123))
.build())
.build())
.build())
.backends(List.of(BackendProperty.builder()
.virtualService(VirtualServiceBackendProperty.builder()
.virtualServiceName("virtualServiceName")
// the properties below are optional
.clientPolicy(ClientPolicyProperty.builder()
.tls(ClientPolicyTlsProperty.builder()
.validation(TlsValidationContextProperty.builder()
.trust(TlsValidationContextTrustProperty.builder()
.acm(TlsValidationContextAcmTrustProperty.builder()
.certificateAuthorityArns(List.of("certificateAuthorityArns"))
.build())
.file(TlsValidationContextFileTrustProperty.builder()
.certificateChain("certificateChain")
.build())
.sds(TlsValidationContextSdsTrustProperty.builder()
.secretName("secretName")
.build())
.build())
// the properties below are optional
.subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
.match(SubjectAlternativeNameMatchersProperty.builder()
.exact(List.of("exact"))
.build())
.build())
.build())
// the properties below are optional
.certificate(ClientTlsCertificateProperty.builder()
.file(ListenerTlsFileCertificateProperty.builder()
.certificateChain("certificateChain")
.privateKey("privateKey")
.build())
.sds(ListenerTlsSdsCertificateProperty.builder()
.secretName("secretName")
.build())
.build())
.enforce(false)
.ports(List.of(123))
.build())
.build())
.build())
.build()))
.listeners(List.of(ListenerProperty.builder()
.portMapping(PortMappingProperty.builder()
.port(123)
.protocol("protocol")
.build())
// the properties below are optional
.connectionPool(VirtualNodeConnectionPoolProperty.builder()
.grpc(VirtualNodeGrpcConnectionPoolProperty.builder()
.maxRequests(123)
.build())
.http(VirtualNodeHttpConnectionPoolProperty.builder()
.maxConnections(123)
// the properties below are optional
.maxPendingRequests(123)
.build())
.http2(VirtualNodeHttp2ConnectionPoolProperty.builder()
.maxRequests(123)
.build())
.tcp(VirtualNodeTcpConnectionPoolProperty.builder()
.maxConnections(123)
.build())
.build())
.healthCheck(HealthCheckProperty.builder()
.healthyThreshold(123)
.intervalMillis(123)
.protocol("protocol")
.timeoutMillis(123)
.unhealthyThreshold(123)
// the properties below are optional
.path("path")
.port(123)
.build())
.outlierDetection(OutlierDetectionProperty.builder()
.baseEjectionDuration(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.interval(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.maxEjectionPercent(123)
.maxServerErrors(123)
.build())
.timeout(ListenerTimeoutProperty.builder()
.grpc(GrpcTimeoutProperty.builder()
.idle(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.perRequest(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.build())
.http(HttpTimeoutProperty.builder()
.idle(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.perRequest(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.build())
.http2(HttpTimeoutProperty.builder()
.idle(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.perRequest(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.build())
.tcp(TcpTimeoutProperty.builder()
.idle(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.build())
.build())
.tls(ListenerTlsProperty.builder()
.certificate(ListenerTlsCertificateProperty.builder()
.acm(ListenerTlsAcmCertificateProperty.builder()
.certificateArn("certificateArn")
.build())
.file(ListenerTlsFileCertificateProperty.builder()
.certificateChain("certificateChain")
.privateKey("privateKey")
.build())
.sds(ListenerTlsSdsCertificateProperty.builder()
.secretName("secretName")
.build())
.build())
.mode("mode")
// the properties below are optional
.validation(ListenerTlsValidationContextProperty.builder()
.trust(ListenerTlsValidationContextTrustProperty.builder()
.file(TlsValidationContextFileTrustProperty.builder()
.certificateChain("certificateChain")
.build())
.sds(TlsValidationContextSdsTrustProperty.builder()
.secretName("secretName")
.build())
.build())
// the properties below are optional
.subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
.match(SubjectAlternativeNameMatchersProperty.builder()
.exact(List.of("exact"))
.build())
.build())
.build())
.build())
.build()))
.logging(LoggingProperty.builder()
.accessLog(AccessLogProperty.builder()
.file(FileAccessLogProperty.builder()
.path("path")
// the properties below are optional
.format(LoggingFormatProperty.builder()
.json(List.of(JsonFormatRefProperty.builder()
.key("key")
.value("value")
.build()))
.text("text")
.build())
.build())
.build())
.build())
.serviceDiscovery(ServiceDiscoveryProperty.builder()
.awsCloudMap(AwsCloudMapServiceDiscoveryProperty.builder()
.namespaceName("namespaceName")
.serviceName("serviceName")
// the properties below are optional
.attributes(List.of(AwsCloudMapInstanceAttributeProperty.builder()
.key("key")
.value("value")
.build()))
.ipPreference("ipPreference")
.build())
.dns(DnsServiceDiscoveryProperty.builder()
.hostname("hostname")
// the properties below are optional
.ipPreference("ipPreference")
.responseType("responseType")
.build())
.build())
.build())
// the properties below are optional
.meshOwner("meshOwner")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.virtualNodeName("virtualNodeName")
.build();
// 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.AppMesh;
var cfnVirtualNode = new CfnVirtualNode(this, "MyCfnVirtualNode", new CfnVirtualNodeProps {
MeshName = "meshName",
Spec = new VirtualNodeSpecProperty {
BackendDefaults = new BackendDefaultsProperty {
ClientPolicy = new ClientPolicyProperty {
Tls = new ClientPolicyTlsProperty {
Validation = new TlsValidationContextProperty {
Trust = new TlsValidationContextTrustProperty {
Acm = new TlsValidationContextAcmTrustProperty {
CertificateAuthorityArns = new [] { "certificateAuthorityArns" }
},
File = new TlsValidationContextFileTrustProperty {
CertificateChain = "certificateChain"
},
Sds = new TlsValidationContextSdsTrustProperty {
SecretName = "secretName"
}
},
// the properties below are optional
SubjectAlternativeNames = new SubjectAlternativeNamesProperty {
Match = new SubjectAlternativeNameMatchersProperty {
Exact = new [] { "exact" }
}
}
},
// the properties below are optional
Certificate = new ClientTlsCertificateProperty {
File = new ListenerTlsFileCertificateProperty {
CertificateChain = "certificateChain",
PrivateKey = "privateKey"
},
Sds = new ListenerTlsSdsCertificateProperty {
SecretName = "secretName"
}
},
Enforce = false,
Ports = new [] { 123 }
}
}
},
Backends = new [] { new BackendProperty {
VirtualService = new VirtualServiceBackendProperty {
VirtualServiceName = "virtualServiceName",
// the properties below are optional
ClientPolicy = new ClientPolicyProperty {
Tls = new ClientPolicyTlsProperty {
Validation = new TlsValidationContextProperty {
Trust = new TlsValidationContextTrustProperty {
Acm = new TlsValidationContextAcmTrustProperty {
CertificateAuthorityArns = new [] { "certificateAuthorityArns" }
},
File = new TlsValidationContextFileTrustProperty {
CertificateChain = "certificateChain"
},
Sds = new TlsValidationContextSdsTrustProperty {
SecretName = "secretName"
}
},
// the properties below are optional
SubjectAlternativeNames = new SubjectAlternativeNamesProperty {
Match = new SubjectAlternativeNameMatchersProperty {
Exact = new [] { "exact" }
}
}
},
// the properties below are optional
Certificate = new ClientTlsCertificateProperty {
File = new ListenerTlsFileCertificateProperty {
CertificateChain = "certificateChain",
PrivateKey = "privateKey"
},
Sds = new ListenerTlsSdsCertificateProperty {
SecretName = "secretName"
}
},
Enforce = false,
Ports = new [] { 123 }
}
}
}
} },
Listeners = new [] { new ListenerProperty {
PortMapping = new PortMappingProperty {
Port = 123,
Protocol = "protocol"
},
// the properties below are optional
ConnectionPool = new VirtualNodeConnectionPoolProperty {
Grpc = new VirtualNodeGrpcConnectionPoolProperty {
MaxRequests = 123
},
Http = new VirtualNodeHttpConnectionPoolProperty {
MaxConnections = 123,
// the properties below are optional
MaxPendingRequests = 123
},
Http2 = new VirtualNodeHttp2ConnectionPoolProperty {
MaxRequests = 123
},
Tcp = new VirtualNodeTcpConnectionPoolProperty {
MaxConnections = 123
}
},
HealthCheck = new HealthCheckProperty {
HealthyThreshold = 123,
IntervalMillis = 123,
Protocol = "protocol",
TimeoutMillis = 123,
UnhealthyThreshold = 123,
// the properties below are optional
Path = "path",
Port = 123
},
OutlierDetection = new OutlierDetectionProperty {
BaseEjectionDuration = new DurationProperty {
Unit = "unit",
Value = 123
},
Interval = new DurationProperty {
Unit = "unit",
Value = 123
},
MaxEjectionPercent = 123,
MaxServerErrors = 123
},
Timeout = new ListenerTimeoutProperty {
Grpc = new GrpcTimeoutProperty {
Idle = new DurationProperty {
Unit = "unit",
Value = 123
},
PerRequest = new DurationProperty {
Unit = "unit",
Value = 123
}
},
Http = new HttpTimeoutProperty {
Idle = new DurationProperty {
Unit = "unit",
Value = 123
},
PerRequest = new DurationProperty {
Unit = "unit",
Value = 123
}
},
Http2 = new HttpTimeoutProperty {
Idle = new DurationProperty {
Unit = "unit",
Value = 123
},
PerRequest = new DurationProperty {
Unit = "unit",
Value = 123
}
},
Tcp = new TcpTimeoutProperty {
Idle = new DurationProperty {
Unit = "unit",
Value = 123
}
}
},
Tls = new ListenerTlsProperty {
Certificate = new ListenerTlsCertificateProperty {
Acm = new ListenerTlsAcmCertificateProperty {
CertificateArn = "certificateArn"
},
File = new ListenerTlsFileCertificateProperty {
CertificateChain = "certificateChain",
PrivateKey = "privateKey"
},
Sds = new ListenerTlsSdsCertificateProperty {
SecretName = "secretName"
}
},
Mode = "mode",
// the properties below are optional
Validation = new ListenerTlsValidationContextProperty {
Trust = new ListenerTlsValidationContextTrustProperty {
File = new TlsValidationContextFileTrustProperty {
CertificateChain = "certificateChain"
},
Sds = new TlsValidationContextSdsTrustProperty {
SecretName = "secretName"
}
},
// the properties below are optional
SubjectAlternativeNames = new SubjectAlternativeNamesProperty {
Match = new SubjectAlternativeNameMatchersProperty {
Exact = new [] { "exact" }
}
}
}
}
} },
Logging = new LoggingProperty {
AccessLog = new AccessLogProperty {
File = new FileAccessLogProperty {
Path = "path",
// the properties below are optional
Format = new LoggingFormatProperty {
Json = new [] { new JsonFormatRefProperty {
Key = "key",
Value = "value"
} },
Text = "text"
}
}
}
},
ServiceDiscovery = new ServiceDiscoveryProperty {
AwsCloudMap = new AwsCloudMapServiceDiscoveryProperty {
NamespaceName = "namespaceName",
ServiceName = "serviceName",
// the properties below are optional
Attributes = new [] { new AwsCloudMapInstanceAttributeProperty {
Key = "key",
Value = "value"
} },
IpPreference = "ipPreference"
},
Dns = new DnsServiceDiscoveryProperty {
Hostname = "hostname",
// the properties below are optional
IpPreference = "ipPreference",
ResponseType = "responseType"
}
}
},
// the properties below are optional
MeshOwner = "meshOwner",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VirtualNodeName = "virtualNodeName"
});
// 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"
cfnVirtualNode := awscdk.Aws_appmesh.NewCfnVirtualNode(this, jsii.String("MyCfnVirtualNode"), &CfnVirtualNodeProps{
MeshName: jsii.String("meshName"),
Spec: &VirtualNodeSpecProperty{
BackendDefaults: &BackendDefaultsProperty{
ClientPolicy: &ClientPolicyProperty{
Tls: &ClientPolicyTlsProperty{
Validation: &TlsValidationContextProperty{
Trust: &TlsValidationContextTrustProperty{
Acm: &TlsValidationContextAcmTrustProperty{
CertificateAuthorityArns: []*string{
jsii.String("certificateAuthorityArns"),
},
},
File: &TlsValidationContextFileTrustProperty{
CertificateChain: jsii.String("certificateChain"),
},
Sds: &TlsValidationContextSdsTrustProperty{
SecretName: jsii.String("secretName"),
},
},
// the properties below are optional
SubjectAlternativeNames: &SubjectAlternativeNamesProperty{
Match: &SubjectAlternativeNameMatchersProperty{
Exact: []*string{
jsii.String("exact"),
},
},
},
},
// the properties below are optional
Certificate: &ClientTlsCertificateProperty{
File: &ListenerTlsFileCertificateProperty{
CertificateChain: jsii.String("certificateChain"),
PrivateKey: jsii.String("privateKey"),
},
Sds: &ListenerTlsSdsCertificateProperty{
SecretName: jsii.String("secretName"),
},
},
Enforce: jsii.Boolean(false),
Ports: []interface{}{
jsii.Number(123),
},
},
},
},
Backends: []interface{}{
&BackendProperty{
VirtualService: &VirtualServiceBackendProperty{
VirtualServiceName: jsii.String("virtualServiceName"),
// the properties below are optional
ClientPolicy: &ClientPolicyProperty{
Tls: &ClientPolicyTlsProperty{
Validation: &TlsValidationContextProperty{
Trust: &TlsValidationContextTrustProperty{
Acm: &TlsValidationContextAcmTrustProperty{
CertificateAuthorityArns: []*string{
jsii.String("certificateAuthorityArns"),
},
},
File: &TlsValidationContextFileTrustProperty{
CertificateChain: jsii.String("certificateChain"),
},
Sds: &TlsValidationContextSdsTrustProperty{
SecretName: jsii.String("secretName"),
},
},
// the properties below are optional
SubjectAlternativeNames: &SubjectAlternativeNamesProperty{
Match: &SubjectAlternativeNameMatchersProperty{
Exact: []*string{
jsii.String("exact"),
},
},
},
},
// the properties below are optional
Certificate: &ClientTlsCertificateProperty{
File: &ListenerTlsFileCertificateProperty{
CertificateChain: jsii.String("certificateChain"),
PrivateKey: jsii.String("privateKey"),
},
Sds: &ListenerTlsSdsCertificateProperty{
SecretName: jsii.String("secretName"),
},
},
Enforce: jsii.Boolean(false),
Ports: []interface{}{
jsii.Number(123),
},
},
},
},
},
},
Listeners: []interface{}{
&ListenerProperty{
PortMapping: &PortMappingProperty{
Port: jsii.Number(123),
Protocol: jsii.String("protocol"),
},
// the properties below are optional
ConnectionPool: &VirtualNodeConnectionPoolProperty{
Grpc: &VirtualNodeGrpcConnectionPoolProperty{
MaxRequests: jsii.Number(123),
},
Http: &VirtualNodeHttpConnectionPoolProperty{
MaxConnections: jsii.Number(123),
// the properties below are optional
MaxPendingRequests: jsii.Number(123),
},
Http2: &VirtualNodeHttp2ConnectionPoolProperty{
MaxRequests: jsii.Number(123),
},
Tcp: &VirtualNodeTcpConnectionPoolProperty{
MaxConnections: jsii.Number(123),
},
},
HealthCheck: &HealthCheckProperty{
HealthyThreshold: jsii.Number(123),
IntervalMillis: jsii.Number(123),
Protocol: jsii.String("protocol"),
TimeoutMillis: jsii.Number(123),
UnhealthyThreshold: jsii.Number(123),
// the properties below are optional
Path: jsii.String("path"),
Port: jsii.Number(123),
},
OutlierDetection: &OutlierDetectionProperty{
BaseEjectionDuration: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
Interval: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
MaxEjectionPercent: jsii.Number(123),
MaxServerErrors: jsii.Number(123),
},
Timeout: &ListenerTimeoutProperty{
Grpc: &GrpcTimeoutProperty{
Idle: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
PerRequest: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
},
Http: &HttpTimeoutProperty{
Idle: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
PerRequest: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
},
Http2: &HttpTimeoutProperty{
Idle: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
PerRequest: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
},
Tcp: &TcpTimeoutProperty{
Idle: &DurationProperty{
Unit: jsii.String("unit"),
Value: jsii.Number(123),
},
},
},
Tls: &ListenerTlsProperty{
Certificate: &ListenerTlsCertificateProperty{
Acm: &ListenerTlsAcmCertificateProperty{
CertificateArn: jsii.String("certificateArn"),
},
File: &ListenerTlsFileCertificateProperty{
CertificateChain: jsii.String("certificateChain"),
PrivateKey: jsii.String("privateKey"),
},
Sds: &ListenerTlsSdsCertificateProperty{
SecretName: jsii.String("secretName"),
},
},
Mode: jsii.String("mode"),
// the properties below are optional
Validation: &ListenerTlsValidationContextProperty{
Trust: &ListenerTlsValidationContextTrustProperty{
File: &TlsValidationContextFileTrustProperty{
CertificateChain: jsii.String("certificateChain"),
},
Sds: &TlsValidationContextSdsTrustProperty{
SecretName: jsii.String("secretName"),
},
},
// the properties below are optional
SubjectAlternativeNames: &SubjectAlternativeNamesProperty{
Match: &SubjectAlternativeNameMatchersProperty{
Exact: []*string{
jsii.String("exact"),
},
},
},
},
},
},
},
Logging: &LoggingProperty{
AccessLog: &AccessLogProperty{
File: &FileAccessLogProperty{
Path: jsii.String("path"),
// the properties below are optional
Format: &LoggingFormatProperty{
Json: []interface{}{
&JsonFormatRefProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Text: jsii.String("text"),
},
},
},
},
ServiceDiscovery: &ServiceDiscoveryProperty{
AwsCloudMap: &AwsCloudMapServiceDiscoveryProperty{
NamespaceName: jsii.String("namespaceName"),
ServiceName: jsii.String("serviceName"),
// the properties below are optional
Attributes: []interface{}{
&AwsCloudMapInstanceAttributeProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
IpPreference: jsii.String("ipPreference"),
},
Dns: &DnsServiceDiscoveryProperty{
Hostname: jsii.String("hostname"),
// the properties below are optional
IpPreference: jsii.String("ipPreference"),
ResponseType: jsii.String("responseType"),
},
},
},
// the properties below are optional
MeshOwner: jsii.String("meshOwner"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VirtualNodeName: jsii.String("virtualNodeName"),
})
Initializer
new CfnVirtualNode(scope: Construct, id: string, props: CfnVirtualNodeProps)
CfnVirtualNode(scope: Construct, id: str, props: CfnVirtualNodeProps)
new CfnVirtualNode(Construct scope, String id, CfnVirtualNodeProps props)
new CfnVirtualNode(Construct scope, string id, CfnVirtualNodeProps props)
NewCfnVirtualNode(Scope Construct, Id *string, Props CfnVirtualNodeProps)
Construct Props
notes
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 .
specIResolvable | CfnVirtualNode.VirtualNodeSpecPropertyspectyping.Union[IResolvable, VirtualNodeSpecProperty]specIResolvableSpecIResolvableSpecinterface{}required#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.
virtualNodeNamestringvirtual_node_namestrvirtualNodeNameStringVirtualNodeNamestringVirtualNodeName*string#Properties
attrMeshOwnerstringattr_mesh_ownerstrattrMeshOwnerStringAttrMeshOwnerstringAttrMeshOwner*stringrequired#notes
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 .
attrResourceOwnerstringattr_resource_ownerstrattrResourceOwnerStringAttrResourceOwnerstringAttrResourceOwner*stringrequired#notes
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 .
attrVirtualNodeNamestringattr_virtual_node_namestrattrVirtualNodeNameStringAttrVirtualNodeNamestringAttrVirtualNodeName*stringrequired#CFN_RESOURCE_TYPE_NAMEstringcfn_resource_type_namestrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*stringrequiredstatic#cfnOptionsICfnResourceOptionscfn_optionsICfnResourceOptionscfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsrequired#cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*stringrequired#creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*stringrequired#The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId).
If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).
specIResolvable | CfnVirtualNode.VirtualNodeSpecPropertyspectyping.Union[IResolvable, VirtualNodeSpecProperty]specIResolvableSpecIResolvableSpecinterface{}required#CfnElements must be defined within a stack scope (directly or indirectly).
virtualNodeNamestringvirtual_node_namestrvirtualNodeNameStringVirtualNodeNamestringVirtualNodeName*string#virtualNodeRefVirtualNodeReferencevirtual_node_refVirtualNodeReferencevirtualNodeRefVirtualNodeReferenceVirtualNodeRefVirtualNodeReferenceVirtualNodeRefVirtualNodeReferencerequired#Methods
addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string)#1 parameter
Parameters
pathpathpathpathPath— The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource)deprecated#This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.
addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource)deprecated#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.
addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{})#addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{})#notes · 2 parameters
To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).
If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.
For example,
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.
Parameters
pathpathpathpathPath— - The path of the property, you can use dot notation to override values in complex types.valuevaluevaluevalueValue— - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string)#1 parameter
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{})#Syntactic sugar for addOverride("Properties.<...>", value).
2 parameters
Parameters
propertyPathproperty_pathpropertyPathpropertyPathPropertyPath— The path of the property.valuevaluevaluevalueValue— The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string)#notes
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.
1 parameter
Parameters
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions)#notes
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:
arnForVirtualNode(resource: IVirtualNodeRef): string@staticmethod def arn_for_virtual_node(resource: IVirtualNodeRef) -> strpublic static String arnForVirtualNode(IVirtualNodeRef resource)public static string ArnForVirtualNode(IVirtualNodeRef resource)func ArnForVirtualNode(Resource IVirtualNodeRef) *stringstatic#cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string#getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference#Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
1 parameter
Parameters
attributeNameattribute_nameattributeNameattributeNameAttributeName— The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{}#inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector)#1 parameter
Parameters
inspectorinspectorinspectorinspectorInspector— tree inspector to collect and process attributes.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *boolstatic#Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.
returns
Returns: The construct as a stack element or undefined if it is not a stack element.
isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *boolstatic#isCfnVirtualNode(x: any): boolean@staticmethod def is_cfn_virtual_node(x: Any) -> boolpublic static Boolean isCfnVirtualNode(Object x)public static bool IsCfnVirtualNode(object x)func IsCfnVirtualNode(X interface{}) *boolstatic#isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#notes · 1 parameter · returns
Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{}#For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.
overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string)#1 parameter
Parameters
newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId— The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource)deprecated#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource)#This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource)#2 parameters
Parameters
targettargettargettargetTarget— The dependency to replace.newTargetnew_targetnewTargetnewTargetNewTarget— The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#returns
Returns: a string representation of this resource
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.