@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:45.125Z") @Stability(value=Stable) public class CfnVirtualGateway extends CfnResource implements IInspectable
Creates a virtual gateway.
A virtual gateway allows resources outside your mesh to communicate to resources that are inside your mesh. The virtual gateway represents an Envoy proxy running in an Amazon ECS task, in a Kubernetes service, or on an Amazon EC2 instance. Unlike a virtual node, which represents an Envoy running with an application, a virtual gateway represents Envoy deployed by itself.
For more information about virtual gateways, see Virtual gateways .
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.*; CfnVirtualGateway cfnVirtualGateway = CfnVirtualGateway.Builder.create(this, "MyCfnVirtualGateway") .meshName("meshName") .spec(VirtualGatewaySpecProperty.builder() .listeners(List.of(VirtualGatewayListenerProperty.builder() .portMapping(VirtualGatewayPortMappingProperty.builder() .port(123) .protocol("protocol") .build()) // the properties below are optional .connectionPool(VirtualGatewayConnectionPoolProperty.builder() .grpc(VirtualGatewayGrpcConnectionPoolProperty.builder() .maxRequests(123) .build()) .http(VirtualGatewayHttpConnectionPoolProperty.builder() .maxConnections(123) // the properties below are optional .maxPendingRequests(123) .build()) .http2(VirtualGatewayHttp2ConnectionPoolProperty.builder() .maxRequests(123) .build()) .build()) .healthCheck(VirtualGatewayHealthCheckPolicyProperty.builder() .healthyThreshold(123) .intervalMillis(123) .protocol("protocol") .timeoutMillis(123) .unhealthyThreshold(123) // the properties below are optional .path("path") .port(123) .build()) .tls(VirtualGatewayListenerTlsProperty.builder() .certificate(VirtualGatewayListenerTlsCertificateProperty.builder() .acm(VirtualGatewayListenerTlsAcmCertificateProperty.builder() .certificateArn("certificateArn") .build()) .file(VirtualGatewayListenerTlsFileCertificateProperty.builder() .certificateChain("certificateChain") .privateKey("privateKey") .build()) .sds(VirtualGatewayListenerTlsSdsCertificateProperty.builder() .secretName("secretName") .build()) .build()) .mode("mode") // the properties below are optional .validation(VirtualGatewayListenerTlsValidationContextProperty.builder() .trust(VirtualGatewayListenerTlsValidationContextTrustProperty.builder() .file(VirtualGatewayTlsValidationContextFileTrustProperty.builder() .certificateChain("certificateChain") .build()) .sds(VirtualGatewayTlsValidationContextSdsTrustProperty.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())) // the properties below are optional .backendDefaults(VirtualGatewayBackendDefaultsProperty.builder() .clientPolicy(VirtualGatewayClientPolicyProperty.builder() .tls(VirtualGatewayClientPolicyTlsProperty.builder() .validation(VirtualGatewayTlsValidationContextProperty.builder() .trust(VirtualGatewayTlsValidationContextTrustProperty.builder() .acm(VirtualGatewayTlsValidationContextAcmTrustProperty.builder() .certificateAuthorityArns(List.of("certificateAuthorityArns")) .build()) .file(VirtualGatewayTlsValidationContextFileTrustProperty.builder() .certificateChain("certificateChain") .build()) .sds(VirtualGatewayTlsValidationContextSdsTrustProperty.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(VirtualGatewayClientTlsCertificateProperty.builder() .file(VirtualGatewayListenerTlsFileCertificateProperty.builder() .certificateChain("certificateChain") .privateKey("privateKey") .build()) .sds(VirtualGatewayListenerTlsSdsCertificateProperty.builder() .secretName("secretName") .build()) .build()) .enforce(false) .ports(List.of(123)) .build()) .build()) .build()) .logging(VirtualGatewayLoggingProperty.builder() .accessLog(VirtualGatewayAccessLogProperty.builder() .file(VirtualGatewayFileAccessLogProperty.builder() .path("path") .build()) .build()) .build()) .build()) // the properties below are optional .meshOwner("meshOwner") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .virtualGatewayName("virtualGatewayName") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnVirtualGateway.Builder
A fluent builder for
CfnVirtualGateway . |
static interface |
CfnVirtualGateway.SubjectAlternativeNameMatchersProperty
An object that represents the methods by which a subject alternative name on a peer Transport Layer Security (TLS) certificate can be matched.
|
static interface |
CfnVirtualGateway.SubjectAlternativeNamesProperty
An object that represents the subject alternative names secured by the certificate.
|
static interface |
CfnVirtualGateway.VirtualGatewayAccessLogProperty
The access log configuration for a virtual gateway.
|
static interface |
CfnVirtualGateway.VirtualGatewayBackendDefaultsProperty
An object that represents the default properties for a backend.
|
static interface |
CfnVirtualGateway.VirtualGatewayClientPolicyProperty
An object that represents a client policy.
|
static interface |
CfnVirtualGateway.VirtualGatewayClientPolicyTlsProperty
An object that represents a Transport Layer Security (TLS) client policy.
|
static interface |
CfnVirtualGateway.VirtualGatewayClientTlsCertificateProperty
An object that represents the virtual gateway's client's Transport Layer Security (TLS) certificate.
|
static interface |
CfnVirtualGateway.VirtualGatewayConnectionPoolProperty
An object that represents the type of virtual gateway connection pool.
|
static interface |
CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
An object that represents an access log file.
|
static interface |
CfnVirtualGateway.VirtualGatewayGrpcConnectionPoolProperty
An object that represents a type of connection pool.
|
static interface |
CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty
An object that represents the health check policy for a virtual gateway's listener.
|
static interface |
CfnVirtualGateway.VirtualGatewayHttp2ConnectionPoolProperty
An object that represents a type of connection pool.
|
static interface |
CfnVirtualGateway.VirtualGatewayHttpConnectionPoolProperty
An object that represents a type of connection pool.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerProperty
An object that represents a listener for a virtual gateway.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsAcmCertificateProperty
An object that represents an AWS Certificate Manager certificate.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsCertificateProperty
An object that represents a listener's Transport Layer Security (TLS) certificate.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsFileCertificateProperty
An object that represents a local file certificate.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsProperty
An object that represents the Transport Layer Security (TLS) properties for a listener.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsSdsCertificateProperty
An object that represents the virtual gateway's listener's Secret Discovery Service certificate.The proxy must be configured with a local SDS provider via a Unix Domain Socket.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsValidationContextProperty
An object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context.
|
static interface |
CfnVirtualGateway.VirtualGatewayListenerTlsValidationContextTrustProperty
An object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context trust.
|
static interface |
CfnVirtualGateway.VirtualGatewayLoggingProperty
An object that represents logging information.
|
static interface |
CfnVirtualGateway.VirtualGatewayPortMappingProperty
An object that represents a port mapping.
|
static interface |
CfnVirtualGateway.VirtualGatewaySpecProperty
An object that represents the specification of a service mesh resource.
|
static interface |
CfnVirtualGateway.VirtualGatewayTlsValidationContextAcmTrustProperty
An object that represents a Transport Layer Security (TLS) validation context trust for an AWS Certificate Manager certificate.
|
static interface |
CfnVirtualGateway.VirtualGatewayTlsValidationContextFileTrustProperty
An object that represents a Transport Layer Security (TLS) validation context trust for a local file.
|
static interface |
CfnVirtualGateway.VirtualGatewayTlsValidationContextProperty
An object that represents a Transport Layer Security (TLS) validation context.
|
static interface |
CfnVirtualGateway.VirtualGatewayTlsValidationContextSdsTrustProperty
An object that represents a virtual gateway's listener's Transport Layer Security (TLS) Secret Discovery Service validation context trust.
|
static interface |
CfnVirtualGateway.VirtualGatewayTlsValidationContextTrustProperty
An object that represents a Transport Layer Security (TLS) validation context trust.
|
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.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 |
---|---|
|
CfnVirtualGateway(software.constructs.Construct scope,
String id,
CfnVirtualGatewayProps props)
Create a new `AWS::AppMesh::VirtualGateway`.
|
protected |
CfnVirtualGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVirtualGateway(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrArn()
The full Amazon Resource Name (ARN) for the virtual gateway.
|
String |
getAttrMeshName()
The name of the service mesh that the virtual gateway 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 gateway.
|
String |
getAttrVirtualGatewayName()
The name of the virtual gateway.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getMeshName()
The name of the service mesh that the virtual gateway resides in.
|
String |
getMeshOwner()
The AWS IAM account ID of the service mesh owner.
|
Object |
getSpec()
The specifications of the virtual gateway.
|
TagManager |
getTags()
Optional metadata that you can apply to the virtual gateway to assist with categorization and organization.
|
String |
getVirtualGatewayName()
The name of the virtual gateway.
|
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 that the virtual gateway resides in.
|
void |
setMeshOwner(String value)
The AWS IAM account ID of the service mesh owner.
|
void |
setSpec(CfnVirtualGateway.VirtualGatewaySpecProperty value)
The specifications of the virtual gateway.
|
void |
setSpec(IResolvable value)
The specifications of the virtual gateway.
|
void |
setVirtualGatewayName(String value)
The name of the virtual gateway.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnVirtualGateway(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVirtualGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnVirtualGateway(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVirtualGatewayProps 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 IInspectable
inspector
- - 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 CfnResource
props
- 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 getAttrVirtualGatewayName()
@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 CfnVirtualGateway.VirtualGatewaySpecProperty value)
@Stability(value=Stable) public void setSpec(@NotNull IResolvable value)
@Stability(value=Stable) @Nullable public String getMeshOwner()
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) public void setMeshOwner(@Nullable String value)
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) @Nullable public String getVirtualGatewayName()
@Stability(value=Stable) public void setVirtualGatewayName(@Nullable String value)
Copyright © 2022. All rights reserved.