Documentation ¶
Index ¶
- func CfnGatewayRoute_CFN_RESOURCE_TYPE_NAME() *string
- func CfnGatewayRoute_IsCfnElement(x interface{}) *bool
- func CfnGatewayRoute_IsCfnResource(x interface{}) *bool
- func CfnGatewayRoute_IsConstruct(x interface{}) *bool
- func CfnMesh_CFN_RESOURCE_TYPE_NAME() *string
- func CfnMesh_IsCfnElement(x interface{}) *bool
- func CfnMesh_IsCfnResource(x interface{}) *bool
- func CfnMesh_IsConstruct(x interface{}) *bool
- func CfnRoute_CFN_RESOURCE_TYPE_NAME() *string
- func CfnRoute_IsCfnElement(x interface{}) *bool
- func CfnRoute_IsCfnResource(x interface{}) *bool
- func CfnRoute_IsConstruct(x interface{}) *bool
- func CfnVirtualGateway_CFN_RESOURCE_TYPE_NAME() *string
- func CfnVirtualGateway_IsCfnElement(x interface{}) *bool
- func CfnVirtualGateway_IsCfnResource(x interface{}) *bool
- func CfnVirtualGateway_IsConstruct(x interface{}) *bool
- func CfnVirtualNode_CFN_RESOURCE_TYPE_NAME() *string
- func CfnVirtualNode_IsCfnElement(x interface{}) *bool
- func CfnVirtualNode_IsCfnResource(x interface{}) *bool
- func CfnVirtualNode_IsConstruct(x interface{}) *bool
- func CfnVirtualRouter_CFN_RESOURCE_TYPE_NAME() *string
- func CfnVirtualRouter_IsCfnElement(x interface{}) *bool
- func CfnVirtualRouter_IsCfnResource(x interface{}) *bool
- func CfnVirtualRouter_IsConstruct(x interface{}) *bool
- func CfnVirtualService_CFN_RESOURCE_TYPE_NAME() *string
- func CfnVirtualService_IsCfnElement(x interface{}) *bool
- func CfnVirtualService_IsCfnResource(x interface{}) *bool
- func CfnVirtualService_IsConstruct(x interface{}) *bool
- func GatewayRoute_IsConstruct(x interface{}) *bool
- func GatewayRoute_IsOwnedResource(construct constructs.IConstruct) *bool
- func GatewayRoute_IsResource(construct constructs.IConstruct) *bool
- func Mesh_IsConstruct(x interface{}) *bool
- func Mesh_IsOwnedResource(construct constructs.IConstruct) *bool
- func Mesh_IsResource(construct constructs.IConstruct) *bool
- func NewAccessLog_Override(a AccessLog)
- func NewBackend_Override(b Backend)
- func NewCfnGatewayRoute_Override(c CfnGatewayRoute, scope constructs.Construct, id *string, ...)
- func NewCfnMesh_Override(c CfnMesh, scope constructs.Construct, id *string, props *CfnMeshProps)
- func NewCfnRoute_Override(c CfnRoute, scope constructs.Construct, id *string, props *CfnRouteProps)
- func NewCfnVirtualGateway_Override(c CfnVirtualGateway, scope constructs.Construct, id *string, ...)
- func NewCfnVirtualNode_Override(c CfnVirtualNode, scope constructs.Construct, id *string, ...)
- func NewCfnVirtualRouter_Override(c CfnVirtualRouter, scope constructs.Construct, id *string, ...)
- func NewCfnVirtualService_Override(c CfnVirtualService, scope constructs.Construct, id *string, ...)
- func NewGatewayRouteHostnameMatch_Override(g GatewayRouteHostnameMatch)
- func NewGatewayRouteSpec_Override(g GatewayRouteSpec)
- func NewGatewayRoute_Override(g GatewayRoute, scope constructs.Construct, id *string, ...)
- func NewHeaderMatch_Override(h HeaderMatch)
- func NewHealthCheck_Override(h HealthCheck)
- func NewHttpGatewayRoutePathMatch_Override(h HttpGatewayRoutePathMatch)
- func NewHttpRoutePathMatch_Override(h HttpRoutePathMatch)
- func NewLoggingFormat_Override(l LoggingFormat)
- func NewMesh_Override(m Mesh, scope constructs.Construct, id *string, props *MeshProps)
- func NewMutualTlsCertificate_Override(m MutualTlsCertificate)
- func NewMutualTlsValidationTrust_Override(m MutualTlsValidationTrust)
- func NewQueryParameterMatch_Override(q QueryParameterMatch)
- func NewRouteSpec_Override(r RouteSpec)
- func NewRoute_Override(r Route, scope constructs.Construct, id *string, props *RouteProps)
- func NewServiceDiscovery_Override(s ServiceDiscovery)
- func NewSubjectAlternativeNames_Override(s SubjectAlternativeNames)
- func NewTlsCertificate_Override(t TlsCertificate)
- func NewTlsValidationTrust_Override(t TlsValidationTrust)
- func NewVirtualGatewayListener_Override(v VirtualGatewayListener)
- func NewVirtualGateway_Override(v VirtualGateway, scope constructs.Construct, id *string, ...)
- func NewVirtualNodeListener_Override(v VirtualNodeListener)
- func NewVirtualNode_Override(v VirtualNode, scope constructs.Construct, id *string, props *VirtualNodeProps)
- func NewVirtualRouterListener_Override(v VirtualRouterListener)
- func NewVirtualRouter_Override(v VirtualRouter, scope constructs.Construct, id *string, ...)
- func NewVirtualServiceProvider_Override(v VirtualServiceProvider)
- func NewVirtualService_Override(v VirtualService, scope constructs.Construct, id *string, ...)
- func Route_IsConstruct(x interface{}) *bool
- func Route_IsOwnedResource(construct constructs.IConstruct) *bool
- func Route_IsResource(construct constructs.IConstruct) *bool
- func VirtualGateway_IsConstruct(x interface{}) *bool
- func VirtualGateway_IsOwnedResource(construct constructs.IConstruct) *bool
- func VirtualGateway_IsResource(construct constructs.IConstruct) *bool
- func VirtualNode_IsConstruct(x interface{}) *bool
- func VirtualNode_IsOwnedResource(construct constructs.IConstruct) *bool
- func VirtualNode_IsResource(construct constructs.IConstruct) *bool
- func VirtualRouter_IsConstruct(x interface{}) *bool
- func VirtualRouter_IsOwnedResource(construct constructs.IConstruct) *bool
- func VirtualRouter_IsResource(construct constructs.IConstruct) *bool
- func VirtualService_IsConstruct(x interface{}) *bool
- func VirtualService_IsOwnedResource(construct constructs.IConstruct) *bool
- func VirtualService_IsResource(construct constructs.IConstruct) *bool
- type AccessLog
- type AccessLogConfig
- type Backend
- type BackendConfig
- type BackendDefaults
- type CfnGatewayRoute
- type CfnGatewayRouteProps
- type CfnGatewayRoute_GatewayRouteHostnameMatchProperty
- type CfnGatewayRoute_GatewayRouteHostnameRewriteProperty
- type CfnGatewayRoute_GatewayRouteMetadataMatchProperty
- type CfnGatewayRoute_GatewayRouteRangeMatchProperty
- type CfnGatewayRoute_GatewayRouteSpecProperty
- type CfnGatewayRoute_GatewayRouteTargetProperty
- type CfnGatewayRoute_GatewayRouteVirtualServiceProperty
- type CfnGatewayRoute_GrpcGatewayRouteActionProperty
- type CfnGatewayRoute_GrpcGatewayRouteMatchProperty
- type CfnGatewayRoute_GrpcGatewayRouteMetadataProperty
- type CfnGatewayRoute_GrpcGatewayRouteProperty
- type CfnGatewayRoute_GrpcGatewayRouteRewriteProperty
- type CfnGatewayRoute_HttpGatewayRouteActionProperty
- type CfnGatewayRoute_HttpGatewayRouteHeaderMatchProperty
- type CfnGatewayRoute_HttpGatewayRouteHeaderProperty
- type CfnGatewayRoute_HttpGatewayRouteMatchProperty
- type CfnGatewayRoute_HttpGatewayRoutePathRewriteProperty
- type CfnGatewayRoute_HttpGatewayRoutePrefixRewriteProperty
- type CfnGatewayRoute_HttpGatewayRouteProperty
- type CfnGatewayRoute_HttpGatewayRouteRewriteProperty
- type CfnGatewayRoute_HttpPathMatchProperty
- type CfnGatewayRoute_HttpQueryParameterMatchProperty
- type CfnGatewayRoute_QueryParameterProperty
- type CfnMesh
- type CfnMeshProps
- type CfnMesh_EgressFilterProperty
- type CfnMesh_MeshServiceDiscoveryProperty
- type CfnMesh_MeshSpecProperty
- type CfnRoute
- type CfnRouteProps
- type CfnRoute_DurationProperty
- type CfnRoute_GrpcRetryPolicyProperty
- type CfnRoute_GrpcRouteActionProperty
- type CfnRoute_GrpcRouteMatchProperty
- type CfnRoute_GrpcRouteMetadataMatchMethodProperty
- type CfnRoute_GrpcRouteMetadataProperty
- type CfnRoute_GrpcRouteProperty
- type CfnRoute_GrpcTimeoutProperty
- type CfnRoute_HeaderMatchMethodProperty
- type CfnRoute_HttpPathMatchProperty
- type CfnRoute_HttpQueryParameterMatchProperty
- type CfnRoute_HttpRetryPolicyProperty
- type CfnRoute_HttpRouteActionProperty
- type CfnRoute_HttpRouteHeaderProperty
- type CfnRoute_HttpRouteMatchProperty
- type CfnRoute_HttpRouteProperty
- type CfnRoute_HttpTimeoutProperty
- type CfnRoute_MatchRangeProperty
- type CfnRoute_QueryParameterProperty
- type CfnRoute_RouteSpecProperty
- type CfnRoute_TcpRouteActionProperty
- type CfnRoute_TcpRouteMatchProperty
- type CfnRoute_TcpRouteProperty
- type CfnRoute_TcpTimeoutProperty
- type CfnRoute_WeightedTargetProperty
- type CfnVirtualGateway
- type CfnVirtualGatewayProps
- type CfnVirtualGateway_JsonFormatRefProperty
- type CfnVirtualGateway_LoggingFormatProperty
- type CfnVirtualGateway_SubjectAlternativeNameMatchersProperty
- type CfnVirtualGateway_SubjectAlternativeNamesProperty
- type CfnVirtualGateway_VirtualGatewayAccessLogProperty
- type CfnVirtualGateway_VirtualGatewayBackendDefaultsProperty
- type CfnVirtualGateway_VirtualGatewayClientPolicyProperty
- type CfnVirtualGateway_VirtualGatewayClientPolicyTlsProperty
- type CfnVirtualGateway_VirtualGatewayClientTlsCertificateProperty
- type CfnVirtualGateway_VirtualGatewayConnectionPoolProperty
- type CfnVirtualGateway_VirtualGatewayFileAccessLogProperty
- type CfnVirtualGateway_VirtualGatewayGrpcConnectionPoolProperty
- type CfnVirtualGateway_VirtualGatewayHealthCheckPolicyProperty
- type CfnVirtualGateway_VirtualGatewayHttp2ConnectionPoolProperty
- type CfnVirtualGateway_VirtualGatewayHttpConnectionPoolProperty
- type CfnVirtualGateway_VirtualGatewayListenerProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsAcmCertificateProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsCertificateProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsFileCertificateProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsSdsCertificateProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextProperty
- type CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextTrustProperty
- type CfnVirtualGateway_VirtualGatewayLoggingProperty
- type CfnVirtualGateway_VirtualGatewayPortMappingProperty
- type CfnVirtualGateway_VirtualGatewaySpecProperty
- type CfnVirtualGateway_VirtualGatewayTlsValidationContextAcmTrustProperty
- type CfnVirtualGateway_VirtualGatewayTlsValidationContextFileTrustProperty
- type CfnVirtualGateway_VirtualGatewayTlsValidationContextProperty
- type CfnVirtualGateway_VirtualGatewayTlsValidationContextSdsTrustProperty
- type CfnVirtualGateway_VirtualGatewayTlsValidationContextTrustProperty
- type CfnVirtualNode
- type CfnVirtualNodeProps
- type CfnVirtualNode_AccessLogProperty
- type CfnVirtualNode_AwsCloudMapInstanceAttributeProperty
- type CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty
- type CfnVirtualNode_BackendDefaultsProperty
- type CfnVirtualNode_BackendProperty
- type CfnVirtualNode_ClientPolicyProperty
- type CfnVirtualNode_ClientPolicyTlsProperty
- type CfnVirtualNode_ClientTlsCertificateProperty
- type CfnVirtualNode_DnsServiceDiscoveryProperty
- type CfnVirtualNode_DurationProperty
- type CfnVirtualNode_FileAccessLogProperty
- type CfnVirtualNode_GrpcTimeoutProperty
- type CfnVirtualNode_HealthCheckProperty
- type CfnVirtualNode_HttpTimeoutProperty
- type CfnVirtualNode_JsonFormatRefProperty
- type CfnVirtualNode_ListenerProperty
- type CfnVirtualNode_ListenerTimeoutProperty
- type CfnVirtualNode_ListenerTlsAcmCertificateProperty
- type CfnVirtualNode_ListenerTlsCertificateProperty
- type CfnVirtualNode_ListenerTlsFileCertificateProperty
- type CfnVirtualNode_ListenerTlsProperty
- type CfnVirtualNode_ListenerTlsSdsCertificateProperty
- type CfnVirtualNode_ListenerTlsValidationContextProperty
- type CfnVirtualNode_ListenerTlsValidationContextTrustProperty
- type CfnVirtualNode_LoggingFormatProperty
- type CfnVirtualNode_LoggingProperty
- type CfnVirtualNode_OutlierDetectionProperty
- type CfnVirtualNode_PortMappingProperty
- type CfnVirtualNode_ServiceDiscoveryProperty
- type CfnVirtualNode_SubjectAlternativeNameMatchersProperty
- type CfnVirtualNode_SubjectAlternativeNamesProperty
- type CfnVirtualNode_TcpTimeoutProperty
- type CfnVirtualNode_TlsValidationContextAcmTrustProperty
- type CfnVirtualNode_TlsValidationContextFileTrustProperty
- type CfnVirtualNode_TlsValidationContextProperty
- type CfnVirtualNode_TlsValidationContextSdsTrustProperty
- type CfnVirtualNode_TlsValidationContextTrustProperty
- type CfnVirtualNode_VirtualNodeConnectionPoolProperty
- type CfnVirtualNode_VirtualNodeGrpcConnectionPoolProperty
- type CfnVirtualNode_VirtualNodeHttp2ConnectionPoolProperty
- type CfnVirtualNode_VirtualNodeHttpConnectionPoolProperty
- type CfnVirtualNode_VirtualNodeSpecProperty
- type CfnVirtualNode_VirtualNodeTcpConnectionPoolProperty
- type CfnVirtualNode_VirtualServiceBackendProperty
- type CfnVirtualRouter
- type CfnVirtualRouterProps
- type CfnVirtualRouter_PortMappingProperty
- type CfnVirtualRouter_VirtualRouterListenerProperty
- type CfnVirtualRouter_VirtualRouterSpecProperty
- type CfnVirtualService
- type CfnVirtualServiceProps
- type CfnVirtualService_VirtualNodeServiceProviderProperty
- type CfnVirtualService_VirtualRouterServiceProviderProperty
- type CfnVirtualService_VirtualServiceProviderProperty
- type CfnVirtualService_VirtualServiceSpecProperty
- type CommonGatewayRouteSpecOptions
- type DnsResponseType
- type GatewayRoute
- type GatewayRouteAttributes
- type GatewayRouteBaseProps
- type GatewayRouteHostnameMatch
- type GatewayRouteHostnameMatchConfig
- type GatewayRouteProps
- type GatewayRouteSpec
- type GatewayRouteSpecConfig
- type GrpcConnectionPool
- type GrpcGatewayListenerOptions
- type GrpcGatewayRouteMatch
- type GrpcGatewayRouteSpecOptions
- type GrpcHealthCheckOptions
- type GrpcRetryEvent
- type GrpcRetryPolicy
- type GrpcRouteMatch
- type GrpcRouteSpecOptions
- type GrpcTimeout
- type GrpcVirtualNodeListenerOptions
- type HeaderMatch
- func HeaderMatch_ValueDoesNotEndWith(headerName *string, suffix *string) HeaderMatch
- func HeaderMatch_ValueDoesNotMatchRegex(headerName *string, regex *string) HeaderMatch
- func HeaderMatch_ValueDoesNotStartWith(headerName *string, prefix *string) HeaderMatch
- func HeaderMatch_ValueEndsWith(headerName *string, suffix *string) HeaderMatch
- func HeaderMatch_ValueIs(headerName *string, headerValue *string) HeaderMatch
- func HeaderMatch_ValueIsNot(headerName *string, headerValue *string) HeaderMatch
- func HeaderMatch_ValueMatchesRegex(headerName *string, regex *string) HeaderMatch
- func HeaderMatch_ValueStartsWith(headerName *string, prefix *string) HeaderMatch
- func HeaderMatch_ValuesIsInRange(headerName *string, start *float64, end *float64) HeaderMatch
- func HeaderMatch_ValuesIsNotInRange(headerName *string, start *float64, end *float64) HeaderMatch
- type HeaderMatchConfig
- type HealthCheck
- type HealthCheckBindOptions
- type HealthCheckConfig
- type Http2ConnectionPool
- type Http2GatewayListenerOptions
- type Http2VirtualNodeListenerOptions
- type HttpConnectionPool
- type HttpGatewayListenerOptions
- type HttpGatewayRouteMatch
- type HttpGatewayRoutePathMatch
- type HttpGatewayRoutePathMatchConfig
- type HttpGatewayRouteSpecOptions
- type HttpHealthCheckOptions
- type HttpRetryEvent
- type HttpRetryPolicy
- type HttpRouteMatch
- type HttpRouteMethod
- type HttpRoutePathMatch
- type HttpRoutePathMatchConfig
- type HttpRouteProtocol
- type HttpRouteSpecOptions
- type HttpTimeout
- type HttpVirtualNodeListenerOptions
- type IGatewayRoute
- type IMesh
- type IRoute
- type IVirtualGateway
- type IVirtualNode
- type IVirtualRouter
- type IVirtualService
- type IpPreference
- type ListenerTlsOptions
- type LoggingFormat
- type LoggingFormatConfig
- type Mesh
- type MeshFilterType
- type MeshProps
- type MeshServiceDiscovery
- type MutualTlsCertificate
- func MutualTlsCertificate_File(certificateChainPath *string, privateKeyPath *string) MutualTlsCertificate
- func MutualTlsCertificate_Sds(secretName *string) MutualTlsCertificate
- func TlsCertificate_File(certificateChainPath *string, privateKeyPath *string) MutualTlsCertificate
- func TlsCertificate_Sds(secretName *string) MutualTlsCertificate
- type MutualTlsValidation
- type MutualTlsValidationTrust
- func MutualTlsValidationTrust_File(certificateChain *string) MutualTlsValidationTrust
- func MutualTlsValidationTrust_Sds(secretName *string) MutualTlsValidationTrust
- func TlsValidationTrust_File(certificateChain *string) MutualTlsValidationTrust
- func TlsValidationTrust_Sds(secretName *string) MutualTlsValidationTrust
- type OutlierDetection
- type QueryParameterMatch
- type QueryParameterMatchConfig
- type Route
- type RouteAttributes
- type RouteBaseProps
- type RouteProps
- type RouteSpec
- type RouteSpecConfig
- type RouteSpecOptionsBase
- type ServiceDiscovery
- type ServiceDiscoveryConfig
- type SubjectAlternativeNames
- type SubjectAlternativeNamesMatcherConfig
- type TcpConnectionPool
- type TcpHealthCheckOptions
- type TcpRetryEvent
- type TcpRouteSpecOptions
- type TcpTimeout
- type TcpVirtualNodeListenerOptions
- type TlsCertificate
- type TlsCertificateConfig
- type TlsClientPolicy
- type TlsMode
- type TlsValidation
- type TlsValidationTrust
- type TlsValidationTrustConfig
- type VirtualGateway
- type VirtualGatewayAttributes
- type VirtualGatewayBaseProps
- type VirtualGatewayListener
- type VirtualGatewayListenerConfig
- type VirtualGatewayProps
- type VirtualNode
- type VirtualNodeAttributes
- type VirtualNodeBaseProps
- type VirtualNodeListener
- func VirtualNodeListener_Grpc(props *GrpcVirtualNodeListenerOptions) VirtualNodeListener
- func VirtualNodeListener_Http(props *HttpVirtualNodeListenerOptions) VirtualNodeListener
- func VirtualNodeListener_Http2(props *Http2VirtualNodeListenerOptions) VirtualNodeListener
- func VirtualNodeListener_Tcp(props *TcpVirtualNodeListenerOptions) VirtualNodeListener
- type VirtualNodeListenerConfig
- type VirtualNodeProps
- type VirtualRouter
- type VirtualRouterAttributes
- type VirtualRouterBaseProps
- type VirtualRouterListener
- type VirtualRouterListenerConfig
- type VirtualRouterProps
- type VirtualService
- type VirtualServiceAttributes
- type VirtualServiceBackendOptions
- type VirtualServiceProps
- type VirtualServiceProvider
- type VirtualServiceProviderConfig
- type WeightedTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnGatewayRoute_CFN_RESOURCE_TYPE_NAME ¶
func CfnGatewayRoute_CFN_RESOURCE_TYPE_NAME() *string
func CfnGatewayRoute_IsCfnElement ¶
func CfnGatewayRoute_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnGatewayRoute_IsCfnResource ¶
func CfnGatewayRoute_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnGatewayRoute_IsConstruct ¶
func CfnGatewayRoute_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnMesh_CFN_RESOURCE_TYPE_NAME ¶
func CfnMesh_CFN_RESOURCE_TYPE_NAME() *string
func CfnMesh_IsCfnElement ¶
func CfnMesh_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnMesh_IsCfnResource ¶
func CfnMesh_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnMesh_IsConstruct ¶
func CfnMesh_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnRoute_CFN_RESOURCE_TYPE_NAME ¶
func CfnRoute_CFN_RESOURCE_TYPE_NAME() *string
func CfnRoute_IsCfnElement ¶
func CfnRoute_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnRoute_IsCfnResource ¶
func CfnRoute_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnRoute_IsConstruct ¶
func CfnRoute_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnVirtualGateway_CFN_RESOURCE_TYPE_NAME ¶
func CfnVirtualGateway_CFN_RESOURCE_TYPE_NAME() *string
func CfnVirtualGateway_IsCfnElement ¶
func CfnVirtualGateway_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnVirtualGateway_IsCfnResource ¶
func CfnVirtualGateway_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnVirtualGateway_IsConstruct ¶
func CfnVirtualGateway_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnVirtualNode_CFN_RESOURCE_TYPE_NAME ¶
func CfnVirtualNode_CFN_RESOURCE_TYPE_NAME() *string
func CfnVirtualNode_IsCfnElement ¶
func CfnVirtualNode_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnVirtualNode_IsCfnResource ¶
func CfnVirtualNode_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnVirtualNode_IsConstruct ¶
func CfnVirtualNode_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnVirtualRouter_CFN_RESOURCE_TYPE_NAME ¶
func CfnVirtualRouter_CFN_RESOURCE_TYPE_NAME() *string
func CfnVirtualRouter_IsCfnElement ¶
func CfnVirtualRouter_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnVirtualRouter_IsCfnResource ¶
func CfnVirtualRouter_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnVirtualRouter_IsConstruct ¶
func CfnVirtualRouter_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnVirtualService_CFN_RESOURCE_TYPE_NAME ¶
func CfnVirtualService_CFN_RESOURCE_TYPE_NAME() *string
func CfnVirtualService_IsCfnElement ¶
func CfnVirtualService_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnVirtualService_IsCfnResource ¶
func CfnVirtualService_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnVirtualService_IsConstruct ¶
func CfnVirtualService_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func GatewayRoute_IsConstruct ¶
func GatewayRoute_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func GatewayRoute_IsOwnedResource ¶ added in v2.32.0
func GatewayRoute_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func GatewayRoute_IsResource ¶
func GatewayRoute_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func Mesh_IsConstruct ¶
func Mesh_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Mesh_IsOwnedResource ¶ added in v2.32.0
func Mesh_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func Mesh_IsResource ¶
func Mesh_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func NewAccessLog_Override ¶
func NewAccessLog_Override(a AccessLog)
func NewBackend_Override ¶
func NewBackend_Override(b Backend)
func NewCfnGatewayRoute_Override ¶
func NewCfnGatewayRoute_Override(c CfnGatewayRoute, scope constructs.Construct, id *string, props *CfnGatewayRouteProps)
func NewCfnMesh_Override ¶
func NewCfnMesh_Override(c CfnMesh, scope constructs.Construct, id *string, props *CfnMeshProps)
func NewCfnRoute_Override ¶
func NewCfnRoute_Override(c CfnRoute, scope constructs.Construct, id *string, props *CfnRouteProps)
func NewCfnVirtualGateway_Override ¶
func NewCfnVirtualGateway_Override(c CfnVirtualGateway, scope constructs.Construct, id *string, props *CfnVirtualGatewayProps)
func NewCfnVirtualNode_Override ¶
func NewCfnVirtualNode_Override(c CfnVirtualNode, scope constructs.Construct, id *string, props *CfnVirtualNodeProps)
func NewCfnVirtualRouter_Override ¶
func NewCfnVirtualRouter_Override(c CfnVirtualRouter, scope constructs.Construct, id *string, props *CfnVirtualRouterProps)
func NewCfnVirtualService_Override ¶
func NewCfnVirtualService_Override(c CfnVirtualService, scope constructs.Construct, id *string, props *CfnVirtualServiceProps)
func NewGatewayRouteHostnameMatch_Override ¶
func NewGatewayRouteHostnameMatch_Override(g GatewayRouteHostnameMatch)
func NewGatewayRouteSpec_Override ¶
func NewGatewayRouteSpec_Override(g GatewayRouteSpec)
func NewGatewayRoute_Override ¶
func NewGatewayRoute_Override(g GatewayRoute, scope constructs.Construct, id *string, props *GatewayRouteProps)
func NewHeaderMatch_Override ¶
func NewHeaderMatch_Override(h HeaderMatch)
func NewHealthCheck_Override ¶
func NewHealthCheck_Override(h HealthCheck)
func NewHttpGatewayRoutePathMatch_Override ¶
func NewHttpGatewayRoutePathMatch_Override(h HttpGatewayRoutePathMatch)
func NewHttpRoutePathMatch_Override ¶
func NewHttpRoutePathMatch_Override(h HttpRoutePathMatch)
func NewLoggingFormat_Override ¶ added in v2.80.0
func NewLoggingFormat_Override(l LoggingFormat)
func NewMesh_Override ¶
func NewMutualTlsCertificate_Override ¶
func NewMutualTlsCertificate_Override(m MutualTlsCertificate)
func NewMutualTlsValidationTrust_Override ¶
func NewMutualTlsValidationTrust_Override(m MutualTlsValidationTrust)
func NewQueryParameterMatch_Override ¶
func NewQueryParameterMatch_Override(q QueryParameterMatch)
func NewRouteSpec_Override ¶
func NewRouteSpec_Override(r RouteSpec)
func NewRoute_Override ¶
func NewRoute_Override(r Route, scope constructs.Construct, id *string, props *RouteProps)
func NewServiceDiscovery_Override ¶
func NewServiceDiscovery_Override(s ServiceDiscovery)
func NewSubjectAlternativeNames_Override ¶
func NewSubjectAlternativeNames_Override(s SubjectAlternativeNames)
func NewTlsCertificate_Override ¶
func NewTlsCertificate_Override(t TlsCertificate)
func NewTlsValidationTrust_Override ¶
func NewTlsValidationTrust_Override(t TlsValidationTrust)
func NewVirtualGatewayListener_Override ¶
func NewVirtualGatewayListener_Override(v VirtualGatewayListener)
func NewVirtualGateway_Override ¶
func NewVirtualGateway_Override(v VirtualGateway, scope constructs.Construct, id *string, props *VirtualGatewayProps)
func NewVirtualNodeListener_Override ¶
func NewVirtualNodeListener_Override(v VirtualNodeListener)
func NewVirtualNode_Override ¶
func NewVirtualNode_Override(v VirtualNode, scope constructs.Construct, id *string, props *VirtualNodeProps)
func NewVirtualRouterListener_Override ¶
func NewVirtualRouterListener_Override(v VirtualRouterListener)
func NewVirtualRouter_Override ¶
func NewVirtualRouter_Override(v VirtualRouter, scope constructs.Construct, id *string, props *VirtualRouterProps)
func NewVirtualServiceProvider_Override ¶
func NewVirtualServiceProvider_Override(v VirtualServiceProvider)
func NewVirtualService_Override ¶
func NewVirtualService_Override(v VirtualService, scope constructs.Construct, id *string, props *VirtualServiceProps)
func Route_IsConstruct ¶
func Route_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Route_IsOwnedResource ¶ added in v2.32.0
func Route_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func Route_IsResource ¶
func Route_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func VirtualGateway_IsConstruct ¶
func VirtualGateway_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func VirtualGateway_IsOwnedResource ¶ added in v2.32.0
func VirtualGateway_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func VirtualGateway_IsResource ¶
func VirtualGateway_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func VirtualNode_IsConstruct ¶
func VirtualNode_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func VirtualNode_IsOwnedResource ¶ added in v2.32.0
func VirtualNode_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func VirtualNode_IsResource ¶
func VirtualNode_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func VirtualRouter_IsConstruct ¶
func VirtualRouter_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func VirtualRouter_IsOwnedResource ¶ added in v2.32.0
func VirtualRouter_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func VirtualRouter_IsResource ¶
func VirtualRouter_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func VirtualService_IsConstruct ¶
func VirtualService_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func VirtualService_IsOwnedResource ¶ added in v2.32.0
func VirtualService_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise.
func VirtualService_IsResource ¶
func VirtualService_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
Types ¶
type AccessLog ¶
type AccessLog interface { // Called when the AccessLog type is initialized. // // Can be used to enforce // mutual exclusivity with future properties. Bind(scope constructs.Construct) *AccessLogConfig }
Configuration for Envoy Access logs for mesh endpoints.
Example:
var mesh mesh vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8081), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), // minimum Path: jsii.String("/health-check-path"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), // minimum UnhealthyThreshold: jsii.Number(2), }), }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), })
func AccessLog_FromFilePath ¶
func AccessLog_FromFilePath(filePath *string, loggingFormat LoggingFormat) AccessLog
Path to a file to write access logs to. Default: - no file based access logging.
type AccessLogConfig ¶
type AccessLogConfig struct { // VirtualGateway CFN configuration for Access Logging. // Default: - no access logging. // VirtualGatewayAccessLog *CfnVirtualGateway_VirtualGatewayAccessLogProperty `field:"optional" json:"virtualGatewayAccessLog" yaml:"virtualGatewayAccessLog"` // VirtualNode CFN configuration for Access Logging. // Default: - no access logging. // VirtualNodeAccessLog *CfnVirtualNode_AccessLogProperty `field:"optional" json:"virtualNodeAccessLog" yaml:"virtualNodeAccessLog"` }
All Properties for Envoy Access logs for mesh endpoints.
Example:
// 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" accessLogConfig := &AccessLogConfig{ VirtualGatewayAccessLog: &VirtualGatewayAccessLogProperty{ File: &VirtualGatewayFileAccessLogProperty{ 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"), }, }, }, VirtualNodeAccessLog: &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"), }, }, }, }
type Backend ¶
type Backend interface { // Return backend config. Bind(_scope constructs.Construct) *BackendConfig }
Contains static factory methods to create backends.
Example:
var mesh mesh var router virtualRouter var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) virtualService := appmesh.NewVirtualService(this, jsii.String("service-1"), &VirtualServiceProps{ VirtualServiceProvider: appmesh.VirtualServiceProvider_VirtualRouter(router), VirtualServiceName: jsii.String("service1.domain.local"), }) node.AddBackend(appmesh.Backend_VirtualService(virtualService))
func Backend_VirtualService ¶
func Backend_VirtualService(virtualService IVirtualService, props *VirtualServiceBackendOptions) Backend
Construct a Virtual Service backend.
type BackendConfig ¶
type BackendConfig struct { // Config for a Virtual Service backend. VirtualServiceBackend *CfnVirtualNode_BackendProperty `field:"required" json:"virtualServiceBackend" yaml:"virtualServiceBackend"` }
Properties for a backend.
Example:
// 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" backendConfig := &BackendConfig{ VirtualServiceBackend: &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), }, }, }, }, }, }
type BackendDefaults ¶
type BackendDefaults struct { // TLS properties for Client policy for backend defaults. // Default: - none. // TlsClientPolicy *TlsClientPolicy `field:"optional" json:"tlsClientPolicy" yaml:"tlsClientPolicy"` }
Represents the properties needed to define backend defaults.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
type CfnGatewayRoute ¶
type CfnGatewayRoute interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the gateway route. AttrArn() *string // The name of the gateway route. AttrGatewayRouteName() *string AttrId() *string // The name of the service mesh that the gateway route resides in. AttrMeshName() *string // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The unique identifier for the gateway route. AttrUid() *string // The name of the virtual gateway that the gateway route is associated with. AttrVirtualGatewayName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The name of the gateway route. GatewayRouteName() *string SetGatewayRouteName(val *string) // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the service mesh that the resource resides in. MeshName() *string SetMeshName(val *string) // The AWS IAM account ID of the service mesh owner. MeshOwner() *string SetMeshOwner(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The specifications of the gateway route. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the gateway route to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The virtual gateway that the gateway route is associated with. VirtualGatewayName() *string SetVirtualGatewayName(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Creates a gateway route.
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see [Gateway routes](https://docs.aws.amazon.com/app-mesh/latest/userguide/gateway-routes.html) .
Example:
// 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" cfnGatewayRoute := awscdk.Aws_appmesh.NewCfnGatewayRoute(this, jsii.String("MyCfnGatewayRoute"), &CfnGatewayRouteProps{ MeshName: jsii.String("meshName"), Spec: &GatewayRouteSpecProperty{ GrpcRoute: &GrpcGatewayRouteProperty{ Action: &GrpcGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }, }, Match: &GrpcGatewayRouteMatchProperty{ Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Metadata: []interface{}{ &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, }, Http2Route: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, HttpRoute: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, Priority: jsii.Number(123), }, VirtualGatewayName: jsii.String("virtualGatewayName"), // the properties below are optional GatewayRouteName: jsii.String("gatewayRouteName"), MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
func NewCfnGatewayRoute ¶
func NewCfnGatewayRoute(scope constructs.Construct, id *string, props *CfnGatewayRouteProps) CfnGatewayRoute
type CfnGatewayRouteProps ¶
type CfnGatewayRouteProps struct { // The name of the service mesh that the resource resides in. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-meshname // MeshName *string `field:"required" json:"meshName" yaml:"meshName"` // The specifications of the gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-spec // Spec interface{} `field:"required" json:"spec" yaml:"spec"` // The virtual gateway that the gateway route is associated with. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-virtualgatewayname // VirtualGatewayName *string `field:"required" json:"virtualGatewayName" yaml:"virtualGatewayName"` // The name of the gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-gatewayroutename // GatewayRouteName *string `field:"optional" json:"gatewayRouteName" yaml:"gatewayRouteName"` // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-meshowner // MeshOwner *string `field:"optional" json:"meshOwner" yaml:"meshOwner"` // Optional metadata that you can apply to the gateway route to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnGatewayRoute`.
Example:
// 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" cfnGatewayRouteProps := &CfnGatewayRouteProps{ MeshName: jsii.String("meshName"), Spec: &GatewayRouteSpecProperty{ GrpcRoute: &GrpcGatewayRouteProperty{ Action: &GrpcGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }, }, Match: &GrpcGatewayRouteMatchProperty{ Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Metadata: []interface{}{ &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, }, Http2Route: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, HttpRoute: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, Priority: jsii.Number(123), }, VirtualGatewayName: jsii.String("virtualGatewayName"), // the properties below are optional GatewayRouteName: jsii.String("gatewayRouteName"), MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
type CfnGatewayRoute_GatewayRouteHostnameMatchProperty ¶
type CfnGatewayRoute_GatewayRouteHostnameMatchProperty struct { // The exact host name to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutehostnamematch.html#cfn-appmesh-gatewayroute-gatewayroutehostnamematch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The specified ending characters of the host name to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutehostnamematch.html#cfn-appmesh-gatewayroute-gatewayroutehostnamematch-suffix // Suffix *string `field:"optional" json:"suffix" yaml:"suffix"` }
An object representing the gateway route host name to match.
Example:
// 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" gatewayRouteHostnameMatchProperty := &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }
type CfnGatewayRoute_GatewayRouteHostnameRewriteProperty ¶
type CfnGatewayRoute_GatewayRouteHostnameRewriteProperty struct { // The default target host name to write to. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutehostnamerewrite.html#cfn-appmesh-gatewayroute-gatewayroutehostnamerewrite-defaulttargethostname // DefaultTargetHostname *string `field:"optional" json:"defaultTargetHostname" yaml:"defaultTargetHostname"` }
An object representing the gateway route host name to rewrite.
Example:
// 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" gatewayRouteHostnameRewriteProperty := &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }
type CfnGatewayRoute_GatewayRouteMetadataMatchProperty ¶
type CfnGatewayRoute_GatewayRouteMetadataMatchProperty struct { // The exact method header to be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutemetadatamatch.html#cfn-appmesh-gatewayroute-gatewayroutemetadatamatch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The specified beginning characters of the method header to be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutemetadatamatch.html#cfn-appmesh-gatewayroute-gatewayroutemetadatamatch-prefix // Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` // An object that represents the range of values to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutemetadatamatch.html#cfn-appmesh-gatewayroute-gatewayroutemetadatamatch-range // Range interface{} `field:"optional" json:"range" yaml:"range"` // The regex used to match the method header. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutemetadatamatch.html#cfn-appmesh-gatewayroute-gatewayroutemetadatamatch-regex // Regex *string `field:"optional" json:"regex" yaml:"regex"` // The specified ending characters of the method header to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutemetadatamatch.html#cfn-appmesh-gatewayroute-gatewayroutemetadatamatch-suffix // Suffix *string `field:"optional" json:"suffix" yaml:"suffix"` }
An object representing the method header to be matched.
Example:
// 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" gatewayRouteMetadataMatchProperty := &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }
type CfnGatewayRoute_GatewayRouteRangeMatchProperty ¶
type CfnGatewayRoute_GatewayRouteRangeMatchProperty struct { // The end of the range. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayrouterangematch.html#cfn-appmesh-gatewayroute-gatewayrouterangematch-end // End *float64 `field:"required" json:"end" yaml:"end"` // The start of the range. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayrouterangematch.html#cfn-appmesh-gatewayroute-gatewayrouterangematch-start // Start *float64 `field:"required" json:"start" yaml:"start"` }
An object that represents the range of values to match on.
The first character of the range is included in the range, though the last character is not. For example, if the range specified were 1-100, only values 1-99 would be matched.
Example:
// 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" gatewayRouteRangeMatchProperty := &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }
type CfnGatewayRoute_GatewayRouteSpecProperty ¶
type CfnGatewayRoute_GatewayRouteSpecProperty struct { // An object that represents the specification of a gRPC gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutespec.html#cfn-appmesh-gatewayroute-gatewayroutespec-grpcroute // GrpcRoute interface{} `field:"optional" json:"grpcRoute" yaml:"grpcRoute"` // An object that represents the specification of an HTTP/2 gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutespec.html#cfn-appmesh-gatewayroute-gatewayroutespec-http2route // Http2Route interface{} `field:"optional" json:"http2Route" yaml:"http2Route"` // An object that represents the specification of an HTTP gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutespec.html#cfn-appmesh-gatewayroute-gatewayroutespec-httproute // HttpRoute interface{} `field:"optional" json:"httpRoute" yaml:"httpRoute"` // The ordering of the gateway routes spec. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutespec.html#cfn-appmesh-gatewayroute-gatewayroutespec-priority // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` }
An object that represents a gateway route specification.
Specify one gateway route type.
Example:
// 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" gatewayRouteSpecProperty := &GatewayRouteSpecProperty{ GrpcRoute: &GrpcGatewayRouteProperty{ Action: &GrpcGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }, }, Match: &GrpcGatewayRouteMatchProperty{ Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Metadata: []interface{}{ &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, }, Http2Route: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, HttpRoute: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, Priority: jsii.Number(123), }
type CfnGatewayRoute_GatewayRouteTargetProperty ¶
type CfnGatewayRoute_GatewayRouteTargetProperty struct { // An object that represents a virtual service gateway route target. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutetarget.html#cfn-appmesh-gatewayroute-gatewayroutetarget-virtualservice // VirtualService interface{} `field:"required" json:"virtualService" yaml:"virtualService"` // The port number of the gateway route target. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutetarget.html#cfn-appmesh-gatewayroute-gatewayroutetarget-port // Port *float64 `field:"optional" json:"port" yaml:"port"` }
An object that represents a gateway route target.
Example:
// 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" gatewayRouteTargetProperty := &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }
type CfnGatewayRoute_GatewayRouteVirtualServiceProperty ¶
type CfnGatewayRoute_GatewayRouteVirtualServiceProperty struct { // The name of the virtual service that traffic is routed to. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutevirtualservice.html#cfn-appmesh-gatewayroute-gatewayroutevirtualservice-virtualservicename // VirtualServiceName *string `field:"required" json:"virtualServiceName" yaml:"virtualServiceName"` }
An object that represents the virtual service that traffic is routed to.
Example:
// 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" gatewayRouteVirtualServiceProperty := &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }
type CfnGatewayRoute_GrpcGatewayRouteActionProperty ¶
type CfnGatewayRoute_GrpcGatewayRouteActionProperty struct { // An object that represents the target that traffic is routed to when a request matches the gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayrouteaction.html#cfn-appmesh-gatewayroute-grpcgatewayrouteaction-target // Target interface{} `field:"required" json:"target" yaml:"target"` // The gateway route action to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayrouteaction.html#cfn-appmesh-gatewayroute-grpcgatewayrouteaction-rewrite // Rewrite interface{} `field:"optional" json:"rewrite" yaml:"rewrite"` }
An object that represents the action to take if a match is determined.
Example:
// 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" grpcGatewayRouteActionProperty := &GrpcGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }, }
type CfnGatewayRoute_GrpcGatewayRouteMatchProperty ¶
type CfnGatewayRoute_GrpcGatewayRouteMatchProperty struct { // The gateway route host name to be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutematch.html#cfn-appmesh-gatewayroute-grpcgatewayroutematch-hostname // Hostname interface{} `field:"optional" json:"hostname" yaml:"hostname"` // The gateway route metadata to be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutematch.html#cfn-appmesh-gatewayroute-grpcgatewayroutematch-metadata // Metadata interface{} `field:"optional" json:"metadata" yaml:"metadata"` // The gateway route port to be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutematch.html#cfn-appmesh-gatewayroute-grpcgatewayroutematch-port // Port *float64 `field:"optional" json:"port" yaml:"port"` // The fully qualified domain name for the service to match from the request. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutematch.html#cfn-appmesh-gatewayroute-grpcgatewayroutematch-servicename // ServiceName *string `field:"optional" json:"serviceName" yaml:"serviceName"` }
An object that represents the criteria for determining a request match.
Example:
// 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" grpcGatewayRouteMatchProperty := &GrpcGatewayRouteMatchProperty{ Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Metadata: []interface{}{ &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }
type CfnGatewayRoute_GrpcGatewayRouteMetadataProperty ¶
type CfnGatewayRoute_GrpcGatewayRouteMetadataProperty struct { // A name for the gateway route metadata. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutemetadata.html#cfn-appmesh-gatewayroute-grpcgatewayroutemetadata-name // Name *string `field:"required" json:"name" yaml:"name"` // Specify `True` to match anything except the match criteria. // // The default value is `False` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutemetadata.html#cfn-appmesh-gatewayroute-grpcgatewayroutemetadata-invert // Invert interface{} `field:"optional" json:"invert" yaml:"invert"` // The criteria for determining a metadata match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroutemetadata.html#cfn-appmesh-gatewayroute-grpcgatewayroutemetadata-match // Match interface{} `field:"optional" json:"match" yaml:"match"` }
An object representing the metadata of the gateway route.
Example:
// 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" grpcGatewayRouteMetadataProperty := &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }
type CfnGatewayRoute_GrpcGatewayRouteProperty ¶
type CfnGatewayRoute_GrpcGatewayRouteProperty struct { // An object that represents the action to take if a match is determined. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroute.html#cfn-appmesh-gatewayroute-grpcgatewayroute-action // Action interface{} `field:"required" json:"action" yaml:"action"` // An object that represents the criteria for determining a request match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayroute.html#cfn-appmesh-gatewayroute-grpcgatewayroute-match // Match interface{} `field:"required" json:"match" yaml:"match"` }
An object that represents a gRPC gateway route.
Example:
// 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" grpcGatewayRouteProperty := &GrpcGatewayRouteProperty{ Action: &GrpcGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }, }, Match: &GrpcGatewayRouteMatchProperty{ Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Metadata: []interface{}{ &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, }
type CfnGatewayRoute_GrpcGatewayRouteRewriteProperty ¶
type CfnGatewayRoute_GrpcGatewayRouteRewriteProperty struct { // The host name of the gateway route to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-grpcgatewayrouterewrite.html#cfn-appmesh-gatewayroute-grpcgatewayrouterewrite-hostname // Hostname interface{} `field:"optional" json:"hostname" yaml:"hostname"` }
An object that represents the gateway route to rewrite.
Example:
// 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" grpcGatewayRouteRewriteProperty := &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }
type CfnGatewayRoute_HttpGatewayRouteActionProperty ¶
type CfnGatewayRoute_HttpGatewayRouteActionProperty struct { // An object that represents the target that traffic is routed to when a request matches the gateway route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteaction.html#cfn-appmesh-gatewayroute-httpgatewayrouteaction-target // Target interface{} `field:"required" json:"target" yaml:"target"` // The gateway route action to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteaction.html#cfn-appmesh-gatewayroute-httpgatewayrouteaction-rewrite // Rewrite interface{} `field:"optional" json:"rewrite" yaml:"rewrite"` }
An object that represents the action to take if a match is determined.
Example:
// 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" httpGatewayRouteActionProperty := &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }
type CfnGatewayRoute_HttpGatewayRouteHeaderMatchProperty ¶
type CfnGatewayRoute_HttpGatewayRouteHeaderMatchProperty struct { // The value sent by the client must match the specified value exactly. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheadermatch.html#cfn-appmesh-gatewayroute-httpgatewayrouteheadermatch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The value sent by the client must begin with the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheadermatch.html#cfn-appmesh-gatewayroute-httpgatewayrouteheadermatch-prefix // Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` // An object that represents the range of values to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheadermatch.html#cfn-appmesh-gatewayroute-httpgatewayrouteheadermatch-range // Range interface{} `field:"optional" json:"range" yaml:"range"` // The value sent by the client must include the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheadermatch.html#cfn-appmesh-gatewayroute-httpgatewayrouteheadermatch-regex // Regex *string `field:"optional" json:"regex" yaml:"regex"` // The value sent by the client must end with the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheadermatch.html#cfn-appmesh-gatewayroute-httpgatewayrouteheadermatch-suffix // Suffix *string `field:"optional" json:"suffix" yaml:"suffix"` }
An object that represents the method and value to match with the header value sent in a request.
Specify one match method.
Example:
// 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" httpGatewayRouteHeaderMatchProperty := &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }
type CfnGatewayRoute_HttpGatewayRouteHeaderProperty ¶
type CfnGatewayRoute_HttpGatewayRouteHeaderProperty struct { // A name for the HTTP header in the gateway route that will be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheader.html#cfn-appmesh-gatewayroute-httpgatewayrouteheader-name // Name *string `field:"required" json:"name" yaml:"name"` // Specify `True` to match anything except the match criteria. // // The default value is `False` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheader.html#cfn-appmesh-gatewayroute-httpgatewayrouteheader-invert // Invert interface{} `field:"optional" json:"invert" yaml:"invert"` // An object that represents the method and value to match with the header value sent in a request. // // Specify one match method. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteheader.html#cfn-appmesh-gatewayroute-httpgatewayrouteheader-match // Match interface{} `field:"optional" json:"match" yaml:"match"` }
An object that represents the HTTP header in the gateway route.
Example:
// 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" httpGatewayRouteHeaderProperty := &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }
type CfnGatewayRoute_HttpGatewayRouteMatchProperty ¶
type CfnGatewayRoute_HttpGatewayRouteMatchProperty struct { // The client request headers to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-headers // Headers interface{} `field:"optional" json:"headers" yaml:"headers"` // The host name to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-hostname // Hostname interface{} `field:"optional" json:"hostname" yaml:"hostname"` // The method to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-method // Method *string `field:"optional" json:"method" yaml:"method"` // The path to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-path // Path interface{} `field:"optional" json:"path" yaml:"path"` // The port number to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-port // Port *float64 `field:"optional" json:"port" yaml:"port"` // Specifies the path to match requests with. // // This parameter must always start with `/` , which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is `my-service.local` and you want the route to match requests to `my-service.local/metrics` , your prefix should be `/metrics` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-prefix // Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` // The query parameter to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutematch.html#cfn-appmesh-gatewayroute-httpgatewayroutematch-queryparameters // QueryParameters interface{} `field:"optional" json:"queryParameters" yaml:"queryParameters"` }
An object that represents the criteria for determining a request match.
Example:
// 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" httpGatewayRouteMatchProperty := &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }
type CfnGatewayRoute_HttpGatewayRoutePathRewriteProperty ¶
type CfnGatewayRoute_HttpGatewayRoutePathRewriteProperty struct { // The exact path to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutepathrewrite.html#cfn-appmesh-gatewayroute-httpgatewayroutepathrewrite-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` }
An object that represents the path to rewrite.
Example:
// 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" httpGatewayRoutePathRewriteProperty := &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }
type CfnGatewayRoute_HttpGatewayRoutePrefixRewriteProperty ¶
type CfnGatewayRoute_HttpGatewayRoutePrefixRewriteProperty struct { // The default prefix used to replace the incoming route prefix when rewritten. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteprefixrewrite.html#cfn-appmesh-gatewayroute-httpgatewayrouteprefixrewrite-defaultprefix // DefaultPrefix *string `field:"optional" json:"defaultPrefix" yaml:"defaultPrefix"` // The value used to replace the incoming route prefix when rewritten. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouteprefixrewrite.html#cfn-appmesh-gatewayroute-httpgatewayrouteprefixrewrite-value // Value *string `field:"optional" json:"value" yaml:"value"` }
An object representing the beginning characters of the route to rewrite.
Example:
// 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" httpGatewayRoutePrefixRewriteProperty := &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }
type CfnGatewayRoute_HttpGatewayRouteProperty ¶
type CfnGatewayRoute_HttpGatewayRouteProperty struct { // An object that represents the action to take if a match is determined. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroute.html#cfn-appmesh-gatewayroute-httpgatewayroute-action // Action interface{} `field:"required" json:"action" yaml:"action"` // An object that represents the criteria for determining a request match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroute.html#cfn-appmesh-gatewayroute-httpgatewayroute-match // Match interface{} `field:"required" json:"match" yaml:"match"` }
An object that represents an HTTP gateway route.
Example:
// 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" httpGatewayRouteProperty := &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }
type CfnGatewayRoute_HttpGatewayRouteRewriteProperty ¶
type CfnGatewayRoute_HttpGatewayRouteRewriteProperty struct { // The host name to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouterewrite.html#cfn-appmesh-gatewayroute-httpgatewayrouterewrite-hostname // Hostname interface{} `field:"optional" json:"hostname" yaml:"hostname"` // The path to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouterewrite.html#cfn-appmesh-gatewayroute-httpgatewayrouterewrite-path // Path interface{} `field:"optional" json:"path" yaml:"path"` // The specified beginning characters to rewrite. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayrouterewrite.html#cfn-appmesh-gatewayroute-httpgatewayrouterewrite-prefix // Prefix interface{} `field:"optional" json:"prefix" yaml:"prefix"` }
An object representing the gateway route to rewrite.
Example:
// 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" httpGatewayRouteRewriteProperty := &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }
type CfnGatewayRoute_HttpPathMatchProperty ¶
type CfnGatewayRoute_HttpPathMatchProperty struct { // The exact path to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httppathmatch.html#cfn-appmesh-gatewayroute-httppathmatch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The regex used to match the path. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httppathmatch.html#cfn-appmesh-gatewayroute-httppathmatch-regex // Regex *string `field:"optional" json:"regex" yaml:"regex"` }
An object representing the path to match in the request.
Example:
// 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" httpPathMatchProperty := &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }
type CfnGatewayRoute_HttpQueryParameterMatchProperty ¶
type CfnGatewayRoute_HttpQueryParameterMatchProperty struct { // The exact query parameter to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpqueryparametermatch.html#cfn-appmesh-gatewayroute-httpqueryparametermatch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` }
An object representing the query parameter to match.
Example:
// 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" httpQueryParameterMatchProperty := &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }
type CfnGatewayRoute_QueryParameterProperty ¶
type CfnGatewayRoute_QueryParameterProperty struct { // A name for the query parameter that will be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-queryparameter.html#cfn-appmesh-gatewayroute-queryparameter-name // Name *string `field:"required" json:"name" yaml:"name"` // The query parameter to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-queryparameter.html#cfn-appmesh-gatewayroute-queryparameter-match // Match interface{} `field:"optional" json:"match" yaml:"match"` }
An object that represents the query parameter in the request.
Example:
// 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" queryParameterProperty := &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }
type CfnMesh ¶
type CfnMesh interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the mesh. AttrArn() *string AttrId() *string // The name of the service mesh. AttrMeshName() *string // The IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The unique identifier for the mesh. AttrUid() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name to use for the service mesh. MeshName() *string SetMeshName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The service mesh specification to apply. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the service mesh to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Creates a service mesh.
A service mesh is a logical boundary for network traffic between services that are represented by resources within the mesh. After you create your service mesh, you can create virtual services, virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh.
For more information about service meshes, see [Service meshes](https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html) .
Example:
// 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" cfnMesh := awscdk.Aws_appmesh.NewCfnMesh(this, jsii.String("MyCfnMesh"), &CfnMeshProps{ MeshName: jsii.String("meshName"), Spec: &MeshSpecProperty{ EgressFilter: &EgressFilterProperty{ Type: jsii.String("type"), }, ServiceDiscovery: &MeshServiceDiscoveryProperty{ IpPreference: jsii.String("ipPreference"), }, }, Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html
func NewCfnMesh ¶
func NewCfnMesh(scope constructs.Construct, id *string, props *CfnMeshProps) CfnMesh
type CfnMeshProps ¶
type CfnMeshProps struct { // The name to use for the service mesh. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html#cfn-appmesh-mesh-meshname // MeshName *string `field:"optional" json:"meshName" yaml:"meshName"` // The service mesh specification to apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html#cfn-appmesh-mesh-spec // Spec interface{} `field:"optional" json:"spec" yaml:"spec"` // Optional metadata that you can apply to the service mesh to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html#cfn-appmesh-mesh-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnMesh`.
Example:
// 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" cfnMeshProps := &CfnMeshProps{ MeshName: jsii.String("meshName"), Spec: &MeshSpecProperty{ EgressFilter: &EgressFilterProperty{ Type: jsii.String("type"), }, ServiceDiscovery: &MeshServiceDiscoveryProperty{ IpPreference: jsii.String("ipPreference"), }, }, Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-mesh.html
type CfnMesh_EgressFilterProperty ¶
type CfnMesh_EgressFilterProperty struct { // The egress filter type. // // By default, the type is `DROP_ALL` , which allows egress only from virtual nodes to other defined resources in the service mesh (and any traffic to `*.amazonaws.com` for AWS API calls). You can set the egress filter type to `ALLOW_ALL` to allow egress to any endpoint inside or outside of the service mesh. // // > If you specify any backends on a virtual node when using `ALLOW_ALL` , you must specifiy all egress for that virtual node as backends. Otherwise, `ALLOW_ALL` will no longer work for that virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-egressfilter.html#cfn-appmesh-mesh-egressfilter-type // Type *string `field:"required" json:"type" yaml:"type"` }
An object that represents the egress filter rules for a service mesh.
Example:
// 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" egressFilterProperty := &EgressFilterProperty{ Type: jsii.String("type"), }
type CfnMesh_MeshServiceDiscoveryProperty ¶ added in v2.15.0
type CfnMesh_MeshServiceDiscoveryProperty struct { // The IP version to use to control traffic within the mesh. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshservicediscovery.html#cfn-appmesh-mesh-meshservicediscovery-ippreference // IpPreference *string `field:"optional" json:"ipPreference" yaml:"ipPreference"` }
An object that represents the service discovery information for a service mesh.
Example:
// 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" meshServiceDiscoveryProperty := &MeshServiceDiscoveryProperty{ IpPreference: jsii.String("ipPreference"), }
type CfnMesh_MeshSpecProperty ¶
type CfnMesh_MeshSpecProperty struct { // The egress filter rules for the service mesh. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshspec.html#cfn-appmesh-mesh-meshspec-egressfilter // EgressFilter interface{} `field:"optional" json:"egressFilter" yaml:"egressFilter"` // An object that represents the service discovery information for a service mesh. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-meshspec.html#cfn-appmesh-mesh-meshspec-servicediscovery // ServiceDiscovery interface{} `field:"optional" json:"serviceDiscovery" yaml:"serviceDiscovery"` }
An object that represents the specification of a service mesh.
Example:
// 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" meshSpecProperty := &MeshSpecProperty{ EgressFilter: &EgressFilterProperty{ Type: jsii.String("type"), }, ServiceDiscovery: &MeshServiceDiscoveryProperty{ IpPreference: jsii.String("ipPreference"), }, }
type CfnRoute ¶
type CfnRoute interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the route. AttrArn() *string AttrId() *string // The name of the service mesh that the route resides in. AttrMeshName() *string // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The AWS IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The name of the route. AttrRouteName() *string // The unique identifier for the route. AttrUid() *string // The name of the virtual router that the route is associated with. AttrVirtualRouterName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the service mesh to create the route in. MeshName() *string SetMeshName(val *string) // The AWS IAM account ID of the service mesh owner. MeshOwner() *string SetMeshOwner(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The name to use for the route. RouteName() *string SetRouteName(val *string) // The route specification to apply. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the route to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The name of the virtual router in which to create the route. VirtualRouterName() *string SetVirtualRouterName(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Creates a route that is associated with a virtual router.
You can route several different protocols and define a retry policy for a route. Traffic can be routed to one or more virtual nodes.
For more information about routes, see [Routes](https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html) .
Example:
// 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" cfnRoute := awscdk.Aws_appmesh.NewCfnRoute(this, jsii.String("MyCfnRoute"), &CfnRouteProps{ MeshName: jsii.String("meshName"), Spec: &RouteSpecProperty{ GrpcRoute: &GrpcRouteProperty{ Action: &GrpcRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &GrpcRouteMatchProperty{ Metadata: []interface{}{ &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, MethodName: jsii.String("methodName"), Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, // the properties below are optional RetryPolicy: &GrpcRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional GrpcRetryEvents: []*string{ jsii.String("grpcRetryEvents"), }, HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Http2Route: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, HttpRoute: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Priority: jsii.Number(123), TcpRoute: &TcpRouteProperty{ Action: &TcpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, // the properties below are optional Match: &TcpRouteMatchProperty{ Port: jsii.Number(123), }, Timeout: &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, }, VirtualRouterName: jsii.String("virtualRouterName"), // the properties below are optional MeshOwner: jsii.String("meshOwner"), RouteName: jsii.String("routeName"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html
func NewCfnRoute ¶
func NewCfnRoute(scope constructs.Construct, id *string, props *CfnRouteProps) CfnRoute
type CfnRouteProps ¶
type CfnRouteProps struct { // The name of the service mesh to create the route in. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-meshname // MeshName *string `field:"required" json:"meshName" yaml:"meshName"` // The route specification to apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-spec // Spec interface{} `field:"required" json:"spec" yaml:"spec"` // The name of the virtual router in which to create the route. // // If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-virtualroutername // VirtualRouterName *string `field:"required" json:"virtualRouterName" yaml:"virtualRouterName"` // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-meshowner // MeshOwner *string `field:"optional" json:"meshOwner" yaml:"meshOwner"` // The name to use for the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-routename // RouteName *string `field:"optional" json:"routeName" yaml:"routeName"` // Optional metadata that you can apply to the route to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html#cfn-appmesh-route-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnRoute`.
Example:
// 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" cfnRouteProps := &CfnRouteProps{ MeshName: jsii.String("meshName"), Spec: &RouteSpecProperty{ GrpcRoute: &GrpcRouteProperty{ Action: &GrpcRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &GrpcRouteMatchProperty{ Metadata: []interface{}{ &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, MethodName: jsii.String("methodName"), Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, // the properties below are optional RetryPolicy: &GrpcRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional GrpcRetryEvents: []*string{ jsii.String("grpcRetryEvents"), }, HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Http2Route: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, HttpRoute: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Priority: jsii.Number(123), TcpRoute: &TcpRouteProperty{ Action: &TcpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, // the properties below are optional Match: &TcpRouteMatchProperty{ Port: jsii.Number(123), }, Timeout: &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, }, VirtualRouterName: jsii.String("virtualRouterName"), // the properties below are optional MeshOwner: jsii.String("meshOwner"), RouteName: jsii.String("routeName"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-route.html
type CfnRoute_DurationProperty ¶
type CfnRoute_DurationProperty struct { // A unit of time. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html#cfn-appmesh-route-duration-unit // Unit *string `field:"required" json:"unit" yaml:"unit"` // A number of time units. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-duration.html#cfn-appmesh-route-duration-value // Value *float64 `field:"required" json:"value" yaml:"value"` }
An object that represents a duration of time.
Example:
// 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" durationProperty := &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }
type CfnRoute_GrpcRetryPolicyProperty ¶
type CfnRoute_GrpcRetryPolicyProperty struct { // The maximum number of retry attempts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-maxretries // MaxRetries *float64 `field:"required" json:"maxRetries" yaml:"maxRetries"` // The timeout for each retry attempt. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-perretrytimeout // PerRetryTimeout interface{} `field:"required" json:"perRetryTimeout" yaml:"perRetryTimeout"` // Specify at least one of the valid values. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-grpcretryevents // GrpcRetryEvents *[]*string `field:"optional" json:"grpcRetryEvents" yaml:"grpcRetryEvents"` // Specify at least one of the following values. // // - *server-error* – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511 // - *gateway-error* – HTTP status codes 502, 503, and 504 // - *client-error* – HTTP status code 409 // - *stream-error* – Retry on refused stream. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-httpretryevents // HttpRetryEvents *[]*string `field:"optional" json:"httpRetryEvents" yaml:"httpRetryEvents"` // Specify a valid value. // // The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcretrypolicy.html#cfn-appmesh-route-grpcretrypolicy-tcpretryevents // TcpRetryEvents *[]*string `field:"optional" json:"tcpRetryEvents" yaml:"tcpRetryEvents"` }
An object that represents a retry policy.
Specify at least one value for at least one of the types of `RetryEvents` , a value for `maxRetries` , and a value for `perRetryTimeout` . Both `server-error` and `gateway-error` under `httpRetryEvents` include the Envoy `reset` policy. For more information on the `reset` policy, see the [Envoy documentation](https://docs.aws.amazon.com/https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on) .
Example:
// 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" grpcRetryPolicyProperty := &GrpcRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional GrpcRetryEvents: []*string{ jsii.String("grpcRetryEvents"), }, HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }
type CfnRoute_GrpcRouteActionProperty ¶
type CfnRoute_GrpcRouteActionProperty struct { // An object that represents the targets that traffic is routed to when a request matches the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcrouteaction.html#cfn-appmesh-route-grpcrouteaction-weightedtargets // WeightedTargets interface{} `field:"required" json:"weightedTargets" yaml:"weightedTargets"` }
An object that represents the action to take if a match is determined.
Example:
// 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" grpcRouteActionProperty := &GrpcRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }
type CfnRoute_GrpcRouteMatchProperty ¶
type CfnRoute_GrpcRouteMatchProperty struct { // An object that represents the data to match from the request. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-metadata // Metadata interface{} `field:"optional" json:"metadata" yaml:"metadata"` // The method name to match from the request. // // If you specify a name, you must also specify a `serviceName` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-methodname // MethodName *string `field:"optional" json:"methodName" yaml:"methodName"` // The port number to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-port // Port *float64 `field:"optional" json:"port" yaml:"port"` // The fully qualified domain name for the service to match from the request. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutematch.html#cfn-appmesh-route-grpcroutematch-servicename // ServiceName *string `field:"optional" json:"serviceName" yaml:"serviceName"` }
An object that represents the criteria for determining a request match.
Example:
// 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" grpcRouteMatchProperty := &GrpcRouteMatchProperty{ Metadata: []interface{}{ &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, MethodName: jsii.String("methodName"), Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }
type CfnRoute_GrpcRouteMetadataMatchMethodProperty ¶
type CfnRoute_GrpcRouteMetadataMatchMethodProperty struct { // The value sent by the client must match the specified value exactly. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The value sent by the client must begin with the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-prefix // Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` // An object that represents the range of values to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-range // Range interface{} `field:"optional" json:"range" yaml:"range"` // The value sent by the client must include the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-regex // Regex *string `field:"optional" json:"regex" yaml:"regex"` // The value sent by the client must end with the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadatamatchmethod.html#cfn-appmesh-route-grpcroutemetadatamatchmethod-suffix // Suffix *string `field:"optional" json:"suffix" yaml:"suffix"` }
An object that represents the match method.
Specify one of the match values.
Example:
// 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" grpcRouteMetadataMatchMethodProperty := &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }
type CfnRoute_GrpcRouteMetadataProperty ¶
type CfnRoute_GrpcRouteMetadataProperty struct { // The name of the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html#cfn-appmesh-route-grpcroutemetadata-name // Name *string `field:"required" json:"name" yaml:"name"` // Specify `True` to match anything except the match criteria. // // The default value is `False` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html#cfn-appmesh-route-grpcroutemetadata-invert // Invert interface{} `field:"optional" json:"invert" yaml:"invert"` // An object that represents the data to match from the request. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroutemetadata.html#cfn-appmesh-route-grpcroutemetadata-match // Match interface{} `field:"optional" json:"match" yaml:"match"` }
An object that represents the match metadata for the route.
Example:
// 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" grpcRouteMetadataProperty := &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }
type CfnRoute_GrpcRouteProperty ¶
type CfnRoute_GrpcRouteProperty struct { // An object that represents the action to take if a match is determined. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-action // Action interface{} `field:"required" json:"action" yaml:"action"` // An object that represents the criteria for determining a request match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-match // Match interface{} `field:"required" json:"match" yaml:"match"` // An object that represents a retry policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-retrypolicy // RetryPolicy interface{} `field:"optional" json:"retryPolicy" yaml:"retryPolicy"` // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpcroute.html#cfn-appmesh-route-grpcroute-timeout // Timeout interface{} `field:"optional" json:"timeout" yaml:"timeout"` }
An object that represents a gRPC route type.
Example:
// 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" grpcRouteProperty := &GrpcRouteProperty{ Action: &GrpcRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &GrpcRouteMatchProperty{ Metadata: []interface{}{ &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, MethodName: jsii.String("methodName"), Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, // the properties below are optional RetryPolicy: &GrpcRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional GrpcRetryEvents: []*string{ jsii.String("grpcRetryEvents"), }, HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }
type CfnRoute_GrpcTimeoutProperty ¶
type CfnRoute_GrpcTimeoutProperty struct { // An object that represents an idle timeout. // // An idle timeout bounds the amount of time that a connection may be idle. The default value is none. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpctimeout.html#cfn-appmesh-route-grpctimeout-idle // Idle interface{} `field:"optional" json:"idle" yaml:"idle"` // An object that represents a per request timeout. // // The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-grpctimeout.html#cfn-appmesh-route-grpctimeout-perrequest // PerRequest interface{} `field:"optional" json:"perRequest" yaml:"perRequest"` }
An object that represents types of timeouts.
Example:
// 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" grpcTimeoutProperty := &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }
type CfnRoute_HeaderMatchMethodProperty ¶
type CfnRoute_HeaderMatchMethodProperty struct { // The value sent by the client must match the specified value exactly. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-headermatchmethod.html#cfn-appmesh-route-headermatchmethod-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The value sent by the client must begin with the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-headermatchmethod.html#cfn-appmesh-route-headermatchmethod-prefix // Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` // An object that represents the range of values to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-headermatchmethod.html#cfn-appmesh-route-headermatchmethod-range // Range interface{} `field:"optional" json:"range" yaml:"range"` // The value sent by the client must include the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-headermatchmethod.html#cfn-appmesh-route-headermatchmethod-regex // Regex *string `field:"optional" json:"regex" yaml:"regex"` // The value sent by the client must end with the specified characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-headermatchmethod.html#cfn-appmesh-route-headermatchmethod-suffix // Suffix *string `field:"optional" json:"suffix" yaml:"suffix"` }
An object that represents the method and value to match with the header value sent in a request.
Specify one match method.
Example:
// 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" headerMatchMethodProperty := &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }
type CfnRoute_HttpPathMatchProperty ¶
type CfnRoute_HttpPathMatchProperty struct { // The exact path to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httppathmatch.html#cfn-appmesh-route-httppathmatch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` // The regex used to match the path. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httppathmatch.html#cfn-appmesh-route-httppathmatch-regex // Regex *string `field:"optional" json:"regex" yaml:"regex"` }
An object representing the path to match in the request.
Example:
// 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" httpPathMatchProperty := &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }
type CfnRoute_HttpQueryParameterMatchProperty ¶
type CfnRoute_HttpQueryParameterMatchProperty struct { // The exact query parameter to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpqueryparametermatch.html#cfn-appmesh-route-httpqueryparametermatch-exact // Exact *string `field:"optional" json:"exact" yaml:"exact"` }
An object representing the query parameter to match.
Example:
// 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" httpQueryParameterMatchProperty := &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }
type CfnRoute_HttpRetryPolicyProperty ¶
type CfnRoute_HttpRetryPolicyProperty struct { // The maximum number of retry attempts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-maxretries // MaxRetries *float64 `field:"required" json:"maxRetries" yaml:"maxRetries"` // The timeout for each retry attempt. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-perretrytimeout // PerRetryTimeout interface{} `field:"required" json:"perRetryTimeout" yaml:"perRetryTimeout"` // Specify at least one of the following values. // // - *server-error* – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511 // - *gateway-error* – HTTP status codes 502, 503, and 504 // - *client-error* – HTTP status code 409 // - *stream-error* – Retry on refused stream. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-httpretryevents // HttpRetryEvents *[]*string `field:"optional" json:"httpRetryEvents" yaml:"httpRetryEvents"` // Specify a valid value. // // The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httpretrypolicy.html#cfn-appmesh-route-httpretrypolicy-tcpretryevents // TcpRetryEvents *[]*string `field:"optional" json:"tcpRetryEvents" yaml:"tcpRetryEvents"` }
An object that represents a retry policy.
Specify at least one value for at least one of the types of `RetryEvents` , a value for `maxRetries` , and a value for `perRetryTimeout` . Both `server-error` and `gateway-error` under `httpRetryEvents` include the Envoy `reset` policy. For more information on the `reset` policy, see the [Envoy documentation](https://docs.aws.amazon.com/https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on) .
Example:
// 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" httpRetryPolicyProperty := &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }
type CfnRoute_HttpRouteActionProperty ¶
type CfnRoute_HttpRouteActionProperty struct { // An object that represents the targets that traffic is routed to when a request matches the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httprouteaction.html#cfn-appmesh-route-httprouteaction-weightedtargets // WeightedTargets interface{} `field:"required" json:"weightedTargets" yaml:"weightedTargets"` }
An object that represents the action to take if a match is determined.
Example:
// 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" httpRouteActionProperty := &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }
type CfnRoute_HttpRouteHeaderProperty ¶
type CfnRoute_HttpRouteHeaderProperty struct { // A name for the HTTP header in the client request that will be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httprouteheader.html#cfn-appmesh-route-httprouteheader-name // Name *string `field:"required" json:"name" yaml:"name"` // Specify `True` to match anything except the match criteria. // // The default value is `False` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httprouteheader.html#cfn-appmesh-route-httprouteheader-invert // Invert interface{} `field:"optional" json:"invert" yaml:"invert"` // The `HeaderMatchMethod` object. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httprouteheader.html#cfn-appmesh-route-httprouteheader-match // Match interface{} `field:"optional" json:"match" yaml:"match"` }
An object that represents the HTTP header in the request.
Example:
// 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" httpRouteHeaderProperty := &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }
type CfnRoute_HttpRouteMatchProperty ¶
type CfnRoute_HttpRouteMatchProperty struct { // The client request headers to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-headers // Headers interface{} `field:"optional" json:"headers" yaml:"headers"` // The client request method to match on. // // Specify only one. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-method // Method *string `field:"optional" json:"method" yaml:"method"` // The client request path to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-path // Path interface{} `field:"optional" json:"path" yaml:"path"` // The port number to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-port // Port *float64 `field:"optional" json:"port" yaml:"port"` // Specifies the path to match requests with. // // This parameter must always start with `/` , which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is `my-service.local` and you want the route to match requests to `my-service.local/metrics` , your prefix should be `/metrics` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-prefix // Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` // The client request query parameters to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-queryparameters // QueryParameters interface{} `field:"optional" json:"queryParameters" yaml:"queryParameters"` // The client request scheme to match on. // // Specify only one. Applicable only for HTTP2 routes. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproutematch.html#cfn-appmesh-route-httproutematch-scheme // Scheme *string `field:"optional" json:"scheme" yaml:"scheme"` }
An object that represents the requirements for a route to match HTTP requests for a virtual router.
Example:
// 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" httpRouteMatchProperty := &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }
type CfnRoute_HttpRouteProperty ¶
type CfnRoute_HttpRouteProperty struct { // An object that represents the action to take if a match is determined. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-action // Action interface{} `field:"required" json:"action" yaml:"action"` // An object that represents the criteria for determining a request match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-match // Match interface{} `field:"required" json:"match" yaml:"match"` // An object that represents a retry policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-retrypolicy // RetryPolicy interface{} `field:"optional" json:"retryPolicy" yaml:"retryPolicy"` // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-timeout // Timeout interface{} `field:"optional" json:"timeout" yaml:"timeout"` }
An object that represents an HTTP or HTTP/2 route type.
Example:
// 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" httpRouteProperty := &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }
type CfnRoute_HttpTimeoutProperty ¶
type CfnRoute_HttpTimeoutProperty struct { // An object that represents an idle timeout. // // An idle timeout bounds the amount of time that a connection may be idle. The default value is none. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httptimeout.html#cfn-appmesh-route-httptimeout-idle // Idle interface{} `field:"optional" json:"idle" yaml:"idle"` // An object that represents a per request timeout. // // The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httptimeout.html#cfn-appmesh-route-httptimeout-perrequest // PerRequest interface{} `field:"optional" json:"perRequest" yaml:"perRequest"` }
An object that represents types of timeouts.
Example:
// 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" httpTimeoutProperty := &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }
type CfnRoute_MatchRangeProperty ¶
type CfnRoute_MatchRangeProperty struct { // The end of the range. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-matchrange.html#cfn-appmesh-route-matchrange-end // End *float64 `field:"required" json:"end" yaml:"end"` // The start of the range. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-matchrange.html#cfn-appmesh-route-matchrange-start // Start *float64 `field:"required" json:"start" yaml:"start"` }
An object that represents the range of values to match on.
The first character of the range is included in the range, though the last character is not. For example, if the range specified were 1-100, only values 1-99 would be matched.
Example:
// 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" matchRangeProperty := &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }
type CfnRoute_QueryParameterProperty ¶
type CfnRoute_QueryParameterProperty struct { // A name for the query parameter that will be matched on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-queryparameter.html#cfn-appmesh-route-queryparameter-name // Name *string `field:"required" json:"name" yaml:"name"` // The query parameter to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-queryparameter.html#cfn-appmesh-route-queryparameter-match // Match interface{} `field:"optional" json:"match" yaml:"match"` }
An object that represents the query parameter in the request.
Example:
// 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" queryParameterProperty := &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }
type CfnRoute_RouteSpecProperty ¶
type CfnRoute_RouteSpecProperty struct { // An object that represents the specification of a gRPC route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-grpcroute // GrpcRoute interface{} `field:"optional" json:"grpcRoute" yaml:"grpcRoute"` // An object that represents the specification of an HTTP/2 route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-http2route // Http2Route interface{} `field:"optional" json:"http2Route" yaml:"http2Route"` // An object that represents the specification of an HTTP route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-httproute // HttpRoute interface{} `field:"optional" json:"httpRoute" yaml:"httpRoute"` // The priority for the route. // // Routes are matched based on the specified value, where 0 is the highest priority. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-priority // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // An object that represents the specification of a TCP route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-routespec.html#cfn-appmesh-route-routespec-tcproute // TcpRoute interface{} `field:"optional" json:"tcpRoute" yaml:"tcpRoute"` }
An object that represents a route specification.
Specify one route type.
Example:
// 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" routeSpecProperty := &RouteSpecProperty{ GrpcRoute: &GrpcRouteProperty{ Action: &GrpcRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &GrpcRouteMatchProperty{ Metadata: []interface{}{ &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, MethodName: jsii.String("methodName"), Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, // the properties below are optional RetryPolicy: &GrpcRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional GrpcRetryEvents: []*string{ jsii.String("grpcRetryEvents"), }, HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Http2Route: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, HttpRoute: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Priority: jsii.Number(123), TcpRoute: &TcpRouteProperty{ Action: &TcpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, // the properties below are optional Match: &TcpRouteMatchProperty{ Port: jsii.Number(123), }, Timeout: &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, }
type CfnRoute_TcpRouteActionProperty ¶
type CfnRoute_TcpRouteActionProperty struct { // An object that represents the targets that traffic is routed to when a request matches the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcprouteaction.html#cfn-appmesh-route-tcprouteaction-weightedtargets // WeightedTargets interface{} `field:"required" json:"weightedTargets" yaml:"weightedTargets"` }
An object that represents the action to take if a match is determined.
Example:
// 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" tcpRouteActionProperty := &TcpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }
type CfnRoute_TcpRouteMatchProperty ¶ added in v2.42.0
type CfnRoute_TcpRouteMatchProperty struct { // The port number to match on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcproutematch.html#cfn-appmesh-route-tcproutematch-port // Port *float64 `field:"optional" json:"port" yaml:"port"` }
An object representing the TCP route to match.
Example:
// 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" tcpRouteMatchProperty := &TcpRouteMatchProperty{ Port: jsii.Number(123), }
type CfnRoute_TcpRouteProperty ¶
type CfnRoute_TcpRouteProperty struct { // The action to take if a match is determined. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcproute.html#cfn-appmesh-route-tcproute-action // Action interface{} `field:"required" json:"action" yaml:"action"` // An object that represents the criteria for determining a request match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcproute.html#cfn-appmesh-route-tcproute-match // Match interface{} `field:"optional" json:"match" yaml:"match"` // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcproute.html#cfn-appmesh-route-tcproute-timeout // Timeout interface{} `field:"optional" json:"timeout" yaml:"timeout"` }
An object that represents a TCP route type.
Example:
// 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" tcpRouteProperty := &TcpRouteProperty{ Action: &TcpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, // the properties below are optional Match: &TcpRouteMatchProperty{ Port: jsii.Number(123), }, Timeout: &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }
type CfnRoute_TcpTimeoutProperty ¶
type CfnRoute_TcpTimeoutProperty struct { // An object that represents an idle timeout. // // An idle timeout bounds the amount of time that a connection may be idle. The default value is none. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-tcptimeout.html#cfn-appmesh-route-tcptimeout-idle // Idle interface{} `field:"optional" json:"idle" yaml:"idle"` }
An object that represents types of timeouts.
Example:
// 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" tcpTimeoutProperty := &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }
type CfnRoute_WeightedTargetProperty ¶
type CfnRoute_WeightedTargetProperty struct { // The virtual node to associate with the weighted target. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-weightedtarget.html#cfn-appmesh-route-weightedtarget-virtualnode // VirtualNode *string `field:"required" json:"virtualNode" yaml:"virtualNode"` // The relative weight of the weighted target. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-weightedtarget.html#cfn-appmesh-route-weightedtarget-weight // Weight *float64 `field:"required" json:"weight" yaml:"weight"` // The targeted port of the weighted object. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-weightedtarget.html#cfn-appmesh-route-weightedtarget-port // Port *float64 `field:"optional" json:"port" yaml:"port"` }
An object that represents a target and its relative weight.
Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.
Example:
// 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" weightedTargetProperty := &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }
type CfnVirtualGateway ¶
type CfnVirtualGateway interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the virtual gateway. AttrArn() *string AttrId() *string // The name of the service mesh that the virtual gateway resides in. AttrMeshName() *string // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The AWS IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The unique identifier for the virtual gateway. AttrUid() *string // The name of the virtual gateway. AttrVirtualGatewayName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the service mesh that the virtual gateway resides in. MeshName() *string SetMeshName(val *string) // The AWS IAM account ID of the service mesh owner. MeshOwner() *string SetMeshOwner(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The specifications of the virtual gateway. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the virtual gateway to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The name of the virtual gateway. VirtualGatewayName() *string SetVirtualGatewayName(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
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](https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_gateways.html) .
Example:
// 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" cfnVirtualGateway := awscdk.Aws_appmesh.NewCfnVirtualGateway(this, jsii.String("MyCfnVirtualGateway"), &CfnVirtualGatewayProps{ MeshName: jsii.String("meshName"), Spec: &VirtualGatewaySpecProperty{ Listeners: []interface{}{ &VirtualGatewayListenerProperty{ PortMapping: &VirtualGatewayPortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, // the properties below are optional ConnectionPool: &VirtualGatewayConnectionPoolProperty{ Grpc: &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, Http: &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }, Http2: &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, }, HealthCheck: &VirtualGatewayHealthCheckPolicyProperty{ 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), }, Tls: &VirtualGatewayListenerTlsProperty{ Certificate: &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Mode: jsii.String("mode"), // the properties below are optional Validation: &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, }, }, }, // the properties below are optional BackendDefaults: &VirtualGatewayBackendDefaultsProperty{ ClientPolicy: &VirtualGatewayClientPolicyProperty{ Tls: &VirtualGatewayClientPolicyTlsProperty{ Validation: &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, // the properties below are optional Certificate: &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Enforce: jsii.Boolean(false), Ports: []interface{}{ jsii.Number(123), }, }, }, }, Logging: &VirtualGatewayLoggingProperty{ AccessLog: &VirtualGatewayAccessLogProperty{ File: &VirtualGatewayFileAccessLogProperty{ 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"), }, }, }, }, }, // the properties below are optional MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, VirtualGatewayName: jsii.String("virtualGatewayName"), })
func NewCfnVirtualGateway ¶
func NewCfnVirtualGateway(scope constructs.Construct, id *string, props *CfnVirtualGatewayProps) CfnVirtualGateway
type CfnVirtualGatewayProps ¶
type CfnVirtualGatewayProps struct { // The name of the service mesh that the virtual gateway resides in. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualgateway.html#cfn-appmesh-virtualgateway-meshname // MeshName *string `field:"required" json:"meshName" yaml:"meshName"` // The specifications of the virtual gateway. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualgateway.html#cfn-appmesh-virtualgateway-spec // Spec interface{} `field:"required" json:"spec" yaml:"spec"` // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualgateway.html#cfn-appmesh-virtualgateway-meshowner // MeshOwner *string `field:"optional" json:"meshOwner" yaml:"meshOwner"` // Optional metadata that you can apply to the virtual gateway to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualgateway.html#cfn-appmesh-virtualgateway-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // The name of the virtual gateway. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualgateway.html#cfn-appmesh-virtualgateway-virtualgatewayname // VirtualGatewayName *string `field:"optional" json:"virtualGatewayName" yaml:"virtualGatewayName"` }
Properties for defining a `CfnVirtualGateway`.
Example:
// 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" cfnVirtualGatewayProps := &CfnVirtualGatewayProps{ MeshName: jsii.String("meshName"), Spec: &VirtualGatewaySpecProperty{ Listeners: []interface{}{ &VirtualGatewayListenerProperty{ PortMapping: &VirtualGatewayPortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, // the properties below are optional ConnectionPool: &VirtualGatewayConnectionPoolProperty{ Grpc: &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, Http: &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }, Http2: &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, }, HealthCheck: &VirtualGatewayHealthCheckPolicyProperty{ 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), }, Tls: &VirtualGatewayListenerTlsProperty{ Certificate: &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Mode: jsii.String("mode"), // the properties below are optional Validation: &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, }, }, }, // the properties below are optional BackendDefaults: &VirtualGatewayBackendDefaultsProperty{ ClientPolicy: &VirtualGatewayClientPolicyProperty{ Tls: &VirtualGatewayClientPolicyTlsProperty{ Validation: &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, // the properties below are optional Certificate: &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Enforce: jsii.Boolean(false), Ports: []interface{}{ jsii.Number(123), }, }, }, }, Logging: &VirtualGatewayLoggingProperty{ AccessLog: &VirtualGatewayAccessLogProperty{ File: &VirtualGatewayFileAccessLogProperty{ 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"), }, }, }, }, }, // the properties below are optional MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, VirtualGatewayName: jsii.String("virtualGatewayName"), }
type CfnVirtualGateway_JsonFormatRefProperty ¶ added in v2.42.0
type CfnVirtualGateway_JsonFormatRefProperty struct { // The specified key for the JSON. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-jsonformatref.html#cfn-appmesh-virtualgateway-jsonformatref-key // Key *string `field:"required" json:"key" yaml:"key"` // The specified value for the JSON. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-jsonformatref.html#cfn-appmesh-virtualgateway-jsonformatref-value // Value *string `field:"required" json:"value" yaml:"value"` }
An object that represents the key value pairs for the JSON.
Example:
// 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" jsonFormatRefProperty := &JsonFormatRefProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }
type CfnVirtualGateway_LoggingFormatProperty ¶ added in v2.42.0
type CfnVirtualGateway_LoggingFormatProperty struct { // The logging format for JSON. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-loggingformat.html#cfn-appmesh-virtualgateway-loggingformat-json // Json interface{} `field:"optional" json:"json" yaml:"json"` // The logging format for text. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-loggingformat.html#cfn-appmesh-virtualgateway-loggingformat-text // Text *string `field:"optional" json:"text" yaml:"text"` }
An object that represents the format for the logs.
Example:
// 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" loggingFormatProperty := &LoggingFormatProperty{ Json: []interface{}{ &JsonFormatRefProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, Text: jsii.String("text"), }
type CfnVirtualGateway_SubjectAlternativeNameMatchersProperty ¶
type CfnVirtualGateway_SubjectAlternativeNameMatchersProperty struct { // The values sent must match the specified values exactly. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-subjectalternativenamematchers.html#cfn-appmesh-virtualgateway-subjectalternativenamematchers-exact // Exact *[]*string `field:"optional" json:"exact" yaml:"exact"` }
An object that represents the methods by which a subject alternative name on a peer Transport Layer Security (TLS) certificate can be matched.
Example:
// 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" subjectAlternativeNameMatchersProperty := &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }
type CfnVirtualGateway_SubjectAlternativeNamesProperty ¶
type CfnVirtualGateway_SubjectAlternativeNamesProperty struct { // An object that represents the criteria for determining a SANs match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-subjectalternativenames.html#cfn-appmesh-virtualgateway-subjectalternativenames-match // Match interface{} `field:"required" json:"match" yaml:"match"` }
An object that represents the subject alternative names secured by the certificate.
Example:
// 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" subjectAlternativeNamesProperty := &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }
type CfnVirtualGateway_VirtualGatewayAccessLogProperty ¶
type CfnVirtualGateway_VirtualGatewayAccessLogProperty struct { // The file object to send virtual gateway access logs to. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayaccesslog.html#cfn-appmesh-virtualgateway-virtualgatewayaccesslog-file // File interface{} `field:"optional" json:"file" yaml:"file"` }
The access log configuration for a virtual gateway.
Example:
// 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" virtualGatewayAccessLogProperty := &VirtualGatewayAccessLogProperty{ File: &VirtualGatewayFileAccessLogProperty{ 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"), }, }, }
type CfnVirtualGateway_VirtualGatewayBackendDefaultsProperty ¶
type CfnVirtualGateway_VirtualGatewayBackendDefaultsProperty struct { // A reference to an object that represents a client policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaybackenddefaults.html#cfn-appmesh-virtualgateway-virtualgatewaybackenddefaults-clientpolicy // ClientPolicy interface{} `field:"optional" json:"clientPolicy" yaml:"clientPolicy"` }
An object that represents the default properties for a backend.
Example:
// 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" virtualGatewayBackendDefaultsProperty := &VirtualGatewayBackendDefaultsProperty{ ClientPolicy: &VirtualGatewayClientPolicyProperty{ Tls: &VirtualGatewayClientPolicyTlsProperty{ Validation: &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, // the properties below are optional Certificate: &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Enforce: jsii.Boolean(false), Ports: []interface{}{ jsii.Number(123), }, }, }, }
type CfnVirtualGateway_VirtualGatewayClientPolicyProperty ¶
type CfnVirtualGateway_VirtualGatewayClientPolicyProperty struct { // A reference to an object that represents a Transport Layer Security (TLS) client policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclientpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayclientpolicy-tls // Tls interface{} `field:"optional" json:"tls" yaml:"tls"` }
An object that represents a client policy.
Example:
// 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" virtualGatewayClientPolicyProperty := &VirtualGatewayClientPolicyProperty{ Tls: &VirtualGatewayClientPolicyTlsProperty{ Validation: &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, // the properties below are optional Certificate: &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Enforce: jsii.Boolean(false), Ports: []interface{}{ jsii.Number(123), }, }, }
type CfnVirtualGateway_VirtualGatewayClientPolicyTlsProperty ¶
type CfnVirtualGateway_VirtualGatewayClientPolicyTlsProperty struct { // A reference to an object that represents a Transport Layer Security (TLS) validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclientpolicytls.html#cfn-appmesh-virtualgateway-virtualgatewayclientpolicytls-validation // Validation interface{} `field:"required" json:"validation" yaml:"validation"` // A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclientpolicytls.html#cfn-appmesh-virtualgateway-virtualgatewayclientpolicytls-certificate // Certificate interface{} `field:"optional" json:"certificate" yaml:"certificate"` // Whether the policy is enforced. // // The default is `True` , if a value isn't specified. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclientpolicytls.html#cfn-appmesh-virtualgateway-virtualgatewayclientpolicytls-enforce // Enforce interface{} `field:"optional" json:"enforce" yaml:"enforce"` // One or more ports that the policy is enforced for. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclientpolicytls.html#cfn-appmesh-virtualgateway-virtualgatewayclientpolicytls-ports // Ports interface{} `field:"optional" json:"ports" yaml:"ports"` }
An object that represents a Transport Layer Security (TLS) client policy.
Example:
// 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" virtualGatewayClientPolicyTlsProperty := &VirtualGatewayClientPolicyTlsProperty{ Validation: &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, // the properties below are optional Certificate: &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Enforce: jsii.Boolean(false), Ports: []interface{}{ jsii.Number(123), }, }
type CfnVirtualGateway_VirtualGatewayClientTlsCertificateProperty ¶
type CfnVirtualGateway_VirtualGatewayClientTlsCertificateProperty struct { // An object that represents a local file certificate. // // The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclienttlscertificate.html#cfn-appmesh-virtualgateway-virtualgatewayclienttlscertificate-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a virtual gateway's client's Secret Discovery Service certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayclienttlscertificate.html#cfn-appmesh-virtualgateway-virtualgatewayclienttlscertificate-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents the virtual gateway's client's Transport Layer Security (TLS) certificate.
Example:
// 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" virtualGatewayClientTlsCertificateProperty := &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualGateway_VirtualGatewayConnectionPoolProperty ¶
type CfnVirtualGateway_VirtualGatewayConnectionPoolProperty struct { // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewayconnectionpool-grpc // Grpc interface{} `field:"optional" json:"grpc" yaml:"grpc"` // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewayconnectionpool-http // Http interface{} `field:"optional" json:"http" yaml:"http"` // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewayconnectionpool-http2 // Http2 interface{} `field:"optional" json:"http2" yaml:"http2"` }
An object that represents the type of virtual gateway connection pool.
Only one protocol is used at a time and should be the same protocol as the one chosen under port mapping.
If not present the default value for `maxPendingRequests` is `2147483647` .
Example:
// 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" virtualGatewayConnectionPoolProperty := &VirtualGatewayConnectionPoolProperty{ Grpc: &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, Http: &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }, Http2: &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, }
type CfnVirtualGateway_VirtualGatewayFileAccessLogProperty ¶
type CfnVirtualGateway_VirtualGatewayFileAccessLogProperty struct { // The file path to write access logs to. // // You can use `/dev/stdout` to send access logs to standard out and configure your Envoy container to use a log driver, such as `awslogs` , to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayfileaccesslog.html#cfn-appmesh-virtualgateway-virtualgatewayfileaccesslog-path // Path *string `field:"required" json:"path" yaml:"path"` // The specified format for the virtual gateway access logs. // // It can be either `json_format` or `text_format` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayfileaccesslog.html#cfn-appmesh-virtualgateway-virtualgatewayfileaccesslog-format // Format interface{} `field:"optional" json:"format" yaml:"format"` }
An object that represents an access log file.
Example:
// 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" virtualGatewayFileAccessLogProperty := &VirtualGatewayFileAccessLogProperty{ 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"), }, }
type CfnVirtualGateway_VirtualGatewayGrpcConnectionPoolProperty ¶
type CfnVirtualGateway_VirtualGatewayGrpcConnectionPoolProperty struct { // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaygrpcconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewaygrpcconnectionpool-maxrequests // MaxRequests *float64 `field:"required" json:"maxRequests" yaml:"maxRequests"` }
An object that represents a type of connection pool.
Example:
// 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" virtualGatewayGrpcConnectionPoolProperty := &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }
type CfnVirtualGateway_VirtualGatewayHealthCheckPolicyProperty ¶
type CfnVirtualGateway_VirtualGatewayHealthCheckPolicyProperty struct { // The number of consecutive successful health checks that must occur before declaring the listener healthy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-healthythreshold // HealthyThreshold *float64 `field:"required" json:"healthyThreshold" yaml:"healthyThreshold"` // The time period in milliseconds between each health check execution. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-intervalmillis // IntervalMillis *float64 `field:"required" json:"intervalMillis" yaml:"intervalMillis"` // The protocol for the health check request. // // If you specify `grpc` , then your service must conform to the [GRPC Health Checking Protocol](https://docs.aws.amazon.com/https://github.com/grpc/grpc/blob/master/doc/health-checking.md) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-protocol // Protocol *string `field:"required" json:"protocol" yaml:"protocol"` // The amount of time to wait when receiving a response from the health check, in milliseconds. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-timeoutmillis // TimeoutMillis *float64 `field:"required" json:"timeoutMillis" yaml:"timeoutMillis"` // The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-unhealthythreshold // UnhealthyThreshold *float64 `field:"required" json:"unhealthyThreshold" yaml:"unhealthyThreshold"` // The destination path for the health check request. // // This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-path // Path *string `field:"optional" json:"path" yaml:"path"` // The destination port for the health check request. // // This port must match the port defined in the `PortMapping` for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy.html#cfn-appmesh-virtualgateway-virtualgatewayhealthcheckpolicy-port // Port *float64 `field:"optional" json:"port" yaml:"port"` }
An object that represents the health check policy for a virtual gateway's listener.
Example:
// 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" virtualGatewayHealthCheckPolicyProperty := &VirtualGatewayHealthCheckPolicyProperty{ 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), }
type CfnVirtualGateway_VirtualGatewayHttp2ConnectionPoolProperty ¶
type CfnVirtualGateway_VirtualGatewayHttp2ConnectionPoolProperty struct { // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhttp2connectionpool.html#cfn-appmesh-virtualgateway-virtualgatewayhttp2connectionpool-maxrequests // MaxRequests *float64 `field:"required" json:"maxRequests" yaml:"maxRequests"` }
An object that represents a type of connection pool.
Example:
// 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" virtualGatewayHttp2ConnectionPoolProperty := &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }
type CfnVirtualGateway_VirtualGatewayHttpConnectionPoolProperty ¶
type CfnVirtualGateway_VirtualGatewayHttpConnectionPoolProperty struct { // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhttpconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewayhttpconnectionpool-maxconnections // MaxConnections *float64 `field:"required" json:"maxConnections" yaml:"maxConnections"` // Number of overflowing requests after `max_connections` Envoy will queue to upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayhttpconnectionpool.html#cfn-appmesh-virtualgateway-virtualgatewayhttpconnectionpool-maxpendingrequests // MaxPendingRequests *float64 `field:"optional" json:"maxPendingRequests" yaml:"maxPendingRequests"` }
An object that represents a type of connection pool.
Example:
// 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" virtualGatewayHttpConnectionPoolProperty := &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }
type CfnVirtualGateway_VirtualGatewayListenerProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerProperty struct { // The port mapping information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistener.html#cfn-appmesh-virtualgateway-virtualgatewaylistener-portmapping // PortMapping interface{} `field:"required" json:"portMapping" yaml:"portMapping"` // The connection pool information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistener.html#cfn-appmesh-virtualgateway-virtualgatewaylistener-connectionpool // ConnectionPool interface{} `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistener.html#cfn-appmesh-virtualgateway-virtualgatewaylistener-healthcheck // HealthCheck interface{} `field:"optional" json:"healthCheck" yaml:"healthCheck"` // A reference to an object that represents the Transport Layer Security (TLS) properties for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistener.html#cfn-appmesh-virtualgateway-virtualgatewaylistener-tls // Tls interface{} `field:"optional" json:"tls" yaml:"tls"` }
An object that represents a listener for a virtual gateway.
Example:
// 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" virtualGatewayListenerProperty := &VirtualGatewayListenerProperty{ PortMapping: &VirtualGatewayPortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, // the properties below are optional ConnectionPool: &VirtualGatewayConnectionPoolProperty{ Grpc: &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, Http: &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }, Http2: &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, }, HealthCheck: &VirtualGatewayHealthCheckPolicyProperty{ 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), }, Tls: &VirtualGatewayListenerTlsProperty{ Certificate: &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Mode: jsii.String("mode"), // the properties below are optional Validation: &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, }, }
type CfnVirtualGateway_VirtualGatewayListenerTlsAcmCertificateProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsAcmCertificateProperty struct { // The Amazon Resource Name (ARN) for the certificate. // // The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html#virtual-node-tls-prerequisites) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsacmcertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsacmcertificate-certificatearn // CertificateArn *string `field:"required" json:"certificateArn" yaml:"certificateArn"` }
An object that represents an AWS Certificate Manager certificate.
Example:
// 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" virtualGatewayListenerTlsAcmCertificateProperty := &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }
type CfnVirtualGateway_VirtualGatewayListenerTlsCertificateProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsCertificateProperty struct { // A reference to an object that represents an AWS Certificate Manager certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlscertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlscertificate-acm // Acm interface{} `field:"optional" json:"acm" yaml:"acm"` // A reference to an object that represents a local file certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlscertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlscertificate-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a virtual gateway's listener's Secret Discovery Service certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlscertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlscertificate-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents a listener's Transport Layer Security (TLS) certificate.
Example:
// 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" virtualGatewayListenerTlsCertificateProperty := &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualGateway_VirtualGatewayListenerTlsFileCertificateProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsFileCertificateProperty struct { // The certificate chain for the certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsfilecertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsfilecertificate-certificatechain // CertificateChain *string `field:"required" json:"certificateChain" yaml:"certificateChain"` // The private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsfilecertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsfilecertificate-privatekey // PrivateKey *string `field:"required" json:"privateKey" yaml:"privateKey"` }
An object that represents a local file certificate.
The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html#virtual-node-tls-prerequisites) .
Example:
// 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" virtualGatewayListenerTlsFileCertificateProperty := &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }
type CfnVirtualGateway_VirtualGatewayListenerTlsProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsProperty struct { // An object that represents a Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertls.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertls-certificate // Certificate interface{} `field:"required" json:"certificate" yaml:"certificate"` // Specify one of the following modes. // // - ** STRICT – Listener only accepts connections with TLS enabled. // - ** PERMISSIVE – Listener accepts connections with or without TLS enabled. // - ** DISABLED – Listener only accepts connections without TLS. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertls.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertls-mode // Mode *string `field:"required" json:"mode" yaml:"mode"` // A reference to an object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertls.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertls-validation // Validation interface{} `field:"optional" json:"validation" yaml:"validation"` }
An object that represents the Transport Layer Security (TLS) properties for a listener.
Example:
// 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" virtualGatewayListenerTlsProperty := &VirtualGatewayListenerTlsProperty{ Certificate: &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Mode: jsii.String("mode"), // the properties below are optional Validation: &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, }
type CfnVirtualGateway_VirtualGatewayListenerTlsSdsCertificateProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsSdsCertificateProperty struct { // A reference to an object that represents the name of the secret secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlssdscertificate.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlssdscertificate-secretname // SecretName *string `field:"required" json:"secretName" yaml:"secretName"` }
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. See App Mesh [TLS documentation](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) for more info.
Example:
// 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" virtualGatewayListenerTlsSdsCertificateProperty := &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }
type CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextProperty struct { // A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontext.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontext-trust // Trust interface{} `field:"required" json:"trust" yaml:"trust"` // A reference to an object that represents the SANs for a virtual gateway listener's Transport Layer Security (TLS) validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontext.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontext-subjectalternativenames // SubjectAlternativeNames interface{} `field:"optional" json:"subjectAlternativeNames" yaml:"subjectAlternativeNames"` }
An object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context.
Example:
// 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" virtualGatewayListenerTlsValidationContextProperty := &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }
type CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextTrustProperty ¶
type CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextTrustProperty struct { // An object that represents a Transport Layer Security (TLS) validation context trust for a local file. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontexttrust.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontexttrust-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a virtual gateway's listener's Transport Layer Security (TLS) Secret Discovery Service validation context trust. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontexttrust.html#cfn-appmesh-virtualgateway-virtualgatewaylistenertlsvalidationcontexttrust-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context trust.
Example:
// 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" virtualGatewayListenerTlsValidationContextTrustProperty := &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualGateway_VirtualGatewayLoggingProperty ¶
type CfnVirtualGateway_VirtualGatewayLoggingProperty struct { // The access log configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaylogging.html#cfn-appmesh-virtualgateway-virtualgatewaylogging-accesslog // AccessLog interface{} `field:"optional" json:"accessLog" yaml:"accessLog"` }
An object that represents logging information.
Example:
// 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" virtualGatewayLoggingProperty := &VirtualGatewayLoggingProperty{ AccessLog: &VirtualGatewayAccessLogProperty{ File: &VirtualGatewayFileAccessLogProperty{ 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"), }, }, }, }
type CfnVirtualGateway_VirtualGatewayPortMappingProperty ¶
type CfnVirtualGateway_VirtualGatewayPortMappingProperty struct { // The port used for the port mapping. // // Specify one protocol. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayportmapping.html#cfn-appmesh-virtualgateway-virtualgatewayportmapping-port // Port *float64 `field:"required" json:"port" yaml:"port"` // The protocol used for the port mapping. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayportmapping.html#cfn-appmesh-virtualgateway-virtualgatewayportmapping-protocol // Protocol *string `field:"required" json:"protocol" yaml:"protocol"` }
An object that represents a port mapping.
Example:
// 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" virtualGatewayPortMappingProperty := &VirtualGatewayPortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }
type CfnVirtualGateway_VirtualGatewaySpecProperty ¶
type CfnVirtualGateway_VirtualGatewaySpecProperty struct { // The listeners that the mesh endpoint is expected to receive inbound traffic from. // // You can specify one listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayspec.html#cfn-appmesh-virtualgateway-virtualgatewayspec-listeners // Listeners interface{} `field:"required" json:"listeners" yaml:"listeners"` // A reference to an object that represents the defaults for backends. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayspec.html#cfn-appmesh-virtualgateway-virtualgatewayspec-backenddefaults // BackendDefaults interface{} `field:"optional" json:"backendDefaults" yaml:"backendDefaults"` // An object that represents logging information. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayspec.html#cfn-appmesh-virtualgateway-virtualgatewayspec-logging // Logging interface{} `field:"optional" json:"logging" yaml:"logging"` }
An object that represents the specification of a service mesh resource.
Example:
// 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" virtualGatewaySpecProperty := &VirtualGatewaySpecProperty{ Listeners: []interface{}{ &VirtualGatewayListenerProperty{ PortMapping: &VirtualGatewayPortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, // the properties below are optional ConnectionPool: &VirtualGatewayConnectionPoolProperty{ Grpc: &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, Http: &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }, Http2: &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, }, HealthCheck: &VirtualGatewayHealthCheckPolicyProperty{ 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), }, Tls: &VirtualGatewayListenerTlsProperty{ Certificate: &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Mode: jsii.String("mode"), // the properties below are optional Validation: &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, }, }, }, // the properties below are optional BackendDefaults: &VirtualGatewayBackendDefaultsProperty{ ClientPolicy: &VirtualGatewayClientPolicyProperty{ Tls: &VirtualGatewayClientPolicyTlsProperty{ Validation: &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, // the properties below are optional Certificate: &VirtualGatewayClientTlsCertificateProperty{ File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Enforce: jsii.Boolean(false), Ports: []interface{}{ jsii.Number(123), }, }, }, }, Logging: &VirtualGatewayLoggingProperty{ AccessLog: &VirtualGatewayAccessLogProperty{ File: &VirtualGatewayFileAccessLogProperty{ 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"), }, }, }, }, }
type CfnVirtualGateway_VirtualGatewayTlsValidationContextAcmTrustProperty ¶
type CfnVirtualGateway_VirtualGatewayTlsValidationContextAcmTrustProperty struct { // One or more ACM Amazon Resource Name (ARN)s. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontextacmtrust.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontextacmtrust-certificateauthorityarns // CertificateAuthorityArns *[]*string `field:"required" json:"certificateAuthorityArns" yaml:"certificateAuthorityArns"` }
An object that represents a Transport Layer Security (TLS) validation context trust for an AWS Certificate Manager certificate.
Example:
// 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" virtualGatewayTlsValidationContextAcmTrustProperty := &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }
type CfnVirtualGateway_VirtualGatewayTlsValidationContextFileTrustProperty ¶
type CfnVirtualGateway_VirtualGatewayTlsValidationContextFileTrustProperty struct { // The certificate trust chain for a certificate stored on the file system of the virtual node that the proxy is running on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontextfiletrust.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontextfiletrust-certificatechain // CertificateChain *string `field:"required" json:"certificateChain" yaml:"certificateChain"` }
An object that represents a Transport Layer Security (TLS) validation context trust for a local file.
Example:
// 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" virtualGatewayTlsValidationContextFileTrustProperty := &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }
type CfnVirtualGateway_VirtualGatewayTlsValidationContextProperty ¶
type CfnVirtualGateway_VirtualGatewayTlsValidationContextProperty struct { // A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontext.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontext-trust // Trust interface{} `field:"required" json:"trust" yaml:"trust"` // A reference to an object that represents the SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontext.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontext-subjectalternativenames // SubjectAlternativeNames interface{} `field:"optional" json:"subjectAlternativeNames" yaml:"subjectAlternativeNames"` }
An object that represents a Transport Layer Security (TLS) validation context.
Example:
// 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" virtualGatewayTlsValidationContextProperty := &VirtualGatewayTlsValidationContextProperty{ Trust: &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }
type CfnVirtualGateway_VirtualGatewayTlsValidationContextSdsTrustProperty ¶
type CfnVirtualGateway_VirtualGatewayTlsValidationContextSdsTrustProperty struct { // A reference to an object that represents the name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontextsdstrust.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontextsdstrust-secretname // SecretName *string `field:"required" json:"secretName" yaml:"secretName"` }
An object that represents a virtual gateway's listener's Transport Layer Security (TLS) Secret Discovery Service validation context trust.
The proxy must be configured with a local SDS provider via a Unix Domain Socket. See App Mesh [TLS documentation](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) for more info.
Example:
// 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" virtualGatewayTlsValidationContextSdsTrustProperty := &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }
type CfnVirtualGateway_VirtualGatewayTlsValidationContextTrustProperty ¶
type CfnVirtualGateway_VirtualGatewayTlsValidationContextTrustProperty struct { // A reference to an object that represents a Transport Layer Security (TLS) validation context trust for an AWS Certificate Manager certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontexttrust.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontexttrust-acm // Acm interface{} `field:"optional" json:"acm" yaml:"acm"` // An object that represents a Transport Layer Security (TLS) validation context trust for a local file. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontexttrust.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontexttrust-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewaytlsvalidationcontexttrust.html#cfn-appmesh-virtualgateway-virtualgatewaytlsvalidationcontexttrust-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents a Transport Layer Security (TLS) validation context trust.
Example:
// 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" virtualGatewayTlsValidationContextTrustProperty := &VirtualGatewayTlsValidationContextTrustProperty{ Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualNode ¶
type CfnVirtualNode interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the virtual node. AttrArn() *string AttrId() *string // The name of the service mesh that the virtual node resides in. AttrMeshName() *string // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The AWS IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The unique identifier for the virtual node. AttrUid() *string // The name of the virtual node. AttrVirtualNodeName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the service mesh to create the virtual node in. MeshName() *string SetMeshName(val *string) // The AWS IAM account ID of the service mesh owner. MeshOwner() *string SetMeshOwner(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The virtual node specification to apply. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the virtual node to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The name to use for the virtual node. VirtualNodeName() *string SetVirtualNodeName(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
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_ARN` when Envoy is referring to itself in metrics and traces. You can override this behavior by setting the `APPMESH_RESOURCE_CLUSTER` environment variable with your own name.
For more information about virtual nodes, see [Virtual nodes](https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_nodes.html) . 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/envoy.html) 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 "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"), })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html
func NewCfnVirtualNode ¶
func NewCfnVirtualNode(scope constructs.Construct, id *string, props *CfnVirtualNodeProps) CfnVirtualNode
type CfnVirtualNodeProps ¶
type CfnVirtualNodeProps struct { // The name of the service mesh to create the virtual node in. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html#cfn-appmesh-virtualnode-meshname // MeshName *string `field:"required" json:"meshName" yaml:"meshName"` // The virtual node specification to apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html#cfn-appmesh-virtualnode-spec // Spec interface{} `field:"required" json:"spec" yaml:"spec"` // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html#cfn-appmesh-virtualnode-meshowner // MeshOwner *string `field:"optional" json:"meshOwner" yaml:"meshOwner"` // Optional metadata that you can apply to the virtual node to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html#cfn-appmesh-virtualnode-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // The name to use for the virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html#cfn-appmesh-virtualnode-virtualnodename // VirtualNodeName *string `field:"optional" json:"virtualNodeName" yaml:"virtualNodeName"` }
Properties for defining a `CfnVirtualNode`.
Example:
// 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" cfnVirtualNodeProps := &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"), }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualnode.html
type CfnVirtualNode_AccessLogProperty ¶
type CfnVirtualNode_AccessLogProperty struct { // The file object to send virtual node access logs to. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-accesslog.html#cfn-appmesh-virtualnode-accesslog-file // File interface{} `field:"optional" json:"file" yaml:"file"` }
An object that represents the access logging information for a virtual node.
Example:
// 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" accessLogProperty := &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"), }, }, }
type CfnVirtualNode_AwsCloudMapInstanceAttributeProperty ¶
type CfnVirtualNode_AwsCloudMapInstanceAttributeProperty struct { // The name of an AWS Cloud Map service instance attribute key. // // Any AWS Cloud Map service instance that contains the specified key and value is returned. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapinstanceattribute.html#cfn-appmesh-virtualnode-awscloudmapinstanceattribute-key // Key *string `field:"required" json:"key" yaml:"key"` // The value of an AWS Cloud Map service instance attribute key. // // Any AWS Cloud Map service instance that contains the specified key and value is returned. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapinstanceattribute.html#cfn-appmesh-virtualnode-awscloudmapinstanceattribute-value // Value *string `field:"required" json:"value" yaml:"value"` }
An object that represents the AWS Cloud Map attribute information for your virtual node.
> AWS Cloud Map is not available in the eu-south-1 Region.
Example:
// 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" awsCloudMapInstanceAttributeProperty := &AwsCloudMapInstanceAttributeProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }
type CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty ¶
type CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty struct { // The HTTP name of the AWS Cloud Map namespace to use. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-namespacename // NamespaceName *string `field:"required" json:"namespaceName" yaml:"namespaceName"` // The name of the AWS Cloud Map service to use. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-servicename // ServiceName *string `field:"required" json:"serviceName" yaml:"serviceName"` // A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. // // Only instances that match all of the specified key/value pairs will be returned. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-attributes // Attributes interface{} `field:"optional" json:"attributes" yaml:"attributes"` // The preferred IP version that this virtual node uses. // // Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-ippreference // IpPreference *string `field:"optional" json:"ipPreference" yaml:"ipPreference"` }
An object that represents the AWS Cloud Map service discovery information for your virtual node.
> AWS Cloud Map is not available in the eu-south-1 Region.
Example:
// 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" awsCloudMapServiceDiscoveryProperty := &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"), }
type CfnVirtualNode_BackendDefaultsProperty ¶
type CfnVirtualNode_BackendDefaultsProperty struct { // A reference to an object that represents a client policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html#cfn-appmesh-virtualnode-backenddefaults-clientpolicy // ClientPolicy interface{} `field:"optional" json:"clientPolicy" yaml:"clientPolicy"` }
An object that represents the default properties for a backend.
Example:
// 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" backendDefaultsProperty := &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), }, }, }, }
type CfnVirtualNode_BackendProperty ¶
type CfnVirtualNode_BackendProperty struct { // Specifies a virtual service to use as a backend. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backend.html#cfn-appmesh-virtualnode-backend-virtualservice // VirtualService interface{} `field:"optional" json:"virtualService" yaml:"virtualService"` }
An object that represents the backends that a virtual node is expected to send outbound traffic to.
Example:
// 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" backendProperty := &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), }, }, }, }, }
type CfnVirtualNode_ClientPolicyProperty ¶
type CfnVirtualNode_ClientPolicyProperty struct { // A reference to an object that represents a Transport Layer Security (TLS) client policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicy.html#cfn-appmesh-virtualnode-clientpolicy-tls // Tls interface{} `field:"optional" json:"tls" yaml:"tls"` }
An object that represents a client policy.
Example:
// 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" clientPolicyProperty := &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), }, }, }
type CfnVirtualNode_ClientPolicyTlsProperty ¶
type CfnVirtualNode_ClientPolicyTlsProperty struct { // A reference to an object that represents a TLS validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-validation // Validation interface{} `field:"required" json:"validation" yaml:"validation"` // A reference to an object that represents a client's TLS certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-certificate // Certificate interface{} `field:"optional" json:"certificate" yaml:"certificate"` // Whether the policy is enforced. // // The default is `True` , if a value isn't specified. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-enforce // Enforce interface{} `field:"optional" json:"enforce" yaml:"enforce"` // One or more ports that the policy is enforced for. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-ports // Ports interface{} `field:"optional" json:"ports" yaml:"ports"` }
A reference to an object that represents a Transport Layer Security (TLS) client policy.
Example:
// 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" clientPolicyTlsProperty := &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), }, }
type CfnVirtualNode_ClientTlsCertificateProperty ¶
type CfnVirtualNode_ClientTlsCertificateProperty struct { // An object that represents a local file certificate. // // The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clienttlscertificate.html#cfn-appmesh-virtualnode-clienttlscertificate-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a client's TLS Secret Discovery Service certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clienttlscertificate.html#cfn-appmesh-virtualnode-clienttlscertificate-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents the client's certificate.
Example:
// 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" clientTlsCertificateProperty := &ClientTlsCertificateProperty{ File: &ListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &ListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualNode_DnsServiceDiscoveryProperty ¶
type CfnVirtualNode_DnsServiceDiscoveryProperty struct { // Specifies the DNS service discovery hostname for the virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-hostname // Hostname *string `field:"required" json:"hostname" yaml:"hostname"` // The preferred IP version that this virtual node uses. // // Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-ippreference // IpPreference *string `field:"optional" json:"ipPreference" yaml:"ipPreference"` // Specifies the DNS response type for the virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-responsetype // ResponseType *string `field:"optional" json:"responseType" yaml:"responseType"` }
An object that represents the DNS service discovery information for your virtual node.
Example:
// 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" dnsServiceDiscoveryProperty := &DnsServiceDiscoveryProperty{ Hostname: jsii.String("hostname"), // the properties below are optional IpPreference: jsii.String("ipPreference"), ResponseType: jsii.String("responseType"), }
type CfnVirtualNode_DurationProperty ¶
type CfnVirtualNode_DurationProperty struct { // A unit of time. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-duration.html#cfn-appmesh-virtualnode-duration-unit // Unit *string `field:"required" json:"unit" yaml:"unit"` // A number of time units. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-duration.html#cfn-appmesh-virtualnode-duration-value // Value *float64 `field:"required" json:"value" yaml:"value"` }
An object that represents a duration of time.
Example:
// 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" durationProperty := &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }
type CfnVirtualNode_FileAccessLogProperty ¶
type CfnVirtualNode_FileAccessLogProperty struct { // The file path to write access logs to. // // You can use `/dev/stdout` to send access logs to standard out and configure your Envoy container to use a log driver, such as `awslogs` , to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk. // // > The Envoy process must have write permissions to the path that you specify here. Otherwise, Envoy fails to bootstrap properly. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-fileaccesslog.html#cfn-appmesh-virtualnode-fileaccesslog-path // Path *string `field:"required" json:"path" yaml:"path"` // The specified format for the logs. // // The format is either `json_format` or `text_format` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-fileaccesslog.html#cfn-appmesh-virtualnode-fileaccesslog-format // Format interface{} `field:"optional" json:"format" yaml:"format"` }
An object that represents an access log file.
Example:
// 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" fileAccessLogProperty := &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"), }, }
type CfnVirtualNode_GrpcTimeoutProperty ¶
type CfnVirtualNode_GrpcTimeoutProperty struct { // An object that represents an idle timeout. // // An idle timeout bounds the amount of time that a connection may be idle. The default value is none. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-grpctimeout.html#cfn-appmesh-virtualnode-grpctimeout-idle // Idle interface{} `field:"optional" json:"idle" yaml:"idle"` // An object that represents a per request timeout. // // The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-grpctimeout.html#cfn-appmesh-virtualnode-grpctimeout-perrequest // PerRequest interface{} `field:"optional" json:"perRequest" yaml:"perRequest"` }
An object that represents types of timeouts.
Example:
// 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" grpcTimeoutProperty := &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }
type CfnVirtualNode_HealthCheckProperty ¶
type CfnVirtualNode_HealthCheckProperty struct { // The number of consecutive successful health checks that must occur before declaring listener healthy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-healthythreshold // HealthyThreshold *float64 `field:"required" json:"healthyThreshold" yaml:"healthyThreshold"` // The time period in milliseconds between each health check execution. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-intervalmillis // IntervalMillis *float64 `field:"required" json:"intervalMillis" yaml:"intervalMillis"` // The protocol for the health check request. // // If you specify `grpc` , then your service must conform to the [GRPC Health Checking Protocol](https://docs.aws.amazon.com/https://github.com/grpc/grpc/blob/master/doc/health-checking.md) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-protocol // Protocol *string `field:"required" json:"protocol" yaml:"protocol"` // The amount of time to wait when receiving a response from the health check, in milliseconds. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-timeoutmillis // TimeoutMillis *float64 `field:"required" json:"timeoutMillis" yaml:"timeoutMillis"` // The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-unhealthythreshold // UnhealthyThreshold *float64 `field:"required" json:"unhealthyThreshold" yaml:"unhealthyThreshold"` // The destination path for the health check request. // // This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-path // Path *string `field:"optional" json:"path" yaml:"path"` // The destination port for the health check request. // // This port must match the port defined in the `PortMapping` for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-port // Port *float64 `field:"optional" json:"port" yaml:"port"` }
An object that represents the health check policy for a virtual node's listener.
Example:
// 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" healthCheckProperty := &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), }
type CfnVirtualNode_HttpTimeoutProperty ¶
type CfnVirtualNode_HttpTimeoutProperty struct { // An object that represents an idle timeout. // // An idle timeout bounds the amount of time that a connection may be idle. The default value is none. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-httptimeout.html#cfn-appmesh-virtualnode-httptimeout-idle // Idle interface{} `field:"optional" json:"idle" yaml:"idle"` // An object that represents a per request timeout. // // The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-httptimeout.html#cfn-appmesh-virtualnode-httptimeout-perrequest // PerRequest interface{} `field:"optional" json:"perRequest" yaml:"perRequest"` }
An object that represents types of timeouts.
Example:
// 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" httpTimeoutProperty := &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }
type CfnVirtualNode_JsonFormatRefProperty ¶ added in v2.42.0
type CfnVirtualNode_JsonFormatRefProperty struct { // The specified key for the JSON. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-jsonformatref.html#cfn-appmesh-virtualnode-jsonformatref-key // Key *string `field:"required" json:"key" yaml:"key"` // The specified value for the JSON. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-jsonformatref.html#cfn-appmesh-virtualnode-jsonformatref-value // Value *string `field:"required" json:"value" yaml:"value"` }
An object that represents the key value pairs for the JSON.
Example:
// 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" jsonFormatRefProperty := &JsonFormatRefProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }
type CfnVirtualNode_ListenerProperty ¶
type CfnVirtualNode_ListenerProperty struct { // The port mapping information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-portmapping // PortMapping interface{} `field:"required" json:"portMapping" yaml:"portMapping"` // The connection pool information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-connectionpool // ConnectionPool interface{} `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-healthcheck // HealthCheck interface{} `field:"optional" json:"healthCheck" yaml:"healthCheck"` // The outlier detection information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-outlierdetection // OutlierDetection interface{} `field:"optional" json:"outlierDetection" yaml:"outlierDetection"` // An object that represents timeouts for different protocols. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-timeout // Timeout interface{} `field:"optional" json:"timeout" yaml:"timeout"` // A reference to an object that represents the Transport Layer Security (TLS) properties for a listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-tls // Tls interface{} `field:"optional" json:"tls" yaml:"tls"` }
An object that represents a listener for a virtual node.
Example:
// 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" listenerProperty := &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"), }, }, }, }, }, }
type CfnVirtualNode_ListenerTimeoutProperty ¶
type CfnVirtualNode_ListenerTimeoutProperty struct { // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-grpc // Grpc interface{} `field:"optional" json:"grpc" yaml:"grpc"` // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-http // Http interface{} `field:"optional" json:"http" yaml:"http"` // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-http2 // Http2 interface{} `field:"optional" json:"http2" yaml:"http2"` // An object that represents types of timeouts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-tcp // Tcp interface{} `field:"optional" json:"tcp" yaml:"tcp"` }
An object that represents timeouts for different protocols.
Example:
// 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" listenerTimeoutProperty := &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), }, }, }
type CfnVirtualNode_ListenerTlsAcmCertificateProperty ¶
type CfnVirtualNode_ListenerTlsAcmCertificateProperty struct { // The Amazon Resource Name (ARN) for the certificate. // // The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html#virtual-node-tls-prerequisites) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsacmcertificate.html#cfn-appmesh-virtualnode-listenertlsacmcertificate-certificatearn // CertificateArn *string `field:"required" json:"certificateArn" yaml:"certificateArn"` }
An object that represents an AWS Certificate Manager certificate.
Example:
// 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" listenerTlsAcmCertificateProperty := &ListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }
type CfnVirtualNode_ListenerTlsCertificateProperty ¶
type CfnVirtualNode_ListenerTlsCertificateProperty struct { // A reference to an object that represents an AWS Certificate Manager certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-acm // Acm interface{} `field:"optional" json:"acm" yaml:"acm"` // A reference to an object that represents a local file certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a listener's Secret Discovery Service certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents a listener's Transport Layer Security (TLS) certificate.
Example:
// 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" listenerTlsCertificateProperty := &ListenerTlsCertificateProperty{ Acm: &ListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &ListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &ListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualNode_ListenerTlsFileCertificateProperty ¶
type CfnVirtualNode_ListenerTlsFileCertificateProperty struct { // The certificate chain for the certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsfilecertificate.html#cfn-appmesh-virtualnode-listenertlsfilecertificate-certificatechain // CertificateChain *string `field:"required" json:"certificateChain" yaml:"certificateChain"` // The private key for a certificate stored on the file system of the virtual node that the proxy is running on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsfilecertificate.html#cfn-appmesh-virtualnode-listenertlsfilecertificate-privatekey // PrivateKey *string `field:"required" json:"privateKey" yaml:"privateKey"` }
An object that represents a local file certificate.
The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html#virtual-node-tls-prerequisites) .
Example:
// 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" listenerTlsFileCertificateProperty := &ListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }
type CfnVirtualNode_ListenerTlsProperty ¶
type CfnVirtualNode_ListenerTlsProperty struct { // A reference to an object that represents a listener's Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-certificate // Certificate interface{} `field:"required" json:"certificate" yaml:"certificate"` // Specify one of the following modes. // // - ** STRICT – Listener only accepts connections with TLS enabled. // - ** PERMISSIVE – Listener accepts connections with or without TLS enabled. // - ** DISABLED – Listener only accepts connections without TLS. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-mode // Mode *string `field:"required" json:"mode" yaml:"mode"` // A reference to an object that represents a listener's Transport Layer Security (TLS) validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-validation // Validation interface{} `field:"optional" json:"validation" yaml:"validation"` }
An object that represents the Transport Layer Security (TLS) properties for a listener.
Example:
// 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" listenerTlsProperty := &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"), }, }, }, }, }
type CfnVirtualNode_ListenerTlsSdsCertificateProperty ¶
type CfnVirtualNode_ListenerTlsSdsCertificateProperty struct { // A reference to an object that represents the name of the secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlssdscertificate.html#cfn-appmesh-virtualnode-listenertlssdscertificate-secretname // SecretName *string `field:"required" json:"secretName" yaml:"secretName"` }
An object that represents the listener's Secret Discovery Service certificate.
The proxy must be configured with a local SDS provider via a Unix Domain Socket. See App Mesh [TLS documentation](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) for more info.
Example:
// 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" listenerTlsSdsCertificateProperty := &ListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }
type CfnVirtualNode_ListenerTlsValidationContextProperty ¶
type CfnVirtualNode_ListenerTlsValidationContextProperty struct { // A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontext.html#cfn-appmesh-virtualnode-listenertlsvalidationcontext-trust // Trust interface{} `field:"required" json:"trust" yaml:"trust"` // A reference to an object that represents the SANs for a listener's Transport Layer Security (TLS) validation context. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontext.html#cfn-appmesh-virtualnode-listenertlsvalidationcontext-subjectalternativenames // SubjectAlternativeNames interface{} `field:"optional" json:"subjectAlternativeNames" yaml:"subjectAlternativeNames"` }
An object that represents a listener's Transport Layer Security (TLS) validation context.
Example:
// 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" listenerTlsValidationContextProperty := &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"), }, }, }, }
type CfnVirtualNode_ListenerTlsValidationContextTrustProperty ¶
type CfnVirtualNode_ListenerTlsValidationContextTrustProperty struct { // An object that represents a Transport Layer Security (TLS) validation context trust for a local file. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-listenertlsvalidationcontexttrust-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a listener's Transport Layer Security (TLS) Secret Discovery Service validation context trust. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-listenertlsvalidationcontexttrust-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents a listener's Transport Layer Security (TLS) validation context trust.
Example:
// 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" listenerTlsValidationContextTrustProperty := &ListenerTlsValidationContextTrustProperty{ File: &TlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &TlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualNode_LoggingFormatProperty ¶ added in v2.42.0
type CfnVirtualNode_LoggingFormatProperty struct { // The logging format for JSON. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-loggingformat.html#cfn-appmesh-virtualnode-loggingformat-json // Json interface{} `field:"optional" json:"json" yaml:"json"` // The logging format for text. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-loggingformat.html#cfn-appmesh-virtualnode-loggingformat-text // Text *string `field:"optional" json:"text" yaml:"text"` }
An object that represents the format for the logs.
Example:
// 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" loggingFormatProperty := &LoggingFormatProperty{ Json: []interface{}{ &JsonFormatRefProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, Text: jsii.String("text"), }
type CfnVirtualNode_LoggingProperty ¶
type CfnVirtualNode_LoggingProperty struct { // The access log configuration for a virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-logging.html#cfn-appmesh-virtualnode-logging-accesslog // AccessLog interface{} `field:"optional" json:"accessLog" yaml:"accessLog"` }
An object that represents the logging information for a virtual node.
Example:
// 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" loggingProperty := &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"), }, }, }, }
type CfnVirtualNode_OutlierDetectionProperty ¶
type CfnVirtualNode_OutlierDetectionProperty struct { // The base amount of time for which a host is ejected. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-baseejectionduration // BaseEjectionDuration interface{} `field:"required" json:"baseEjectionDuration" yaml:"baseEjectionDuration"` // The time interval between ejection sweep analysis. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-interval // Interval interface{} `field:"required" json:"interval" yaml:"interval"` // Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. // // Will eject at least one host regardless of the value. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-maxejectionpercent // MaxEjectionPercent *float64 `field:"required" json:"maxEjectionPercent" yaml:"maxEjectionPercent"` // Number of consecutive `5xx` errors required for ejection. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-maxservererrors // MaxServerErrors *float64 `field:"required" json:"maxServerErrors" yaml:"maxServerErrors"` }
An object that represents the outlier detection for a virtual node's listener.
Example:
// 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" outlierDetectionProperty := &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), }
type CfnVirtualNode_PortMappingProperty ¶
type CfnVirtualNode_PortMappingProperty struct { // The port used for the port mapping. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-port // Port *float64 `field:"required" json:"port" yaml:"port"` // The protocol used for the port mapping. // // Specify `http` , `http2` , `grpc` , or `tcp` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-protocol // Protocol *string `field:"required" json:"protocol" yaml:"protocol"` }
An object representing a virtual node or virtual router listener port mapping.
Example:
// 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" portMappingProperty := &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }
type CfnVirtualNode_ServiceDiscoveryProperty ¶
type CfnVirtualNode_ServiceDiscoveryProperty struct { // Specifies any AWS Cloud Map information for the virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-servicediscovery.html#cfn-appmesh-virtualnode-servicediscovery-awscloudmap // AwsCloudMap interface{} `field:"optional" json:"awsCloudMap" yaml:"awsCloudMap"` // Specifies the DNS information for the virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-servicediscovery.html#cfn-appmesh-virtualnode-servicediscovery-dns // Dns interface{} `field:"optional" json:"dns" yaml:"dns"` }
An object that represents the service discovery information for a virtual node.
Example:
// 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" serviceDiscoveryProperty := &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"), }, }
type CfnVirtualNode_SubjectAlternativeNameMatchersProperty ¶
type CfnVirtualNode_SubjectAlternativeNameMatchersProperty struct { // The values sent must match the specified values exactly. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-subjectalternativenamematchers.html#cfn-appmesh-virtualnode-subjectalternativenamematchers-exact // Exact *[]*string `field:"optional" json:"exact" yaml:"exact"` }
An object that represents the methods by which a subject alternative name on a peer Transport Layer Security (TLS) certificate can be matched.
Example:
// 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" subjectAlternativeNameMatchersProperty := &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }
type CfnVirtualNode_SubjectAlternativeNamesProperty ¶
type CfnVirtualNode_SubjectAlternativeNamesProperty struct { // An object that represents the criteria for determining a SANs match. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-subjectalternativenames.html#cfn-appmesh-virtualnode-subjectalternativenames-match // Match interface{} `field:"required" json:"match" yaml:"match"` }
An object that represents the subject alternative names secured by the certificate.
Example:
// 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" subjectAlternativeNamesProperty := &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }
type CfnVirtualNode_TcpTimeoutProperty ¶
type CfnVirtualNode_TcpTimeoutProperty struct { // An object that represents an idle timeout. // // An idle timeout bounds the amount of time that a connection may be idle. The default value is none. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tcptimeout.html#cfn-appmesh-virtualnode-tcptimeout-idle // Idle interface{} `field:"optional" json:"idle" yaml:"idle"` }
An object that represents types of timeouts.
Example:
// 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" tcpTimeoutProperty := &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }
type CfnVirtualNode_TlsValidationContextAcmTrustProperty ¶
type CfnVirtualNode_TlsValidationContextAcmTrustProperty struct { // One or more ACM Amazon Resource Name (ARN)s. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextacmtrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextacmtrust-certificateauthorityarns // CertificateAuthorityArns *[]*string `field:"required" json:"certificateAuthorityArns" yaml:"certificateAuthorityArns"` }
An object that represents a Transport Layer Security (TLS) validation context trust for an AWS Certificate Manager certificate.
Example:
// 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" tlsValidationContextAcmTrustProperty := &TlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }
type CfnVirtualNode_TlsValidationContextFileTrustProperty ¶
type CfnVirtualNode_TlsValidationContextFileTrustProperty struct { // The certificate trust chain for a certificate stored on the file system of the virtual node that the proxy is running on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextfiletrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextfiletrust-certificatechain // CertificateChain *string `field:"required" json:"certificateChain" yaml:"certificateChain"` }
An object that represents a Transport Layer Security (TLS) validation context trust for a local file.
Example:
// 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" tlsValidationContextFileTrustProperty := &TlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }
type CfnVirtualNode_TlsValidationContextProperty ¶
type CfnVirtualNode_TlsValidationContextProperty struct { // A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontext.html#cfn-appmesh-virtualnode-tlsvalidationcontext-trust // Trust interface{} `field:"required" json:"trust" yaml:"trust"` // A reference to an object that represents the SANs for a Transport Layer Security (TLS) validation context. // // If you don't specify SANs on the *terminating* mesh endpoint, the Envoy proxy for that node doesn't verify the SAN on a peer client certificate. If you don't specify SANs on the *originating* mesh endpoint, the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. Since SPIRE vended certificates have a SPIFFE ID as a name, you must set the SAN since the name doesn't match the service discovery name. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontext.html#cfn-appmesh-virtualnode-tlsvalidationcontext-subjectalternativenames // SubjectAlternativeNames interface{} `field:"optional" json:"subjectAlternativeNames" yaml:"subjectAlternativeNames"` }
An object that represents how the proxy will validate its peer during Transport Layer Security (TLS) negotiation.
Example:
// 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" tlsValidationContextProperty := &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"), }, }, }, }
type CfnVirtualNode_TlsValidationContextSdsTrustProperty ¶
type CfnVirtualNode_TlsValidationContextSdsTrustProperty struct { // A reference to an object that represents the name of the secret for a Transport Layer Security (TLS) Secret Discovery Service validation context trust. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextsdstrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextsdstrust-secretname // SecretName *string `field:"required" json:"secretName" yaml:"secretName"` }
An object that represents a Transport Layer Security (TLS) Secret Discovery Service validation context trust.
The proxy must be configured with a local SDS provider via a Unix Domain Socket. See App Mesh [TLS documentation](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) for more info.
Example:
// 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" tlsValidationContextSdsTrustProperty := &TlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }
type CfnVirtualNode_TlsValidationContextTrustProperty ¶
type CfnVirtualNode_TlsValidationContextTrustProperty struct { // A reference to an object that represents a Transport Layer Security (TLS) validation context trust for an AWS Certificate Manager certificate. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-tlsvalidationcontexttrust-acm // Acm interface{} `field:"optional" json:"acm" yaml:"acm"` // An object that represents a Transport Layer Security (TLS) validation context trust for a local file. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-tlsvalidationcontexttrust-file // File interface{} `field:"optional" json:"file" yaml:"file"` // A reference to an object that represents a Transport Layer Security (TLS) Secret Discovery Service validation context trust. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-tlsvalidationcontexttrust-sds // Sds interface{} `field:"optional" json:"sds" yaml:"sds"` }
An object that represents a Transport Layer Security (TLS) validation context trust.
Example:
// 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" tlsValidationContextTrustProperty := &TlsValidationContextTrustProperty{ Acm: &TlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &TlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &TlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }
type CfnVirtualNode_VirtualNodeConnectionPoolProperty ¶
type CfnVirtualNode_VirtualNodeConnectionPoolProperty struct { // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-grpc // Grpc interface{} `field:"optional" json:"grpc" yaml:"grpc"` // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-http // Http interface{} `field:"optional" json:"http" yaml:"http"` // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-http2 // Http2 interface{} `field:"optional" json:"http2" yaml:"http2"` // An object that represents a type of connection pool. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-tcp // Tcp interface{} `field:"optional" json:"tcp" yaml:"tcp"` }
An object that represents the type of virtual node connection pool.
Only one protocol is used at a time and should be the same protocol as the one chosen under port mapping.
If not present the default value for `maxPendingRequests` is `2147483647` .
Example:
// 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" virtualNodeConnectionPoolProperty := &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), }, }
type CfnVirtualNode_VirtualNodeGrpcConnectionPoolProperty ¶
type CfnVirtualNode_VirtualNodeGrpcConnectionPoolProperty struct { // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodegrpcconnectionpool.html#cfn-appmesh-virtualnode-virtualnodegrpcconnectionpool-maxrequests // MaxRequests *float64 `field:"required" json:"maxRequests" yaml:"maxRequests"` }
An object that represents a type of connection pool.
Example:
// 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" virtualNodeGrpcConnectionPoolProperty := &VirtualNodeGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }
type CfnVirtualNode_VirtualNodeHttp2ConnectionPoolProperty ¶
type CfnVirtualNode_VirtualNodeHttp2ConnectionPoolProperty struct { // Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttp2connectionpool.html#cfn-appmesh-virtualnode-virtualnodehttp2connectionpool-maxrequests // MaxRequests *float64 `field:"required" json:"maxRequests" yaml:"maxRequests"` }
An object that represents a type of connection pool.
Example:
// 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" virtualNodeHttp2ConnectionPoolProperty := &VirtualNodeHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }
type CfnVirtualNode_VirtualNodeHttpConnectionPoolProperty ¶
type CfnVirtualNode_VirtualNodeHttpConnectionPoolProperty struct { // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodehttpconnectionpool-maxconnections // MaxConnections *float64 `field:"required" json:"maxConnections" yaml:"maxConnections"` // Number of overflowing requests after `max_connections` Envoy will queue to upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodehttpconnectionpool-maxpendingrequests // MaxPendingRequests *float64 `field:"optional" json:"maxPendingRequests" yaml:"maxPendingRequests"` }
An object that represents a type of connection pool.
Example:
// 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" virtualNodeHttpConnectionPoolProperty := &VirtualNodeHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }
type CfnVirtualNode_VirtualNodeSpecProperty ¶
type CfnVirtualNode_VirtualNodeSpecProperty struct { // A reference to an object that represents the defaults for backends. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-backenddefaults // BackendDefaults interface{} `field:"optional" json:"backendDefaults" yaml:"backendDefaults"` // The backends that the virtual node is expected to send outbound traffic to. // // > App Mesh doesn't validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn't already exist. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-backends // Backends interface{} `field:"optional" json:"backends" yaml:"backends"` // The listener that the virtual node is expected to receive inbound traffic from. // // You can specify one listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-listeners // Listeners interface{} `field:"optional" json:"listeners" yaml:"listeners"` // The inbound and outbound access logging information for the virtual node. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-logging // Logging interface{} `field:"optional" json:"logging" yaml:"logging"` // The service discovery information for the virtual node. // // If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a `listener` , then you must specify service discovery information. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-servicediscovery // ServiceDiscovery interface{} `field:"optional" json:"serviceDiscovery" yaml:"serviceDiscovery"` }
An object that represents the specification of a virtual node.
Example:
// 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" virtualNodeSpecProperty := &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"), }, }, }
type CfnVirtualNode_VirtualNodeTcpConnectionPoolProperty ¶
type CfnVirtualNode_VirtualNodeTcpConnectionPoolProperty struct { // Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodetcpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodetcpconnectionpool-maxconnections // MaxConnections *float64 `field:"required" json:"maxConnections" yaml:"maxConnections"` }
An object that represents a type of connection pool.
Example:
// 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" virtualNodeTcpConnectionPoolProperty := &VirtualNodeTcpConnectionPoolProperty{ MaxConnections: jsii.Number(123), }
type CfnVirtualNode_VirtualServiceBackendProperty ¶
type CfnVirtualNode_VirtualServiceBackendProperty struct { // The name of the virtual service that is acting as a virtual node backend. // // > App Mesh doesn't validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn't already exist. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualservicebackend.html#cfn-appmesh-virtualnode-virtualservicebackend-virtualservicename // VirtualServiceName *string `field:"required" json:"virtualServiceName" yaml:"virtualServiceName"` // A reference to an object that represents the client policy for a backend. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualservicebackend.html#cfn-appmesh-virtualnode-virtualservicebackend-clientpolicy // ClientPolicy interface{} `field:"optional" json:"clientPolicy" yaml:"clientPolicy"` }
An object that represents a virtual service backend for a virtual node.
Example:
// 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" virtualServiceBackendProperty := &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), }, }, }, }
type CfnVirtualRouter ¶
type CfnVirtualRouter interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the virtual router. AttrArn() *string AttrId() *string // The name of the service mesh that the virtual router resides in. AttrMeshName() *string // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The AWS IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The unique identifier for the virtual router. AttrUid() *string // The name of the virtual router. AttrVirtualRouterName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the service mesh to create the virtual router in. MeshName() *string SetMeshName(val *string) // The AWS IAM account ID of the service mesh owner. MeshOwner() *string SetMeshOwner(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The virtual router specification to apply. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the virtual router to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The name to use for the virtual router. VirtualRouterName() *string SetVirtualRouterName(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Creates a virtual router within a service mesh.
Specify a `listener` for any inbound traffic that your virtual router receives. Create a virtual router for each protocol and port that you need to route. Virtual routers handle traffic for one or more virtual services within your mesh. After you create your virtual router, create and associate routes for your virtual router that direct incoming requests to different virtual nodes.
For more information about virtual routers, see [Virtual routers](https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_routers.html) .
Example:
// 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" cfnVirtualRouter := awscdk.Aws_appmesh.NewCfnVirtualRouter(this, jsii.String("MyCfnVirtualRouter"), &CfnVirtualRouterProps{ MeshName: jsii.String("meshName"), Spec: &VirtualRouterSpecProperty{ Listeners: []interface{}{ &VirtualRouterListenerProperty{ PortMapping: &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, }, }, }, // the properties below are optional MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, VirtualRouterName: jsii.String("virtualRouterName"), })
func NewCfnVirtualRouter ¶
func NewCfnVirtualRouter(scope constructs.Construct, id *string, props *CfnVirtualRouterProps) CfnVirtualRouter
type CfnVirtualRouterProps ¶
type CfnVirtualRouterProps struct { // The name of the service mesh to create the virtual router in. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-meshname // MeshName *string `field:"required" json:"meshName" yaml:"meshName"` // The virtual router specification to apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-spec // Spec interface{} `field:"required" json:"spec" yaml:"spec"` // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-meshowner // MeshOwner *string `field:"optional" json:"meshOwner" yaml:"meshOwner"` // Optional metadata that you can apply to the virtual router to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // The name to use for the virtual router. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualrouter.html#cfn-appmesh-virtualrouter-virtualroutername // VirtualRouterName *string `field:"optional" json:"virtualRouterName" yaml:"virtualRouterName"` }
Properties for defining a `CfnVirtualRouter`.
Example:
// 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" cfnVirtualRouterProps := &CfnVirtualRouterProps{ MeshName: jsii.String("meshName"), Spec: &VirtualRouterSpecProperty{ Listeners: []interface{}{ &VirtualRouterListenerProperty{ PortMapping: &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, }, }, }, // the properties below are optional MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, VirtualRouterName: jsii.String("virtualRouterName"), }
type CfnVirtualRouter_PortMappingProperty ¶
type CfnVirtualRouter_PortMappingProperty struct { // The port used for the port mapping. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html#cfn-appmesh-virtualrouter-portmapping-port // Port *float64 `field:"required" json:"port" yaml:"port"` // The protocol used for the port mapping. // // Specify one protocol. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html#cfn-appmesh-virtualrouter-portmapping-protocol // Protocol *string `field:"required" json:"protocol" yaml:"protocol"` }
An object representing a virtual router listener port mapping.
Example:
// 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" portMappingProperty := &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }
type CfnVirtualRouter_VirtualRouterListenerProperty ¶
type CfnVirtualRouter_VirtualRouterListenerProperty struct { // The port mapping information for the listener. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-virtualrouterlistener.html#cfn-appmesh-virtualrouter-virtualrouterlistener-portmapping // PortMapping interface{} `field:"required" json:"portMapping" yaml:"portMapping"` }
An object that represents a virtual router listener.
Example:
// 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" virtualRouterListenerProperty := &VirtualRouterListenerProperty{ PortMapping: &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, }
type CfnVirtualRouter_VirtualRouterSpecProperty ¶
type CfnVirtualRouter_VirtualRouterSpecProperty struct { // The listeners that the virtual router is expected to receive inbound traffic from. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-virtualrouterspec.html#cfn-appmesh-virtualrouter-virtualrouterspec-listeners // Listeners interface{} `field:"required" json:"listeners" yaml:"listeners"` }
An object that represents the specification of a virtual router.
Example:
// 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" virtualRouterSpecProperty := &VirtualRouterSpecProperty{ Listeners: []interface{}{ &VirtualRouterListenerProperty{ PortMapping: &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, }, }, }
type CfnVirtualService ¶
type CfnVirtualService interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The full Amazon Resource Name (ARN) for the virtual service. AttrArn() *string AttrId() *string // The name of the service mesh that the virtual service resides in. AttrMeshName() *string // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrMeshOwner() *string // The AWS IAM account ID of the resource owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . AttrResourceOwner() *string // The unique identifier for the virtual service. AttrUid() *string // The name of the virtual service. AttrVirtualServiceName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // 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)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the service mesh to create the virtual service in. MeshName() *string SetMeshName(val *string) // The AWS IAM account ID of the service mesh owner. MeshOwner() *string SetMeshOwner(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // 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 })`. Ref() *string // The virtual service specification to apply. Spec() interface{} SetSpec(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Optional metadata that you can apply to the virtual service to assist with categorization and organization. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The name to use for the virtual service. VirtualServiceName() *string SetVirtualServiceName(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // 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, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "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. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // 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:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
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](https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_services.html) .
Example:
// 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" cfnVirtualService := awscdk.Aws_appmesh.NewCfnVirtualService(this, jsii.String("MyCfnVirtualService"), &CfnVirtualServiceProps{ MeshName: jsii.String("meshName"), Spec: &VirtualServiceSpecProperty{ Provider: &VirtualServiceProviderProperty{ VirtualNode: &VirtualNodeServiceProviderProperty{ VirtualNodeName: jsii.String("virtualNodeName"), }, VirtualRouter: &VirtualRouterServiceProviderProperty{ VirtualRouterName: jsii.String("virtualRouterName"), }, }, }, VirtualServiceName: jsii.String("virtualServiceName"), // the properties below are optional MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnVirtualService ¶
func NewCfnVirtualService(scope constructs.Construct, id *string, props *CfnVirtualServiceProps) CfnVirtualService
type CfnVirtualServiceProps ¶
type CfnVirtualServiceProps struct { // The name of the service mesh to create the virtual service in. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualservice.html#cfn-appmesh-virtualservice-meshname // MeshName *string `field:"required" json:"meshName" yaml:"meshName"` // The virtual service specification to apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualservice.html#cfn-appmesh-virtualservice-spec // Spec interface{} `field:"required" json:"spec" yaml:"spec"` // The name to use for the virtual service. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualservice.html#cfn-appmesh-virtualservice-virtualservicename // VirtualServiceName *string `field:"required" json:"virtualServiceName" yaml:"virtualServiceName"` // The AWS IAM account ID of the service mesh owner. // // 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](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualservice.html#cfn-appmesh-virtualservice-meshowner // MeshOwner *string `field:"optional" json:"meshOwner" yaml:"meshOwner"` // Optional metadata that you can apply to the virtual service to assist with categorization and organization. // // 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. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-virtualservice.html#cfn-appmesh-virtualservice-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnVirtualService`.
Example:
// 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" cfnVirtualServiceProps := &CfnVirtualServiceProps{ MeshName: jsii.String("meshName"), Spec: &VirtualServiceSpecProperty{ Provider: &VirtualServiceProviderProperty{ VirtualNode: &VirtualNodeServiceProviderProperty{ VirtualNodeName: jsii.String("virtualNodeName"), }, VirtualRouter: &VirtualRouterServiceProviderProperty{ VirtualRouterName: jsii.String("virtualRouterName"), }, }, }, VirtualServiceName: jsii.String("virtualServiceName"), // the properties below are optional MeshOwner: jsii.String("meshOwner"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnVirtualService_VirtualNodeServiceProviderProperty ¶
type CfnVirtualService_VirtualNodeServiceProviderProperty struct { // The name of the virtual node that is acting as a service provider. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualnodeserviceprovider.html#cfn-appmesh-virtualservice-virtualnodeserviceprovider-virtualnodename // VirtualNodeName *string `field:"required" json:"virtualNodeName" yaml:"virtualNodeName"` }
An object that represents a virtual node service provider.
Example:
// 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" virtualNodeServiceProviderProperty := &VirtualNodeServiceProviderProperty{ VirtualNodeName: jsii.String("virtualNodeName"), }
type CfnVirtualService_VirtualRouterServiceProviderProperty ¶
type CfnVirtualService_VirtualRouterServiceProviderProperty struct { // The name of the virtual router that is acting as a service provider. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualrouterserviceprovider.html#cfn-appmesh-virtualservice-virtualrouterserviceprovider-virtualroutername // VirtualRouterName *string `field:"required" json:"virtualRouterName" yaml:"virtualRouterName"` }
An object that represents a virtual node service provider.
Example:
// 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" virtualRouterServiceProviderProperty := &VirtualRouterServiceProviderProperty{ VirtualRouterName: jsii.String("virtualRouterName"), }
type CfnVirtualService_VirtualServiceProviderProperty ¶
type CfnVirtualService_VirtualServiceProviderProperty struct { // The virtual node associated with a virtual service. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualserviceprovider.html#cfn-appmesh-virtualservice-virtualserviceprovider-virtualnode // VirtualNode interface{} `field:"optional" json:"virtualNode" yaml:"virtualNode"` // The virtual router associated with a virtual service. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualserviceprovider.html#cfn-appmesh-virtualservice-virtualserviceprovider-virtualrouter // VirtualRouter interface{} `field:"optional" json:"virtualRouter" yaml:"virtualRouter"` }
An object that represents the provider for a virtual service.
Example:
// 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" virtualServiceProviderProperty := &VirtualServiceProviderProperty{ VirtualNode: &VirtualNodeServiceProviderProperty{ VirtualNodeName: jsii.String("virtualNodeName"), }, VirtualRouter: &VirtualRouterServiceProviderProperty{ VirtualRouterName: jsii.String("virtualRouterName"), }, }
type CfnVirtualService_VirtualServiceSpecProperty ¶
type CfnVirtualService_VirtualServiceSpecProperty struct { // The App Mesh object that is acting as the provider for a virtual service. // // You can specify a single virtual node or virtual router. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualservicespec.html#cfn-appmesh-virtualservice-virtualservicespec-provider // Provider interface{} `field:"optional" json:"provider" yaml:"provider"` }
An object that represents the specification of a virtual service.
Example:
// 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" virtualServiceSpecProperty := &VirtualServiceSpecProperty{ Provider: &VirtualServiceProviderProperty{ VirtualNode: &VirtualNodeServiceProviderProperty{ VirtualNodeName: jsii.String("virtualNodeName"), }, VirtualRouter: &VirtualRouterServiceProviderProperty{ VirtualRouterName: jsii.String("virtualRouterName"), }, }, }
type CommonGatewayRouteSpecOptions ¶ added in v2.2.0
type CommonGatewayRouteSpecOptions struct { // The priority for the gateway route. // // When a Virtual Gateway has multiple gateway routes, gateway route match // is performed in the order of specified value, where 0 is the highest priority, // and first matched gateway route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` }
Base options for all gateway route specs.
Example:
// 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" commonGatewayRouteSpecOptions := &CommonGatewayRouteSpecOptions{ Priority: jsii.Number(123), }
type DnsResponseType ¶
type DnsResponseType string
Enum of DNS service discovery response type.
Example:
// A Virtual Node with a gRPC listener with a connection pool set var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS. // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints, // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints. // By default, the response type is assumed to be LOAD_BALANCER ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node"), appmesh.DnsResponseType_ENDPOINTS), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(80), ConnectionPool: &HttpConnectionPool{ MaxConnections: jsii.Number(100), MaxPendingRequests: jsii.Number(10), }, }), }, }) // A Virtual Gateway with a gRPC listener with a connection pool set gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), ConnectionPool: &GrpcConnectionPool{ MaxRequests: jsii.Number(10), }, }), }, VirtualGatewayName: jsii.String("gateway"), })
const ( // DNS resolver returns a loadbalanced set of endpoints and the traffic would be sent to the given endpoints. // // It would not drain existing connections to other endpoints that are not part of this list. DnsResponseType_LOAD_BALANCER DnsResponseType = "LOAD_BALANCER" // DNS resolver is returning all the endpoints. // // This also means that if an endpoint is missing, it would drain the current connections to the missing endpoint. DnsResponseType_ENDPOINTS DnsResponseType = "ENDPOINTS" )
type GatewayRoute ¶
type GatewayRoute interface { awscdk.Resource IGatewayRoute // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment // The Amazon Resource Name (ARN) for the GatewayRoute. GatewayRouteArn() *string // The name of the GatewayRoute. GatewayRouteName() *string // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // The VirtualGateway this GatewayRoute is a part of. VirtualGateway() IVirtualGateway // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Returns a string representation of this construct. ToString() *string }
GatewayRoute represents a new or existing gateway route attached to a VirtualGateway and Mesh.
Example:
// 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" var gatewayRouteSpec gatewayRouteSpec var virtualGateway virtualGateway gatewayRoute := awscdk.Aws_appmesh.NewGatewayRoute(this, jsii.String("MyGatewayRoute"), &GatewayRouteProps{ RouteSpec: gatewayRouteSpec, VirtualGateway: virtualGateway, // the properties below are optional GatewayRouteName: jsii.String("gatewayRouteName"), })
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/gateway-routes.html
func NewGatewayRoute ¶
func NewGatewayRoute(scope constructs.Construct, id *string, props *GatewayRouteProps) GatewayRoute
type GatewayRouteAttributes ¶
type GatewayRouteAttributes struct { // The name of the GatewayRoute. GatewayRouteName *string `field:"required" json:"gatewayRouteName" yaml:"gatewayRouteName"` // The VirtualGateway this GatewayRoute is associated with. VirtualGateway IVirtualGateway `field:"required" json:"virtualGateway" yaml:"virtualGateway"` }
Interface with properties necessary to import a reusable GatewayRoute.
Example:
// 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" var virtualGateway virtualGateway gatewayRouteAttributes := &GatewayRouteAttributes{ GatewayRouteName: jsii.String("gatewayRouteName"), VirtualGateway: virtualGateway, }
type GatewayRouteBaseProps ¶
type GatewayRouteBaseProps struct { // What protocol the route uses. RouteSpec GatewayRouteSpec `field:"required" json:"routeSpec" yaml:"routeSpec"` // The name of the GatewayRoute. // Default: - an automatically generated name. // GatewayRouteName *string `field:"optional" json:"gatewayRouteName" yaml:"gatewayRouteName"` }
Basic configuration properties for a GatewayRoute.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-grpc"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Grpc(&GrpcGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &GrpcGatewayRouteMatch{ Hostname: appmesh.GatewayRouteHostnameMatch_Exactly(jsii.String("example.com")), // This disables the default rewrite to virtual service name and retain original request. RewriteRequestHostname: jsii.Boolean(false), }, }), })
type GatewayRouteHostnameMatch ¶
type GatewayRouteHostnameMatch interface { // Returns the gateway route host name match configuration. Bind(scope constructs.Construct) *GatewayRouteHostnameMatchConfig }
Used to generate host name matching methods.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-grpc"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Grpc(&GrpcGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &GrpcGatewayRouteMatch{ Hostname: appmesh.GatewayRouteHostnameMatch_EndsWith(jsii.String(".example.com")), }, }), })
func GatewayRouteHostnameMatch_EndsWith ¶
func GatewayRouteHostnameMatch_EndsWith(suffix *string) GatewayRouteHostnameMatch
The value of the host name with the given name must end with the specified characters.
func GatewayRouteHostnameMatch_Exactly ¶
func GatewayRouteHostnameMatch_Exactly(name *string) GatewayRouteHostnameMatch
The value of the host name must match the specified value exactly.
type GatewayRouteHostnameMatchConfig ¶
type GatewayRouteHostnameMatchConfig struct { // GatewayRoute CFN configuration for host name match. HostnameMatch *CfnGatewayRoute_GatewayRouteHostnameMatchProperty `field:"required" json:"hostnameMatch" yaml:"hostnameMatch"` }
Configuration for gateway route host name match.
Example:
// 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" gatewayRouteHostnameMatchConfig := &GatewayRouteHostnameMatchConfig{ HostnameMatch: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, }
type GatewayRouteProps ¶
type GatewayRouteProps struct { // What protocol the route uses. RouteSpec GatewayRouteSpec `field:"required" json:"routeSpec" yaml:"routeSpec"` // The name of the GatewayRoute. // Default: - an automatically generated name. // GatewayRouteName *string `field:"optional" json:"gatewayRouteName" yaml:"gatewayRouteName"` // The VirtualGateway this GatewayRoute is associated with. VirtualGateway IVirtualGateway `field:"required" json:"virtualGateway" yaml:"virtualGateway"` }
Properties to define a new GatewayRoute.
Example:
// 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" var gatewayRouteSpec gatewayRouteSpec var virtualGateway virtualGateway gatewayRouteProps := &GatewayRouteProps{ RouteSpec: gatewayRouteSpec, VirtualGateway: virtualGateway, // the properties below are optional GatewayRouteName: jsii.String("gatewayRouteName"), }
type GatewayRouteSpec ¶
type GatewayRouteSpec interface { // Called when the GatewayRouteSpec type is initialized. // // Can be used to enforce // mutual exclusivity with future properties. Bind(scope constructs.Construct) *GatewayRouteSpecConfig }
Used to generate specs with different protocols for a GatewayRoute.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-grpc"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Grpc(&GrpcGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &GrpcGatewayRouteMatch{ Hostname: appmesh.GatewayRouteHostnameMatch_Exactly(jsii.String("example.com")), // This disables the default rewrite to virtual service name and retain original request. RewriteRequestHostname: jsii.Boolean(false), }, }), })
func GatewayRouteSpec_Grpc ¶
func GatewayRouteSpec_Grpc(options *GrpcGatewayRouteSpecOptions) GatewayRouteSpec
Creates an gRPC Based GatewayRoute.
func GatewayRouteSpec_Http ¶
func GatewayRouteSpec_Http(options *HttpGatewayRouteSpecOptions) GatewayRouteSpec
Creates an HTTP Based GatewayRoute.
func GatewayRouteSpec_Http2 ¶
func GatewayRouteSpec_Http2(options *HttpGatewayRouteSpecOptions) GatewayRouteSpec
Creates an HTTP2 Based GatewayRoute.
type GatewayRouteSpecConfig ¶
type GatewayRouteSpecConfig struct { // The spec for a grpc gateway route. // Default: - no grpc spec. // GrpcSpecConfig *CfnGatewayRoute_GrpcGatewayRouteProperty `field:"optional" json:"grpcSpecConfig" yaml:"grpcSpecConfig"` // The spec for an http2 gateway route. // Default: - no http2 spec. // Http2SpecConfig *CfnGatewayRoute_HttpGatewayRouteProperty `field:"optional" json:"http2SpecConfig" yaml:"http2SpecConfig"` // The spec for an http gateway route. // Default: - no http spec. // HttpSpecConfig *CfnGatewayRoute_HttpGatewayRouteProperty `field:"optional" json:"httpSpecConfig" yaml:"httpSpecConfig"` // The priority for the gateway route. // // When a Virtual Gateway has multiple gateway routes, gateway route match // is performed in the order of specified value, where 0 is the highest priority, // and first matched gateway route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` }
All Properties for GatewayRoute Specs.
Example:
// 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" gatewayRouteSpecConfig := &GatewayRouteSpecConfig{ GrpcSpecConfig: &GrpcGatewayRouteProperty{ Action: &GrpcGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &GrpcGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, }, }, Match: &GrpcGatewayRouteMatchProperty{ Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Metadata: []interface{}{ &GrpcGatewayRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GatewayRouteMetadataMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, }, Http2SpecConfig: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, HttpSpecConfig: &HttpGatewayRouteProperty{ Action: &HttpGatewayRouteActionProperty{ Target: &GatewayRouteTargetProperty{ VirtualService: &GatewayRouteVirtualServiceProperty{ VirtualServiceName: jsii.String("virtualServiceName"), }, // the properties below are optional Port: jsii.Number(123), }, // the properties below are optional Rewrite: &HttpGatewayRouteRewriteProperty{ Hostname: &GatewayRouteHostnameRewriteProperty{ DefaultTargetHostname: jsii.String("defaultTargetHostname"), }, Path: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, Prefix: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, }, }, Match: &HttpGatewayRouteMatchProperty{ Headers: []interface{}{ &HttpGatewayRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HttpGatewayRouteHeaderMatchProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &GatewayRouteRangeMatchProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Hostname: &GatewayRouteHostnameMatchProperty{ Exact: jsii.String("exact"), Suffix: jsii.String("suffix"), }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, }, }, Priority: jsii.Number(123), }
type GrpcConnectionPool ¶
type GrpcConnectionPool struct { // The maximum requests in the pool. // Default: - none. // MaxRequests *float64 `field:"required" json:"maxRequests" yaml:"maxRequests"` }
Connection pool properties for gRPC listeners.
Example:
// A Virtual Node with a gRPC listener with a connection pool set var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS. // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints, // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints. // By default, the response type is assumed to be LOAD_BALANCER ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node"), appmesh.DnsResponseType_ENDPOINTS), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(80), ConnectionPool: &HttpConnectionPool{ MaxConnections: jsii.Number(100), MaxPendingRequests: jsii.Number(10), }, }), }, }) // A Virtual Gateway with a gRPC listener with a connection pool set gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), ConnectionPool: &GrpcConnectionPool{ MaxRequests: jsii.Number(10), }, }), }, VirtualGatewayName: jsii.String("gateway"), })
type GrpcGatewayListenerOptions ¶
type GrpcGatewayListenerOptions struct { // Connection pool for http listeners. // Default: - None. // ConnectionPool *GrpcConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represents the properties needed to define GRPC Listeners for a VirtualGateway.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate var cert certificate var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Acm(cert), }, }), }, }) // A Virtual Gateway with listener TLS from a customer provided file certificate gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), }, }), }, VirtualGatewayName: jsii.String("gateway"), }) // A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 := appmesh.NewVirtualGateway(this, jsii.String("gateway2"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []*virtualGatewayListener{ appmesh.*virtualGatewayListener_Http2(&Http2GatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Sds(jsii.String("secrete_certificate")), }, }), }, VirtualGatewayName: jsii.String("gateway2"), })
type GrpcGatewayRouteMatch ¶
type GrpcGatewayRouteMatch struct { // Create host name based gRPC gateway route match. // Default: - no matching on host name. // Hostname GatewayRouteHostnameMatch `field:"optional" json:"hostname" yaml:"hostname"` // Create metadata based gRPC gateway route match. // // All specified metadata must match for the route to match. // Default: - no matching on metadata. // Metadata *[]HeaderMatch `field:"optional" json:"metadata" yaml:"metadata"` // The port to match from the request. // Default: - do not match on port. // Port *float64 `field:"optional" json:"port" yaml:"port"` // When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name. // // When `false`, retains the original hostname from the request. // Default: true. // RewriteRequestHostname *bool `field:"optional" json:"rewriteRequestHostname" yaml:"rewriteRequestHostname"` // Create service name based gRPC gateway route match. // Default: - no matching on service name. // ServiceName *string `field:"optional" json:"serviceName" yaml:"serviceName"` }
The criterion for determining a request match for this GatewayRoute.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-grpc"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Grpc(&GrpcGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &GrpcGatewayRouteMatch{ Hostname: appmesh.GatewayRouteHostnameMatch_EndsWith(jsii.String(".example.com")), }, }), })
type GrpcGatewayRouteSpecOptions ¶
type GrpcGatewayRouteSpecOptions struct { // The priority for the gateway route. // // When a Virtual Gateway has multiple gateway routes, gateway route match // is performed in the order of specified value, where 0 is the highest priority, // and first matched gateway route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // The criterion for determining a request match for this GatewayRoute. Match *GrpcGatewayRouteMatch `field:"required" json:"match" yaml:"match"` // The VirtualService this GatewayRoute directs traffic to. RouteTarget IVirtualService `field:"required" json:"routeTarget" yaml:"routeTarget"` }
Properties specific for a gRPC GatewayRoute.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-grpc"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Grpc(&GrpcGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &GrpcGatewayRouteMatch{ Hostname: appmesh.GatewayRouteHostnameMatch_EndsWith(jsii.String(".example.com")), }, }), })
type GrpcHealthCheckOptions ¶
type GrpcHealthCheckOptions struct { // The number of consecutive successful health checks that must occur before declaring listener healthy. // Default: 2. // HealthyThreshold *float64 `field:"optional" json:"healthyThreshold" yaml:"healthyThreshold"` // The time period between each health check execution. // Default: Duration.seconds(5) // Interval awscdk.Duration `field:"optional" json:"interval" yaml:"interval"` // The amount of time to wait when receiving a response from the health check. // Default: Duration.seconds(2) // Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The number of consecutive failed health checks that must occur before declaring a listener unhealthy. // Default: - 2. // UnhealthyThreshold *float64 `field:"optional" json:"unhealthyThreshold" yaml:"unhealthyThreshold"` }
Properties used to define GRPC Based healthchecks.
Example:
// 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" import "github.com/aws/aws-cdk-go/awscdk" grpcHealthCheckOptions := &GrpcHealthCheckOptions{ HealthyThreshold: jsii.Number(123), Interval: cdk.Duration_Minutes(jsii.Number(30)), Timeout: cdk.Duration_*Minutes(jsii.Number(30)), UnhealthyThreshold: jsii.Number(123), }
type GrpcRetryEvent ¶
type GrpcRetryEvent string
gRPC events.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-grpc-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Grpc(&GrpcRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &GrpcRouteMatch{ ServiceName: jsii.String("servicename"), }, RetryPolicy: &GrpcRetryPolicy{ TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry if gRPC responds that the request was cancelled, a resource // was exhausted, or if the service is unavailable GrpcRetryEvents: []grpcRetryEvent{ appmesh.*grpcRetryEvent_CANCELLED, appmesh.*grpcRetryEvent_RESOURCE_EXHAUSTED, appmesh.*grpcRetryEvent_UNAVAILABLE, }, RetryAttempts: jsii.Number(5), RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
const ( // Request was cancelled. // See: https://grpc.github.io/grpc/core/md_doc_statuscodes.html // GrpcRetryEvent_CANCELLED GrpcRetryEvent = "CANCELLED" // The deadline was exceeded. // See: https://grpc.github.io/grpc/core/md_doc_statuscodes.html // GrpcRetryEvent_DEADLINE_EXCEEDED GrpcRetryEvent = "DEADLINE_EXCEEDED" // Internal error. // See: https://grpc.github.io/grpc/core/md_doc_statuscodes.html // GrpcRetryEvent_INTERNAL_ERROR GrpcRetryEvent = "INTERNAL_ERROR" // A resource was exhausted. // See: https://grpc.github.io/grpc/core/md_doc_statuscodes.html // GrpcRetryEvent_RESOURCE_EXHAUSTED GrpcRetryEvent = "RESOURCE_EXHAUSTED" // The service is unavailable. // See: https://grpc.github.io/grpc/core/md_doc_statuscodes.html // GrpcRetryEvent_UNAVAILABLE GrpcRetryEvent = "UNAVAILABLE" )
type GrpcRetryPolicy ¶
type GrpcRetryPolicy struct { // The maximum number of retry attempts. RetryAttempts *float64 `field:"required" json:"retryAttempts" yaml:"retryAttempts"` // The timeout for each retry attempt. RetryTimeout awscdk.Duration `field:"required" json:"retryTimeout" yaml:"retryTimeout"` // Specify HTTP events on which to retry. // // You must specify at least one value // for at least one types of retry events. // Default: - no retries for http events. // HttpRetryEvents *[]HttpRetryEvent `field:"optional" json:"httpRetryEvents" yaml:"httpRetryEvents"` // TCP events on which to retry. // // The event occurs before any processing of a // request has started and is encountered when the upstream is temporarily or // permanently unavailable. You must specify at least one value for at least // one types of retry events. // Default: - no retries for tcp events. // TcpRetryEvents *[]TcpRetryEvent `field:"optional" json:"tcpRetryEvents" yaml:"tcpRetryEvents"` // gRPC events on which to retry. // // You must specify at least one value // for at least one types of retry events. // Default: - no retries for gRPC events. // GrpcRetryEvents *[]GrpcRetryEvent `field:"optional" json:"grpcRetryEvents" yaml:"grpcRetryEvents"` }
gRPC retry policy.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-grpc-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Grpc(&GrpcRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &GrpcRouteMatch{ ServiceName: jsii.String("servicename"), }, RetryPolicy: &GrpcRetryPolicy{ TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry if gRPC responds that the request was cancelled, a resource // was exhausted, or if the service is unavailable GrpcRetryEvents: []grpcRetryEvent{ appmesh.*grpcRetryEvent_CANCELLED, appmesh.*grpcRetryEvent_RESOURCE_EXHAUSTED, appmesh.*grpcRetryEvent_UNAVAILABLE, }, RetryAttempts: jsii.Number(5), RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
type GrpcRouteMatch ¶
type GrpcRouteMatch struct { // Create metadata based gRPC route match. // // All specified metadata must match for the route to match. // Default: - do not match on metadata. // Metadata *[]HeaderMatch `field:"optional" json:"metadata" yaml:"metadata"` // The method name to match from the request. // // If the method name is specified, service name must be also provided. // Default: - do not match on method name. // MethodName *string `field:"optional" json:"methodName" yaml:"methodName"` // The port to match from the request. // Default: - do not match on port. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Create service name based gRPC route match. // Default: - do not match on service name. // ServiceName *string `field:"optional" json:"serviceName" yaml:"serviceName"` }
The criterion for determining a request match for this Route.
At least one match type must be selected.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-grpc-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Grpc(&GrpcRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &GrpcRouteMatch{ // When method name is specified, service name must be also specified. MethodName: jsii.String("methodname"), ServiceName: jsii.String("servicename"), Metadata: []headerMatch{ appmesh.*headerMatch_ValueStartsWith(jsii.String("Content-Type"), jsii.String("application/")), appmesh.*headerMatch_ValueDoesNotStartWith(jsii.String("Content-Type"), jsii.String("text/")), }, }, }), })
type GrpcRouteSpecOptions ¶
type GrpcRouteSpecOptions struct { // The priority for the route. // // When a Virtual Router has multiple routes, route match is performed in the // order of specified value, where 0 is the highest priority, and first matched route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // The criterion for determining a request match for this Route. Match *GrpcRouteMatch `field:"required" json:"match" yaml:"match"` // List of targets that traffic is routed to when a request matches the route. WeightedTargets *[]*WeightedTarget `field:"required" json:"weightedTargets" yaml:"weightedTargets"` // The retry policy. // Default: - no retry policy. // RetryPolicy *GrpcRetryPolicy `field:"optional" json:"retryPolicy" yaml:"retryPolicy"` // An object that represents a grpc timeout. // Default: - None. // Timeout *GrpcTimeout `field:"optional" json:"timeout" yaml:"timeout"` }
Properties specific for a GRPC Based Routes.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-grpc-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Grpc(&GrpcRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &GrpcRouteMatch{ // When method name is specified, service name must be also specified. MethodName: jsii.String("methodname"), ServiceName: jsii.String("servicename"), Metadata: []headerMatch{ appmesh.*headerMatch_ValueStartsWith(jsii.String("Content-Type"), jsii.String("application/")), appmesh.*headerMatch_ValueDoesNotStartWith(jsii.String("Content-Type"), jsii.String("text/")), }, }, }), })
type GrpcTimeout ¶
type GrpcTimeout struct { // Represents an idle timeout. // // The amount of time that a connection may be idle. // Default: - none. // Idle awscdk.Duration `field:"optional" json:"idle" yaml:"idle"` // Represents per request timeout. // Default: - 15 s. // PerRequest awscdk.Duration `field:"optional" json:"perRequest" yaml:"perRequest"` }
Represents timeouts for GRPC protocols.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Grpc(&GrpcRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &GrpcRouteMatch{ ServiceName: jsii.String("my-service.default.svc.cluster.local"), }, Timeout: &GrpcTimeout{ Idle: awscdk.Duration_Seconds(jsii.Number(2)), PerRequest: awscdk.Duration_*Seconds(jsii.Number(1)), }, }), })
type GrpcVirtualNodeListenerOptions ¶
type GrpcVirtualNodeListenerOptions struct { // Connection pool for http listeners. // Default: - None. // ConnectionPool *GrpcConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Represents the configuration for enabling outlier detection. // Default: - none. // OutlierDetection *OutlierDetection `field:"optional" json:"outlierDetection" yaml:"outlierDetection"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Timeout for GRPC protocol. // Default: - None. // Timeout *GrpcTimeout `field:"optional" json:"timeout" yaml:"timeout"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represent the GRPC Node Listener property.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate var cert certificate var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Acm(cert), }, }), }, }) // A Virtual Gateway with listener TLS from a customer provided file certificate gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), }, }), }, VirtualGatewayName: jsii.String("gateway"), }) // A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 := appmesh.NewVirtualGateway(this, jsii.String("gateway2"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []*virtualGatewayListener{ appmesh.*virtualGatewayListener_Http2(&Http2GatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Sds(jsii.String("secrete_certificate")), }, }), }, VirtualGatewayName: jsii.String("gateway2"), })
type HeaderMatch ¶
type HeaderMatch interface { // Returns the header match configuration. Bind(scope constructs.Construct) *HeaderMatchConfig }
Used to generate header matching methods.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &HttpRouteMatch{ Path: appmesh.HttpRoutePathMatch_Exactly(jsii.String("/exact")), Method: appmesh.HttpRouteMethod_POST, Protocol: appmesh.HttpRouteProtocol_HTTPS, Headers: []headerMatch{ appmesh.*headerMatch_ValueIs(jsii.String("Content-Type"), jsii.String("application/json")), appmesh.*headerMatch_ValueIsNot(jsii.String("Content-Type"), jsii.String("application/json")), }, QueryParameters: []queryParameterMatch{ appmesh.*queryParameterMatch_ValueIs(jsii.String("query-field"), jsii.String("value")), }, }, }), })
func HeaderMatch_ValueDoesNotEndWith ¶
func HeaderMatch_ValueDoesNotEndWith(headerName *string, suffix *string) HeaderMatch
The value of the header with the given name in the request must not end with the specified characters.
func HeaderMatch_ValueDoesNotMatchRegex ¶
func HeaderMatch_ValueDoesNotMatchRegex(headerName *string, regex *string) HeaderMatch
The value of the header with the given name in the request must not include the specified characters.
func HeaderMatch_ValueDoesNotStartWith ¶
func HeaderMatch_ValueDoesNotStartWith(headerName *string, prefix *string) HeaderMatch
The value of the header with the given name in the request must not start with the specified characters.
func HeaderMatch_ValueEndsWith ¶
func HeaderMatch_ValueEndsWith(headerName *string, suffix *string) HeaderMatch
The value of the header with the given name in the request must end with the specified characters.
func HeaderMatch_ValueIs ¶
func HeaderMatch_ValueIs(headerName *string, headerValue *string) HeaderMatch
The value of the header with the given name in the request must match the specified value exactly.
func HeaderMatch_ValueIsNot ¶
func HeaderMatch_ValueIsNot(headerName *string, headerValue *string) HeaderMatch
The value of the header with the given name in the request must not match the specified value exactly.
func HeaderMatch_ValueMatchesRegex ¶
func HeaderMatch_ValueMatchesRegex(headerName *string, regex *string) HeaderMatch
The value of the header with the given name in the request must include the specified characters.
func HeaderMatch_ValueStartsWith ¶
func HeaderMatch_ValueStartsWith(headerName *string, prefix *string) HeaderMatch
The value of the header with the given name in the request must start with the specified characters.
func HeaderMatch_ValuesIsInRange ¶
func HeaderMatch_ValuesIsInRange(headerName *string, start *float64, end *float64) HeaderMatch
The value of the header with the given name in the request must be in a range of values.
func HeaderMatch_ValuesIsNotInRange ¶
func HeaderMatch_ValuesIsNotInRange(headerName *string, start *float64, end *float64) HeaderMatch
The value of the header with the given name in the request must not be in a range of values.
type HeaderMatchConfig ¶
type HeaderMatchConfig struct { // Route CFN configuration for the route header match. HeaderMatch *CfnRoute_HttpRouteHeaderProperty `field:"required" json:"headerMatch" yaml:"headerMatch"` }
Configuration for `HeaderMatch`.
Example:
// 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" headerMatchConfig := &HeaderMatchConfig{ HeaderMatch: &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }
type HealthCheck ¶
type HealthCheck interface { // Called when the AccessLog type is initialized. // // Can be used to enforce // mutual exclusivity with future properties. Bind(scope constructs.Construct, options *HealthCheckBindOptions) *HealthCheckConfig }
Contains static factory methods for creating health checks for different protocols.
Example:
var mesh mesh vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8081), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), // minimum Path: jsii.String("/health-check-path"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), // minimum UnhealthyThreshold: jsii.Number(2), }), }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), })
func HealthCheck_Grpc ¶
func HealthCheck_Grpc(options *GrpcHealthCheckOptions) HealthCheck
Construct a GRPC health check.
func HealthCheck_Http ¶
func HealthCheck_Http(options *HttpHealthCheckOptions) HealthCheck
Construct a HTTP health check.
func HealthCheck_Http2 ¶
func HealthCheck_Http2(options *HttpHealthCheckOptions) HealthCheck
Construct a HTTP2 health check.
func HealthCheck_Tcp ¶
func HealthCheck_Tcp(options *TcpHealthCheckOptions) HealthCheck
Construct a TCP health check.
type HealthCheckBindOptions ¶
type HealthCheckBindOptions struct { // Port for Health Check interface. // Default: - no default port is provided. // DefaultPort *float64 `field:"optional" json:"defaultPort" yaml:"defaultPort"` }
Options used for creating the Health Check object.
Example:
// 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" healthCheckBindOptions := &HealthCheckBindOptions{ DefaultPort: jsii.Number(123), }
type HealthCheckConfig ¶
type HealthCheckConfig struct { // VirtualGateway CFN configuration for Health Checks. // Default: - no health checks. // VirtualGatewayHealthCheck *CfnVirtualGateway_VirtualGatewayHealthCheckPolicyProperty `field:"optional" json:"virtualGatewayHealthCheck" yaml:"virtualGatewayHealthCheck"` // VirtualNode CFN configuration for Health Checks. // Default: - no health checks. // VirtualNodeHealthCheck *CfnVirtualNode_HealthCheckProperty `field:"optional" json:"virtualNodeHealthCheck" yaml:"virtualNodeHealthCheck"` }
All Properties for Health Checks for mesh endpoints.
Example:
// 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" healthCheckConfig := &HealthCheckConfig{ VirtualGatewayHealthCheck: &VirtualGatewayHealthCheckPolicyProperty{ 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), }, VirtualNodeHealthCheck: &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), }, }
type Http2ConnectionPool ¶
type Http2ConnectionPool struct { // The maximum requests in the pool. // Default: - none. // MaxRequests *float64 `field:"required" json:"maxRequests" yaml:"maxRequests"` }
Connection pool properties for HTTP2 listeners.
Example:
// 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" http2ConnectionPool := &Http2ConnectionPool{ MaxRequests: jsii.Number(123), }
type Http2GatewayListenerOptions ¶
type Http2GatewayListenerOptions struct { // Connection pool for http listeners. // Default: - None. // ConnectionPool *Http2ConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represents the properties needed to define HTTP2 Listeners for a VirtualGateway.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate var cert certificate var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Acm(cert), }, }), }, }) // A Virtual Gateway with listener TLS from a customer provided file certificate gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), }, }), }, VirtualGatewayName: jsii.String("gateway"), }) // A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 := appmesh.NewVirtualGateway(this, jsii.String("gateway2"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []*virtualGatewayListener{ appmesh.*virtualGatewayListener_Http2(&Http2GatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Sds(jsii.String("secrete_certificate")), }, }), }, VirtualGatewayName: jsii.String("gateway2"), })
type Http2VirtualNodeListenerOptions ¶
type Http2VirtualNodeListenerOptions struct { // Connection pool for http2 listeners. // Default: - None. // ConnectionPool *Http2ConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Represents the configuration for enabling outlier detection. // Default: - none. // OutlierDetection *OutlierDetection `field:"optional" json:"outlierDetection" yaml:"outlierDetection"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Timeout for HTTP protocol. // Default: - None. // Timeout *HttpTimeout `field:"optional" json:"timeout" yaml:"timeout"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represent the HTTP2 Node Listener property.
Example:
// 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" import "github.com/aws/aws-cdk-go/awscdk" var healthCheck healthCheck var mutualTlsValidationTrust mutualTlsValidationTrust var subjectAlternativeNames subjectAlternativeNames var tlsCertificate tlsCertificate http2VirtualNodeListenerOptions := &Http2VirtualNodeListenerOptions{ ConnectionPool: &Http2ConnectionPool{ MaxRequests: jsii.Number(123), }, HealthCheck: healthCheck, OutlierDetection: &OutlierDetection{ BaseEjectionDuration: cdk.Duration_Minutes(jsii.Number(30)), Interval: cdk.Duration_*Minutes(jsii.Number(30)), MaxEjectionPercent: jsii.Number(123), MaxServerErrors: jsii.Number(123), }, Port: jsii.Number(123), Timeout: &HttpTimeout{ Idle: cdk.Duration_*Minutes(jsii.Number(30)), PerRequest: cdk.Duration_*Minutes(jsii.Number(30)), }, Tls: &ListenerTlsOptions{ Certificate: tlsCertificate, Mode: awscdk.Aws_appmesh.TlsMode_STRICT, // the properties below are optional MutualTlsValidation: &MutualTlsValidation{ Trust: mutualTlsValidationTrust, // the properties below are optional SubjectAlternativeNames: subjectAlternativeNames, }, }, }
type HttpConnectionPool ¶
type HttpConnectionPool struct { // The maximum connections in the pool. // Default: - none. // MaxConnections *float64 `field:"required" json:"maxConnections" yaml:"maxConnections"` // The maximum pending requests in the pool. // Default: - none. // MaxPendingRequests *float64 `field:"required" json:"maxPendingRequests" yaml:"maxPendingRequests"` }
Connection pool properties for HTTP listeners.
Example:
// A Virtual Node with a gRPC listener with a connection pool set var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS. // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints, // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints. // By default, the response type is assumed to be LOAD_BALANCER ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node"), appmesh.DnsResponseType_ENDPOINTS), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(80), ConnectionPool: &HttpConnectionPool{ MaxConnections: jsii.Number(100), MaxPendingRequests: jsii.Number(10), }, }), }, }) // A Virtual Gateway with a gRPC listener with a connection pool set gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), ConnectionPool: &GrpcConnectionPool{ MaxRequests: jsii.Number(10), }, }), }, VirtualGatewayName: jsii.String("gateway"), })
type HttpGatewayListenerOptions ¶
type HttpGatewayListenerOptions struct { // Connection pool for http listeners. // Default: - None. // ConnectionPool *HttpConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represents the properties needed to define HTTP Listeners for a VirtualGateway.
Example:
var mesh mesh certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Http(&HttpGatewayListenerOptions{ Port: jsii.Number(443), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ Interval: awscdk.Duration_Seconds(jsii.Number(10)), }), }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), VirtualGatewayName: jsii.String("virtualGateway"), })
type HttpGatewayRouteMatch ¶
type HttpGatewayRouteMatch struct { // Specifies the client request headers to match on. // // All specified headers // must match for the gateway route to match. // Default: - do not match on headers. // Headers *[]HeaderMatch `field:"optional" json:"headers" yaml:"headers"` // The gateway route host name to be matched on. // Default: - do not match on host name. // Hostname GatewayRouteHostnameMatch `field:"optional" json:"hostname" yaml:"hostname"` // The method to match on. // Default: - do not match on method. // Method HttpRouteMethod `field:"optional" json:"method" yaml:"method"` // Specify how to match requests based on the 'path' part of their URL. // Default: - matches requests with any path. // Path HttpGatewayRoutePathMatch `field:"optional" json:"path" yaml:"path"` // The port number to match on. // Default: - no default port. // Port *float64 `field:"optional" json:"port" yaml:"port"` // The query parameters to match on. // // All specified query parameters must match for the route to match. // Default: - do not match on query parameters. // QueryParameters *[]QueryParameterMatch `field:"optional" json:"queryParameters" yaml:"queryParameters"` // When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name. // // When `false`, retains the original hostname from the request. // Default: true. // RewriteRequestHostname *bool `field:"optional" json:"rewriteRequestHostname" yaml:"rewriteRequestHostname"` }
The criterion for determining a request match for this GatewayRoute.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-http-2"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Http(&HttpGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &HttpGatewayRouteMatch{ // This rewrites the path from '/test' to '/rewrittenPath'. Path: appmesh.HttpGatewayRoutePathMatch_Exactly(jsii.String("/test"), jsii.String("/rewrittenPath")), }, }), })
type HttpGatewayRoutePathMatch ¶
type HttpGatewayRoutePathMatch interface { // Returns the gateway route path match configuration. Bind(scope constructs.Construct) *HttpGatewayRoutePathMatchConfig }
Defines HTTP gateway route matching based on the URL path of the request.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-http-2"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Http(&HttpGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &HttpGatewayRouteMatch{ // This rewrites the path from '/test' to '/rewrittenPath'. Path: appmesh.HttpGatewayRoutePathMatch_Exactly(jsii.String("/test"), jsii.String("/rewrittenPath")), }, }), })
func HttpGatewayRoutePathMatch_Exactly ¶
func HttpGatewayRoutePathMatch_Exactly(path *string, rewriteTo *string) HttpGatewayRoutePathMatch
The value of the path must match the specified value exactly.
The provided `path` must start with the '/' character.
func HttpGatewayRoutePathMatch_Regex ¶
func HttpGatewayRoutePathMatch_Regex(regex *string, rewriteTo *string) HttpGatewayRoutePathMatch
The value of the path must match the specified regex.
func HttpGatewayRoutePathMatch_StartsWith ¶
func HttpGatewayRoutePathMatch_StartsWith(prefix *string, rewriteTo *string) HttpGatewayRoutePathMatch
The value of the path must match the specified prefix.
type HttpGatewayRoutePathMatchConfig ¶
type HttpGatewayRoutePathMatchConfig struct { // Gateway route configuration for matching on the prefix of the URL path of the request. // Default: - no matching will be performed on the prefix of the URL path. // PrefixPathMatch *string `field:"optional" json:"prefixPathMatch" yaml:"prefixPathMatch"` // Gateway route configuration for rewriting the prefix of the URL path of the request. // Default: - rewrites the request's URL path to '/'. // PrefixPathRewrite *CfnGatewayRoute_HttpGatewayRoutePrefixRewriteProperty `field:"optional" json:"prefixPathRewrite" yaml:"prefixPathRewrite"` // Gateway route configuration for matching on the complete URL path of the request. // Default: - no matching will be performed on the complete URL path. // WholePathMatch *CfnGatewayRoute_HttpPathMatchProperty `field:"optional" json:"wholePathMatch" yaml:"wholePathMatch"` // Gateway route configuration for rewriting the complete URL path of the request.. // Default: - no rewrite will be performed on the request's complete URL path. // WholePathRewrite *CfnGatewayRoute_HttpGatewayRoutePathRewriteProperty `field:"optional" json:"wholePathRewrite" yaml:"wholePathRewrite"` }
The type returned from the `bind()` method in `HttpGatewayRoutePathMatch`.
Example:
// 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" httpGatewayRoutePathMatchConfig := &HttpGatewayRoutePathMatchConfig{ PrefixPathMatch: jsii.String("prefixPathMatch"), PrefixPathRewrite: &HttpGatewayRoutePrefixRewriteProperty{ DefaultPrefix: jsii.String("defaultPrefix"), Value: jsii.String("value"), }, WholePathMatch: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, WholePathRewrite: &HttpGatewayRoutePathRewriteProperty{ Exact: jsii.String("exact"), }, }
type HttpGatewayRouteSpecOptions ¶
type HttpGatewayRouteSpecOptions struct { // The priority for the gateway route. // // When a Virtual Gateway has multiple gateway routes, gateway route match // is performed in the order of specified value, where 0 is the highest priority, // and first matched gateway route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // The VirtualService this GatewayRoute directs traffic to. RouteTarget IVirtualService `field:"required" json:"routeTarget" yaml:"routeTarget"` // The criterion for determining a request match for this GatewayRoute. // // When path match is defined, this may optionally determine the path rewrite configuration. // Default: - matches any path and automatically rewrites the path to '/'. // Match *HttpGatewayRouteMatch `field:"optional" json:"match" yaml:"match"` }
Properties specific for HTTP Based GatewayRoutes.
Example:
var gateway virtualGateway var virtualService virtualService gateway.addGatewayRoute(jsii.String("gateway-route-http-2"), &GatewayRouteBaseProps{ RouteSpec: appmesh.GatewayRouteSpec_Http(&HttpGatewayRouteSpecOptions{ RouteTarget: virtualService, Match: &HttpGatewayRouteMatch{ // This rewrites the path from '/test' to '/rewrittenPath'. Path: appmesh.HttpGatewayRoutePathMatch_Exactly(jsii.String("/test"), jsii.String("/rewrittenPath")), }, }), })
type HttpHealthCheckOptions ¶
type HttpHealthCheckOptions struct { // The number of consecutive successful health checks that must occur before declaring listener healthy. // Default: 2. // HealthyThreshold *float64 `field:"optional" json:"healthyThreshold" yaml:"healthyThreshold"` // The time period between each health check execution. // Default: Duration.seconds(5) // Interval awscdk.Duration `field:"optional" json:"interval" yaml:"interval"` // The destination path for the health check request. // Default: /. // Path *string `field:"optional" json:"path" yaml:"path"` // The amount of time to wait when receiving a response from the health check. // Default: Duration.seconds(2) // Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The number of consecutive failed health checks that must occur before declaring a listener unhealthy. // Default: - 2. // UnhealthyThreshold *float64 `field:"optional" json:"unhealthyThreshold" yaml:"unhealthyThreshold"` }
Properties used to define HTTP Based healthchecks.
Example:
var mesh mesh vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8081), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), // minimum Path: jsii.String("/health-check-path"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), // minimum UnhealthyThreshold: jsii.Number(2), }), }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), })
type HttpRetryEvent ¶
type HttpRetryEvent string
HTTP events on which to retry.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, RetryPolicy: &HttpRetryPolicy{ // Retry if the connection failed TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, // Retry if HTTP responds with a gateway error (502, 503, 504) HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry five times RetryAttempts: jsii.Number(5), // Use a 1 second timeout per retry RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
const ( // HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511. HttpRetryEvent_SERVER_ERROR HttpRetryEvent = "SERVER_ERROR" // HTTP status codes 502, 503, and 504. HttpRetryEvent_GATEWAY_ERROR HttpRetryEvent = "GATEWAY_ERROR" // HTTP status code 409. HttpRetryEvent_CLIENT_ERROR HttpRetryEvent = "CLIENT_ERROR" // Retry on refused stream. HttpRetryEvent_STREAM_ERROR HttpRetryEvent = "STREAM_ERROR" )
type HttpRetryPolicy ¶
type HttpRetryPolicy struct { // The maximum number of retry attempts. RetryAttempts *float64 `field:"required" json:"retryAttempts" yaml:"retryAttempts"` // The timeout for each retry attempt. RetryTimeout awscdk.Duration `field:"required" json:"retryTimeout" yaml:"retryTimeout"` // Specify HTTP events on which to retry. // // You must specify at least one value // for at least one types of retry events. // Default: - no retries for http events. // HttpRetryEvents *[]HttpRetryEvent `field:"optional" json:"httpRetryEvents" yaml:"httpRetryEvents"` // TCP events on which to retry. // // The event occurs before any processing of a // request has started and is encountered when the upstream is temporarily or // permanently unavailable. You must specify at least one value for at least // one types of retry events. // Default: - no retries for tcp events. // TcpRetryEvents *[]TcpRetryEvent `field:"optional" json:"tcpRetryEvents" yaml:"tcpRetryEvents"` }
HTTP retry policy.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, RetryPolicy: &HttpRetryPolicy{ // Retry if the connection failed TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, // Retry if HTTP responds with a gateway error (502, 503, 504) HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry five times RetryAttempts: jsii.Number(5), // Use a 1 second timeout per retry RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
type HttpRouteMatch ¶
type HttpRouteMatch struct { // Specifies the client request headers to match on. // // All specified headers // must match for the route to match. // Default: - do not match on headers. // Headers *[]HeaderMatch `field:"optional" json:"headers" yaml:"headers"` // The HTTP client request method to match on. // Default: - do not match on request method. // Method HttpRouteMethod `field:"optional" json:"method" yaml:"method"` // Specifies how is the request matched based on the path part of its URL. // Default: - matches requests with all paths. // Path HttpRoutePathMatch `field:"optional" json:"path" yaml:"path"` // The port to match from the request. // Default: - do not match on port. // Port *float64 `field:"optional" json:"port" yaml:"port"` // The client request protocol to match on. // // Applicable only for HTTP2 routes. // Default: - do not match on HTTP2 request protocol. // Protocol HttpRouteProtocol `field:"optional" json:"protocol" yaml:"protocol"` // The query parameters to match on. // // All specified query parameters must match for the route to match. // Default: - do not match on query parameters. // QueryParameters *[]QueryParameterMatch `field:"optional" json:"queryParameters" yaml:"queryParameters"` }
The criterion for determining a request match for this Route.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, Weight: jsii.Number(50), }, &weightedTarget{ VirtualNode: node, Weight: jsii.Number(50), }, }, Match: &HttpRouteMatch{ Path: appmesh.HttpRoutePathMatch_StartsWith(jsii.String("/path-to-app")), }, }), })
type HttpRouteMethod ¶
type HttpRouteMethod string
Supported values for matching routes based on the HTTP request method.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &HttpRouteMatch{ Path: appmesh.HttpRoutePathMatch_Exactly(jsii.String("/exact")), Method: appmesh.HttpRouteMethod_POST, Protocol: appmesh.HttpRouteProtocol_HTTPS, Headers: []headerMatch{ appmesh.*headerMatch_ValueIs(jsii.String("Content-Type"), jsii.String("application/json")), appmesh.*headerMatch_ValueIsNot(jsii.String("Content-Type"), jsii.String("application/json")), }, QueryParameters: []queryParameterMatch{ appmesh.*queryParameterMatch_ValueIs(jsii.String("query-field"), jsii.String("value")), }, }, }), })
const ( // GET request. HttpRouteMethod_GET HttpRouteMethod = "GET" // HEAD request. HttpRouteMethod_HEAD HttpRouteMethod = "HEAD" // POST request. HttpRouteMethod_POST HttpRouteMethod = "POST" // PUT request. HttpRouteMethod_PUT HttpRouteMethod = "PUT" // DELETE request. HttpRouteMethod_DELETE HttpRouteMethod = "DELETE" // CONNECT request. HttpRouteMethod_CONNECT HttpRouteMethod = "CONNECT" // OPTIONS request. HttpRouteMethod_OPTIONS HttpRouteMethod = "OPTIONS" // TRACE request. HttpRouteMethod_TRACE HttpRouteMethod = "TRACE" // PATCH request. HttpRouteMethod_PATCH HttpRouteMethod = "PATCH" )
type HttpRoutePathMatch ¶
type HttpRoutePathMatch interface { // Returns the route path match configuration. Bind(scope constructs.Construct) *HttpRoutePathMatchConfig }
Defines HTTP route matching based on the URL path of the request.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, Weight: jsii.Number(50), }, &weightedTarget{ VirtualNode: node, Weight: jsii.Number(50), }, }, Match: &HttpRouteMatch{ Path: appmesh.HttpRoutePathMatch_StartsWith(jsii.String("/path-to-app")), }, }), })
func HttpRoutePathMatch_Exactly ¶
func HttpRoutePathMatch_Exactly(path *string) HttpRoutePathMatch
The value of the path must match the specified value exactly.
The provided `path` must start with the '/' character.
func HttpRoutePathMatch_Regex ¶
func HttpRoutePathMatch_Regex(regex *string) HttpRoutePathMatch
The value of the path must match the specified regex.
func HttpRoutePathMatch_StartsWith ¶
func HttpRoutePathMatch_StartsWith(prefix *string) HttpRoutePathMatch
The value of the path must match the specified prefix.
type HttpRoutePathMatchConfig ¶
type HttpRoutePathMatchConfig struct { // Route configuration for matching on the prefix of the URL path of the request. // Default: - no matching will be performed on the prefix of the URL path. // PrefixPathMatch *string `field:"optional" json:"prefixPathMatch" yaml:"prefixPathMatch"` // Route configuration for matching on the complete URL path of the request. // Default: - no matching will be performed on the complete URL path. // WholePathMatch *CfnRoute_HttpPathMatchProperty `field:"optional" json:"wholePathMatch" yaml:"wholePathMatch"` }
The type returned from the `bind()` method in `HttpRoutePathMatch`.
Example:
// 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" httpRoutePathMatchConfig := &HttpRoutePathMatchConfig{ PrefixPathMatch: jsii.String("prefixPathMatch"), WholePathMatch: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, }
type HttpRouteProtocol ¶
type HttpRouteProtocol string
Supported :scheme options for HTTP2.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &HttpRouteMatch{ Path: appmesh.HttpRoutePathMatch_Exactly(jsii.String("/exact")), Method: appmesh.HttpRouteMethod_POST, Protocol: appmesh.HttpRouteProtocol_HTTPS, Headers: []headerMatch{ appmesh.*headerMatch_ValueIs(jsii.String("Content-Type"), jsii.String("application/json")), appmesh.*headerMatch_ValueIsNot(jsii.String("Content-Type"), jsii.String("application/json")), }, QueryParameters: []queryParameterMatch{ appmesh.*queryParameterMatch_ValueIs(jsii.String("query-field"), jsii.String("value")), }, }, }), })
const ( // Match HTTP requests. HttpRouteProtocol_HTTP HttpRouteProtocol = "HTTP" // Match HTTPS requests. HttpRouteProtocol_HTTPS HttpRouteProtocol = "HTTPS" )
type HttpRouteSpecOptions ¶
type HttpRouteSpecOptions struct { // The priority for the route. // // When a Virtual Router has multiple routes, route match is performed in the // order of specified value, where 0 is the highest priority, and first matched route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // List of targets that traffic is routed to when a request matches the route. WeightedTargets *[]*WeightedTarget `field:"required" json:"weightedTargets" yaml:"weightedTargets"` // The criterion for determining a request match for this Route. // Default: - matches on '/'. // Match *HttpRouteMatch `field:"optional" json:"match" yaml:"match"` // The retry policy. // Default: - no retry policy. // RetryPolicy *HttpRetryPolicy `field:"optional" json:"retryPolicy" yaml:"retryPolicy"` // An object that represents a http timeout. // Default: - None. // Timeout *HttpTimeout `field:"optional" json:"timeout" yaml:"timeout"` }
Properties specific for HTTP Based Routes.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, RetryPolicy: &HttpRetryPolicy{ // Retry if the connection failed TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, // Retry if HTTP responds with a gateway error (502, 503, 504) HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry five times RetryAttempts: jsii.Number(5), // Use a 1 second timeout per retry RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
type HttpTimeout ¶
type HttpTimeout struct { // Represents an idle timeout. // // The amount of time that a connection may be idle. // Default: - none. // Idle awscdk.Duration `field:"optional" json:"idle" yaml:"idle"` // Represents per request timeout. // Default: - 15 s. // PerRequest awscdk.Duration `field:"optional" json:"perRequest" yaml:"perRequest"` }
Represents timeouts for HTTP protocols.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
type HttpVirtualNodeListenerOptions ¶
type HttpVirtualNodeListenerOptions struct { // Connection pool for http listeners. // Default: - None. // ConnectionPool *HttpConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Represents the configuration for enabling outlier detection. // Default: - none. // OutlierDetection *OutlierDetection `field:"optional" json:"outlierDetection" yaml:"outlierDetection"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Timeout for HTTP protocol. // Default: - None. // Timeout *HttpTimeout `field:"optional" json:"timeout" yaml:"timeout"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represent the HTTP Node Listener property.
Example:
var mesh mesh vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8081), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), // minimum Path: jsii.String("/health-check-path"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), // minimum UnhealthyThreshold: jsii.Number(2), }), }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), })
type IGatewayRoute ¶
type IGatewayRoute interface { awscdk.IResource // The Amazon Resource Name (ARN) for the GatewayRoute. GatewayRouteArn() *string // The name of the GatewayRoute. GatewayRouteName() *string // The VirtualGateway the GatewayRoute belongs to. VirtualGateway() IVirtualGateway }
Interface for which all GatewayRoute based classes MUST implement.
func GatewayRoute_FromGatewayRouteArn ¶
func GatewayRoute_FromGatewayRouteArn(scope constructs.Construct, id *string, gatewayRouteArn *string) IGatewayRoute
Import an existing GatewayRoute given an ARN.
func GatewayRoute_FromGatewayRouteAttributes ¶
func GatewayRoute_FromGatewayRouteAttributes(scope constructs.Construct, id *string, attrs *GatewayRouteAttributes) IGatewayRoute
Import an existing GatewayRoute given attributes.
type IMesh ¶
type IMesh interface { awscdk.IResource // Creates a new VirtualGateway in this Mesh. // // Note that the Gateway is created in the same Stack that this Mesh belongs to, // which might be different than the current stack. AddVirtualGateway(id *string, props *VirtualGatewayBaseProps) VirtualGateway // Creates a new VirtualNode in this Mesh. // // Note that the Node is created in the same Stack that this Mesh belongs to, // which might be different than the current stack. AddVirtualNode(id *string, props *VirtualNodeBaseProps) VirtualNode // Creates a new VirtualRouter in this Mesh. // // Note that the Router is created in the same Stack that this Mesh belongs to, // which might be different than the current stack. AddVirtualRouter(id *string, props *VirtualRouterBaseProps) VirtualRouter // The Amazon Resource Name (ARN) of the AppMesh mesh. MeshArn() *string // The name of the AppMesh mesh. MeshName() *string }
Interface which all Mesh based classes MUST implement.
func Mesh_FromMeshArn ¶
Import an existing mesh by arn.
func Mesh_FromMeshName ¶
Import an existing mesh by name.
type IRoute ¶
type IRoute interface { awscdk.IResource // The Amazon Resource Name (ARN) for the route. RouteArn() *string // The name of the route. RouteName() *string // The VirtualRouter the Route belongs to. VirtualRouter() IVirtualRouter }
Interface for which all Route based classes MUST implement.
func Route_FromRouteArn ¶
Import an existing Route given an ARN.
func Route_FromRouteAttributes ¶
func Route_FromRouteAttributes(scope constructs.Construct, id *string, attrs *RouteAttributes) IRoute
Import an existing Route given attributes.
type IVirtualGateway ¶
type IVirtualGateway interface { awscdk.IResource // Utility method to add a new GatewayRoute to the VirtualGateway. AddGatewayRoute(id *string, route *GatewayRouteBaseProps) GatewayRoute // Grants the given entity `appmesh:StreamAggregatedResources`. GrantStreamAggregatedResources(identity awsiam.IGrantable) awsiam.Grant // The Mesh which the VirtualGateway belongs to. Mesh() IMesh // The Amazon Resource Name (ARN) for the VirtualGateway. VirtualGatewayArn() *string // Name of the VirtualGateway. VirtualGatewayName() *string }
Interface which all Virtual Gateway based classes must implement.
func VirtualGateway_FromVirtualGatewayArn ¶
func VirtualGateway_FromVirtualGatewayArn(scope constructs.Construct, id *string, virtualGatewayArn *string) IVirtualGateway
Import an existing VirtualGateway given an ARN.
func VirtualGateway_FromVirtualGatewayAttributes ¶
func VirtualGateway_FromVirtualGatewayAttributes(scope constructs.Construct, id *string, attrs *VirtualGatewayAttributes) IVirtualGateway
Import an existing VirtualGateway given its attributes.
type IVirtualNode ¶
type IVirtualNode interface { awscdk.IResource // Grants the given entity `appmesh:StreamAggregatedResources`. GrantStreamAggregatedResources(identity awsiam.IGrantable) awsiam.Grant // The Mesh which the VirtualNode belongs to. Mesh() IMesh // The Amazon Resource Name belonging to the VirtualNode. // // Set this value as the APPMESH_VIRTUAL_NODE_NAME environment variable for // your task group's Envoy proxy container in your task definition or pod // spec. VirtualNodeArn() *string // The name of the VirtualNode. VirtualNodeName() *string }
Interface which all VirtualNode based classes must implement.
func VirtualNode_FromVirtualNodeArn ¶
func VirtualNode_FromVirtualNodeArn(scope constructs.Construct, id *string, virtualNodeArn *string) IVirtualNode
Import an existing VirtualNode given an ARN.
func VirtualNode_FromVirtualNodeAttributes ¶
func VirtualNode_FromVirtualNodeAttributes(scope constructs.Construct, id *string, attrs *VirtualNodeAttributes) IVirtualNode
Import an existing VirtualNode given its name.
type IVirtualRouter ¶
type IVirtualRouter interface { awscdk.IResource // Add a single route to the router. AddRoute(id *string, props *RouteBaseProps) Route // The Mesh which the VirtualRouter belongs to. Mesh() IMesh // The Amazon Resource Name (ARN) for the VirtualRouter. VirtualRouterArn() *string // The name of the VirtualRouter. VirtualRouterName() *string }
Interface which all VirtualRouter based classes MUST implement.
func VirtualRouter_FromVirtualRouterArn ¶
func VirtualRouter_FromVirtualRouterArn(scope constructs.Construct, id *string, virtualRouterArn *string) IVirtualRouter
Import an existing VirtualRouter given an ARN.
func VirtualRouter_FromVirtualRouterAttributes ¶
func VirtualRouter_FromVirtualRouterAttributes(scope constructs.Construct, id *string, attrs *VirtualRouterAttributes) IVirtualRouter
Import an existing VirtualRouter given attributes.
type IVirtualService ¶
type IVirtualService interface { awscdk.IResource // The Mesh which the VirtualService belongs to. Mesh() IMesh // The Amazon Resource Name (ARN) for the virtual service. VirtualServiceArn() *string // The name of the VirtualService. VirtualServiceName() *string }
Represents the interface which all VirtualService based classes MUST implement.
func VirtualService_FromVirtualServiceArn ¶
func VirtualService_FromVirtualServiceArn(scope constructs.Construct, id *string, virtualServiceArn *string) IVirtualService
Import an existing VirtualService given an ARN.
func VirtualService_FromVirtualServiceAttributes ¶
func VirtualService_FromVirtualServiceAttributes(scope constructs.Construct, id *string, attrs *VirtualServiceAttributes) IVirtualService
Import an existing VirtualService given its attributes.
type IpPreference ¶ added in v2.30.0
type IpPreference string
Enum of supported IP preferences.
Used to dictate the IP version for mesh wide and virtual node service discovery. Also used to specify the IP version that a sidecar Envoy uses when sending traffic to a local application.
Example:
mesh := appmesh.NewMesh(this, jsii.String("AppMesh"), &MeshProps{ MeshName: jsii.String("myAwsMesh"), ServiceDiscovery: &MeshServiceDiscovery{ IpPreference: appmesh.IpPreference_IPV4_ONLY, }, })
const ( // Use IPv4 when sending traffic to a local application. // // Only use IPv4 for service discovery. IpPreference_IPV4_ONLY IpPreference = "IPV4_ONLY" // Use IPv4 when sending traffic to a local application. // // First attempt to use IPv4 and fall back to IPv6 for service discovery. IpPreference_IPV4_PREFERRED IpPreference = "IPV4_PREFERRED" // Use IPv6 when sending traffic to a local application. // // Only use IPv6 for service discovery. IpPreference_IPV6_ONLY IpPreference = "IPV6_ONLY" // Use IPv6 when sending traffic to a local application. // // First attempt to use IPv6 and fall back to IPv4 for service discovery. IpPreference_IPV6_PREFERRED IpPreference = "IPV6_PREFERRED" )
type ListenerTlsOptions ¶
type ListenerTlsOptions struct { // Represents TLS certificate. Certificate TlsCertificate `field:"required" json:"certificate" yaml:"certificate"` // The TLS mode. Mode TlsMode `field:"required" json:"mode" yaml:"mode"` // Represents a listener's TLS validation context. // // The client certificate will only be validated if the client provides it, enabling mutual TLS. // Default: - client TLS certificate is not required. // MutualTlsValidation *MutualTlsValidation `field:"optional" json:"mutualTlsValidation" yaml:"mutualTlsValidation"` }
Represents TLS properties for listener.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate var cert certificate var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Acm(cert), }, }), }, }) // A Virtual Gateway with listener TLS from a customer provided file certificate gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), }, }), }, VirtualGatewayName: jsii.String("gateway"), }) // A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 := appmesh.NewVirtualGateway(this, jsii.String("gateway2"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []*virtualGatewayListener{ appmesh.*virtualGatewayListener_Http2(&Http2GatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Sds(jsii.String("secrete_certificate")), }, }), }, VirtualGatewayName: jsii.String("gateway2"), })
type LoggingFormat ¶ added in v2.80.0
type LoggingFormat interface { // Called when the Access Log Format is initialized. // // Can be used to enforce // mutual exclusivity with future properties. Bind() *LoggingFormatConfig }
Configuration for Envoy Access Logging Format for mesh endpoints.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: cdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: cdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: cdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout"), appmesh.LoggingFormat_FromJson(map[string]*string{ "testKey1": jsii.String("testValue1"), "testKey2": jsii.String("testValue2"), })), })
func LoggingFormat_FromJson ¶ added in v2.80.0
func LoggingFormat_FromJson(jsonLoggingFormat *map[string]*string) LoggingFormat
Generate logging format from json key pairs.
func LoggingFormat_FromText ¶ added in v2.80.0
func LoggingFormat_FromText(text *string) LoggingFormat
Generate logging format from text pattern.
type LoggingFormatConfig ¶ added in v2.80.0
type LoggingFormatConfig struct { // CFN configuration for Access Logging Format. // Default: - no access logging format. // FormatConfig *CfnVirtualNode_LoggingFormatProperty `field:"optional" json:"formatConfig" yaml:"formatConfig"` }
All Properties for Envoy Access Logging Format for mesh endpoints.
Example:
// 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" loggingFormatConfig := &LoggingFormatConfig{ FormatConfig: &LoggingFormatProperty{ Json: []interface{}{ &JsonFormatRefProperty{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, Text: jsii.String("text"), }, }
type Mesh ¶
type Mesh interface { awscdk.Resource IMesh // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment // The Amazon Resource Name (ARN) of the AppMesh mesh. MeshArn() *string // The name of the AppMesh mesh. MeshName() *string // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // Adds a VirtualGateway to the Mesh. AddVirtualGateway(id *string, props *VirtualGatewayBaseProps) VirtualGateway // Adds a VirtualNode to the Mesh. AddVirtualNode(id *string, props *VirtualNodeBaseProps) VirtualNode // Adds a VirtualRouter to the Mesh with the given id and props. AddVirtualRouter(id *string, props *VirtualRouterBaseProps) VirtualRouter // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Returns a string representation of this construct. ToString() *string }
Define a new AppMesh mesh.
Example:
// This is the ARN for the mesh from different AWS IAM account ID. // Ensure mesh is properly shared with your account. For more details, see: https://github.com/aws/aws-cdk/issues/15404 arn := "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh" sharedMesh := appmesh.Mesh_FromMeshArn(this, jsii.String("imported-mesh"), arn) // This VirtualNode resource can communicate with the resources in the mesh from different AWS IAM account ID. // This VirtualNode resource can communicate with the resources in the mesh from different AWS IAM account ID. appmesh.NewVirtualNode(this, jsii.String("test-node"), &VirtualNodeProps{ Mesh: sharedMesh, })
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html
type MeshFilterType ¶
type MeshFilterType string
A utility enum defined for the egressFilter type property, the default of DROP_ALL, allows traffic only to other resources inside the mesh, or API calls to amazon resources.
Example:
mesh := appmesh.NewMesh(this, jsii.String("AppMesh"), &MeshProps{ MeshName: jsii.String("myAwsMesh"), EgressFilter: appmesh.MeshFilterType_ALLOW_ALL, })
Default: DROP_ALL.
const ( // Allows all outbound traffic. MeshFilterType_ALLOW_ALL MeshFilterType = "ALLOW_ALL" // Allows traffic only to other resources inside the mesh, or API calls to amazon resources. MeshFilterType_DROP_ALL MeshFilterType = "DROP_ALL" )
type MeshProps ¶
type MeshProps struct { // Egress filter to be applied to the Mesh. // Default: DROP_ALL. // EgressFilter MeshFilterType `field:"optional" json:"egressFilter" yaml:"egressFilter"` // The name of the Mesh being defined. // Default: - A name is automatically generated. // MeshName *string `field:"optional" json:"meshName" yaml:"meshName"` // Defines how upstream clients will discover VirtualNodes in the Mesh. // Default: - No Service Discovery. // ServiceDiscovery *MeshServiceDiscovery `field:"optional" json:"serviceDiscovery" yaml:"serviceDiscovery"` }
The set of properties used when creating a Mesh.
Example:
var infraStack stack var appStack stack mesh := appmesh.NewMesh(infraStack, jsii.String("AppMesh"), &MeshProps{ MeshName: jsii.String("myAwsMesh"), EgressFilter: appmesh.MeshFilterType_ALLOW_ALL, }) // the VirtualRouter will belong to 'appStack', // even though the Mesh belongs to 'infraStack' router := appmesh.NewVirtualRouter(appStack, jsii.String("router"), &VirtualRouterProps{ Mesh: Mesh, // notice that mesh is a required property when creating a router with the 'new' statement Listeners: []virtualRouterListener{ appmesh.*virtualRouterListener_Http(jsii.Number(8081)), }, })
type MeshServiceDiscovery ¶ added in v2.30.0
type MeshServiceDiscovery struct { // IP preference applied to all Virtual Nodes in the Mesh. // Default: - No IP preference is applied to any of the Virtual Nodes in the Mesh. // Virtual Nodes without an IP preference will have the following configured. // Envoy listeners are configured to bind only to IPv4. // Envoy will use IPv4 when sending traffic to a local application. // For DNS service discovery, the Envoy DNS resolver to prefer using IPv6 and fall back to IPv4. // For CloudMap service discovery, App Mesh will prefer using IPv4 and fall back to IPv6 for IPs returned by CloudMap. // IpPreference IpPreference `field:"optional" json:"ipPreference" yaml:"ipPreference"` }
Properties for Mesh Service Discovery.
Example:
mesh := appmesh.NewMesh(this, jsii.String("AppMesh"), &MeshProps{ MeshName: jsii.String("myAwsMesh"), ServiceDiscovery: &MeshServiceDiscovery{ IpPreference: appmesh.IpPreference_IPV4_ONLY, }, })
type MutualTlsCertificate ¶
type MutualTlsCertificate interface { TlsCertificate Differentiator() *bool // Returns TLS certificate based provider. Bind(_scope constructs.Construct) *TlsCertificateConfig }
Represents a TLS certificate that is supported for mutual TLS authentication.
Example:
var mesh mesh node1 := appmesh.NewVirtualNode(this, jsii.String("node1"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), // Validate a file client certificates to enable mutual TLS authentication when a client provides a certificate. MutualTlsValidation: &MutualTlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("path-to-certificate")), }, }, }), }, }) certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" node2 := appmesh.NewVirtualNode(this, jsii.String("node2"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_*Dns(jsii.String("node2")), BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ SubjectAlternativeNames: appmesh.SubjectAlternativeNames_MatchingExactly(jsii.String("mesh-endpoint.apps.local")), Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, // Provide a SDS client certificate when a server requests it and enable mutual TLS authentication. MutualTlsCertificate: appmesh.TlsCertificate_Sds(jsii.String("secret_certificate")), }, }, })
func MutualTlsCertificate_File ¶
func MutualTlsCertificate_File(certificateChainPath *string, privateKeyPath *string) MutualTlsCertificate
Returns an File TLS Certificate.
func MutualTlsCertificate_Sds ¶
func MutualTlsCertificate_Sds(secretName *string) MutualTlsCertificate
Returns an SDS TLS Certificate.
func TlsCertificate_File ¶
func TlsCertificate_File(certificateChainPath *string, privateKeyPath *string) MutualTlsCertificate
Returns an File TLS Certificate.
func TlsCertificate_Sds ¶
func TlsCertificate_Sds(secretName *string) MutualTlsCertificate
Returns an SDS TLS Certificate.
type MutualTlsValidation ¶
type MutualTlsValidation struct { // Reference to where to retrieve the trust chain. Trust MutualTlsValidationTrust `field:"required" json:"trust" yaml:"trust"` // Represents the subject alternative names (SANs) secured by the certificate. // // SANs must be in the FQDN or URI format. // Default: - If you don't specify SANs on the terminating mesh endpoint, // the Envoy proxy for that node doesn't verify the SAN on a peer client certificate. // If you don't specify SANs on the originating mesh endpoint, // the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. // SubjectAlternativeNames SubjectAlternativeNames `field:"optional" json:"subjectAlternativeNames" yaml:"subjectAlternativeNames"` }
Represents the properties needed to define TLS Validation context that is supported for mutual TLS authentication.
Example:
var mesh mesh node1 := appmesh.NewVirtualNode(this, jsii.String("node1"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), // Validate a file client certificates to enable mutual TLS authentication when a client provides a certificate. MutualTlsValidation: &MutualTlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("path-to-certificate")), }, }, }), }, }) certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" node2 := appmesh.NewVirtualNode(this, jsii.String("node2"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_*Dns(jsii.String("node2")), BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ SubjectAlternativeNames: appmesh.SubjectAlternativeNames_MatchingExactly(jsii.String("mesh-endpoint.apps.local")), Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, // Provide a SDS client certificate when a server requests it and enable mutual TLS authentication. MutualTlsCertificate: appmesh.TlsCertificate_Sds(jsii.String("secret_certificate")), }, }, })
type MutualTlsValidationTrust ¶
type MutualTlsValidationTrust interface { TlsValidationTrust Differentiator() *bool // Returns Trust context based on trust type. Bind(scope constructs.Construct) *TlsValidationTrustConfig }
Represents a TLS Validation Context Trust that is supported for mutual TLS authentication.
Example:
var mesh mesh node1 := appmesh.NewVirtualNode(this, jsii.String("node1"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), // Validate a file client certificates to enable mutual TLS authentication when a client provides a certificate. MutualTlsValidation: &MutualTlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("path-to-certificate")), }, }, }), }, }) certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" node2 := appmesh.NewVirtualNode(this, jsii.String("node2"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_*Dns(jsii.String("node2")), BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ SubjectAlternativeNames: appmesh.SubjectAlternativeNames_MatchingExactly(jsii.String("mesh-endpoint.apps.local")), Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, // Provide a SDS client certificate when a server requests it and enable mutual TLS authentication. MutualTlsCertificate: appmesh.TlsCertificate_Sds(jsii.String("secret_certificate")), }, }, })
func MutualTlsValidationTrust_File ¶
func MutualTlsValidationTrust_File(certificateChain *string) MutualTlsValidationTrust
Tells envoy where to fetch the validation context from.
func MutualTlsValidationTrust_Sds ¶
func MutualTlsValidationTrust_Sds(secretName *string) MutualTlsValidationTrust
TLS Validation Context Trust for Envoy' service discovery service.
func TlsValidationTrust_File ¶
func TlsValidationTrust_File(certificateChain *string) MutualTlsValidationTrust
Tells envoy where to fetch the validation context from.
func TlsValidationTrust_Sds ¶
func TlsValidationTrust_Sds(secretName *string) MutualTlsValidationTrust
TLS Validation Context Trust for Envoy' service discovery service.
type OutlierDetection ¶
type OutlierDetection struct { // The base amount of time for which a host is ejected. BaseEjectionDuration awscdk.Duration `field:"required" json:"baseEjectionDuration" yaml:"baseEjectionDuration"` // The time interval between ejection sweep analysis. Interval awscdk.Duration `field:"required" json:"interval" yaml:"interval"` // Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. // // Will eject at // least one host regardless of the value. MaxEjectionPercent *float64 `field:"required" json:"maxEjectionPercent" yaml:"maxEjectionPercent"` // Number of consecutive 5xx errors required for ejection. MaxServerErrors *float64 `field:"required" json:"maxServerErrors" yaml:"maxServerErrors"` }
Represents the outlier detection for a listener.
Example:
var mesh mesh // Cloud Map service discovery is currently required for host ejection by outlier detection vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ OutlierDetection: &OutlierDetection{ BaseEjectionDuration: awscdk.Duration_Seconds(jsii.Number(10)), Interval: awscdk.Duration_*Seconds(jsii.Number(30)), MaxEjectionPercent: jsii.Number(50), MaxServerErrors: jsii.Number(5), }, }), }, })
type QueryParameterMatch ¶
type QueryParameterMatch interface { // Returns the query parameter match configuration. Bind(scope constructs.Construct) *QueryParameterMatchConfig }
Used to generate query parameter matching methods.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, Match: &HttpRouteMatch{ Path: appmesh.HttpRoutePathMatch_Exactly(jsii.String("/exact")), Method: appmesh.HttpRouteMethod_POST, Protocol: appmesh.HttpRouteProtocol_HTTPS, Headers: []headerMatch{ appmesh.*headerMatch_ValueIs(jsii.String("Content-Type"), jsii.String("application/json")), appmesh.*headerMatch_ValueIsNot(jsii.String("Content-Type"), jsii.String("application/json")), }, QueryParameters: []queryParameterMatch{ appmesh.*queryParameterMatch_ValueIs(jsii.String("query-field"), jsii.String("value")), }, }, }), })
func QueryParameterMatch_ValueIs ¶
func QueryParameterMatch_ValueIs(queryParameterName *string, queryParameterValue *string) QueryParameterMatch
The value of the query parameter with the given name in the request must match the specified value exactly.
type QueryParameterMatchConfig ¶
type QueryParameterMatchConfig struct { // Route CFN configuration for route query parameter match. QueryParameterMatch *CfnRoute_QueryParameterProperty `field:"required" json:"queryParameterMatch" yaml:"queryParameterMatch"` }
Configuration for `QueryParameterMatch`.
Example:
// 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" queryParameterMatchConfig := &QueryParameterMatchConfig{ QueryParameterMatch: &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }
type Route ¶
type Route interface { awscdk.Resource IRoute // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The Amazon Resource Name (ARN) for the route. RouteArn() *string // The name of the Route. RouteName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // The VirtualRouter the Route belongs to. VirtualRouter() IVirtualRouter // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Returns a string representation of this construct. ToString() *string }
Route represents a new or existing route attached to a VirtualRouter and Mesh.
Example:
// 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" var mesh mesh var routeSpec routeSpec var virtualRouter virtualRouter route := awscdk.Aws_appmesh.NewRoute(this, jsii.String("MyRoute"), &RouteProps{ Mesh: mesh, RouteSpec: routeSpec, VirtualRouter: virtualRouter, // the properties below are optional RouteName: jsii.String("routeName"), })
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html
func NewRoute ¶
func NewRoute(scope constructs.Construct, id *string, props *RouteProps) Route
type RouteAttributes ¶
type RouteAttributes struct { // The name of the Route. RouteName *string `field:"required" json:"routeName" yaml:"routeName"` // The VirtualRouter the Route belongs to. VirtualRouter IVirtualRouter `field:"required" json:"virtualRouter" yaml:"virtualRouter"` }
Interface with properties ncecessary to import a reusable Route.
Example:
// 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" var virtualRouter virtualRouter routeAttributes := &RouteAttributes{ RouteName: jsii.String("routeName"), VirtualRouter: virtualRouter, }
type RouteBaseProps ¶
type RouteBaseProps struct { // Protocol specific spec. RouteSpec RouteSpec `field:"required" json:"routeSpec" yaml:"routeSpec"` // The name of the route. // Default: - An automatically generated name. // RouteName *string `field:"optional" json:"routeName" yaml:"routeName"` }
Base interface properties for all Routes.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, RetryPolicy: &HttpRetryPolicy{ // Retry if the connection failed TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, // Retry if HTTP responds with a gateway error (502, 503, 504) HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry five times RetryAttempts: jsii.Number(5), // Use a 1 second timeout per retry RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
type RouteProps ¶
type RouteProps struct { // Protocol specific spec. RouteSpec RouteSpec `field:"required" json:"routeSpec" yaml:"routeSpec"` // The name of the route. // Default: - An automatically generated name. // RouteName *string `field:"optional" json:"routeName" yaml:"routeName"` // The service mesh to define the route in. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` // The VirtualRouter the Route belongs to. VirtualRouter IVirtualRouter `field:"required" json:"virtualRouter" yaml:"virtualRouter"` }
Properties to define new Routes.
Example:
// 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" var mesh mesh var routeSpec routeSpec var virtualRouter virtualRouter routeProps := &RouteProps{ Mesh: mesh, RouteSpec: routeSpec, VirtualRouter: virtualRouter, // the properties below are optional RouteName: jsii.String("routeName"), }
type RouteSpec ¶
type RouteSpec interface { // Called when the RouteSpec type is initialized. // // Can be used to enforce // mutual exclusivity with future properties. Bind(scope constructs.Construct) *RouteSpecConfig }
Used to generate specs with different protocols for a RouteSpec.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, RetryPolicy: &HttpRetryPolicy{ // Retry if the connection failed TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, // Retry if HTTP responds with a gateway error (502, 503, 504) HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry five times RetryAttempts: jsii.Number(5), // Use a 1 second timeout per retry RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
func RouteSpec_Grpc ¶
func RouteSpec_Grpc(options *GrpcRouteSpecOptions) RouteSpec
Creates a GRPC Based RouteSpec.
func RouteSpec_Http ¶
func RouteSpec_Http(options *HttpRouteSpecOptions) RouteSpec
Creates an HTTP Based RouteSpec.
func RouteSpec_Http2 ¶
func RouteSpec_Http2(options *HttpRouteSpecOptions) RouteSpec
Creates an HTTP2 Based RouteSpec.
func RouteSpec_Tcp ¶
func RouteSpec_Tcp(options *TcpRouteSpecOptions) RouteSpec
Creates a TCP Based RouteSpec.
type RouteSpecConfig ¶
type RouteSpecConfig struct { // The spec for a grpc route. // Default: - no grpc spec. // GrpcRouteSpec *CfnRoute_GrpcRouteProperty `field:"optional" json:"grpcRouteSpec" yaml:"grpcRouteSpec"` // The spec for an http2 route. // Default: - no http2 spec. // Http2RouteSpec *CfnRoute_HttpRouteProperty `field:"optional" json:"http2RouteSpec" yaml:"http2RouteSpec"` // The spec for an http route. // Default: - no http spec. // HttpRouteSpec *CfnRoute_HttpRouteProperty `field:"optional" json:"httpRouteSpec" yaml:"httpRouteSpec"` // The priority for the route. // // When a Virtual Router has multiple routes, route match is performed in the // order of specified value, where 0 is the highest priority, and first matched route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // The spec for a tcp route. // Default: - no tcp spec. // TcpRouteSpec *CfnRoute_TcpRouteProperty `field:"optional" json:"tcpRouteSpec" yaml:"tcpRouteSpec"` }
All Properties for Route Specs.
Example:
// 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" routeSpecConfig := &RouteSpecConfig{ GrpcRouteSpec: &GrpcRouteProperty{ Action: &GrpcRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &GrpcRouteMatchProperty{ Metadata: []interface{}{ &GrpcRouteMetadataProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &GrpcRouteMetadataMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, MethodName: jsii.String("methodName"), Port: jsii.Number(123), ServiceName: jsii.String("serviceName"), }, // the properties below are optional RetryPolicy: &GrpcRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional GrpcRetryEvents: []*string{ jsii.String("grpcRetryEvents"), }, HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &GrpcTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Http2RouteSpec: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, HttpRouteSpec: &HttpRouteProperty{ Action: &HttpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, Match: &HttpRouteMatchProperty{ Headers: []interface{}{ &HttpRouteHeaderProperty{ Name: jsii.String("name"), // the properties below are optional Invert: jsii.Boolean(false), Match: &HeaderMatchMethodProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), Range: &MatchRangeProperty{ End: jsii.Number(123), Start: jsii.Number(123), }, Regex: jsii.String("regex"), Suffix: jsii.String("suffix"), }, }, }, Method: jsii.String("method"), Path: &HttpPathMatchProperty{ Exact: jsii.String("exact"), Regex: jsii.String("regex"), }, Port: jsii.Number(123), Prefix: jsii.String("prefix"), QueryParameters: []interface{}{ &QueryParameterProperty{ Name: jsii.String("name"), // the properties below are optional Match: &HttpQueryParameterMatchProperty{ Exact: jsii.String("exact"), }, }, }, Scheme: jsii.String("scheme"), }, // the properties below are optional RetryPolicy: &HttpRetryPolicyProperty{ MaxRetries: jsii.Number(123), PerRetryTimeout: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, // the properties below are optional HttpRetryEvents: []*string{ jsii.String("httpRetryEvents"), }, TcpRetryEvents: []*string{ jsii.String("tcpRetryEvents"), }, }, Timeout: &HttpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, PerRequest: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, Priority: jsii.Number(123), TcpRouteSpec: &TcpRouteProperty{ Action: &TcpRouteActionProperty{ WeightedTargets: []interface{}{ &WeightedTargetProperty{ VirtualNode: jsii.String("virtualNode"), Weight: jsii.Number(123), // the properties below are optional Port: jsii.Number(123), }, }, }, // the properties below are optional Match: &TcpRouteMatchProperty{ Port: jsii.Number(123), }, Timeout: &TcpTimeoutProperty{ Idle: &DurationProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, }, }, }
type RouteSpecOptionsBase ¶
type RouteSpecOptionsBase struct { // The priority for the route. // // When a Virtual Router has multiple routes, route match is performed in the // order of specified value, where 0 is the highest priority, and first matched route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` }
Base options for all route specs.
Example:
// 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" routeSpecOptionsBase := &RouteSpecOptionsBase{ Priority: jsii.Number(123), }
type ServiceDiscovery ¶
type ServiceDiscovery interface { // Binds the current object when adding Service Discovery to a VirtualNode. Bind(scope constructs.Construct) *ServiceDiscoveryConfig }
Provides the Service Discovery method a VirtualNode uses.
Example:
var mesh mesh vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8081), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), // minimum Path: jsii.String("/health-check-path"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), // minimum UnhealthyThreshold: jsii.Number(2), }), }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), })
func ServiceDiscovery_CloudMap ¶
func ServiceDiscovery_CloudMap(service awsservicediscovery.IService, instanceAttributes *map[string]*string, ipPreference IpPreference) ServiceDiscovery
Returns Cloud Map based service discovery.
func ServiceDiscovery_Dns ¶
func ServiceDiscovery_Dns(hostname *string, responseType DnsResponseType, ipPreference IpPreference) ServiceDiscovery
Returns DNS based service discovery.
type ServiceDiscoveryConfig ¶
type ServiceDiscoveryConfig struct { // Cloud Map based Service Discovery. // Default: - no Cloud Map based service discovery. // Cloudmap *CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty `field:"optional" json:"cloudmap" yaml:"cloudmap"` // DNS based Service Discovery. // Default: - no DNS based service discovery. // Dns *CfnVirtualNode_DnsServiceDiscoveryProperty `field:"optional" json:"dns" yaml:"dns"` }
Properties for VirtualNode Service Discovery.
Example:
// 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" serviceDiscoveryConfig := &ServiceDiscoveryConfig{ Cloudmap: &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"), }, }
type SubjectAlternativeNames ¶
type SubjectAlternativeNames interface { // Returns Subject Alternative Names Matcher based on method type. Bind(scope constructs.Construct) *SubjectAlternativeNamesMatcherConfig }
Used to generate Subject Alternative Names Matchers.
Example:
var mesh mesh node1 := appmesh.NewVirtualNode(this, jsii.String("node1"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), // Validate a file client certificates to enable mutual TLS authentication when a client provides a certificate. MutualTlsValidation: &MutualTlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("path-to-certificate")), }, }, }), }, }) certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" node2 := appmesh.NewVirtualNode(this, jsii.String("node2"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_*Dns(jsii.String("node2")), BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ SubjectAlternativeNames: appmesh.SubjectAlternativeNames_MatchingExactly(jsii.String("mesh-endpoint.apps.local")), Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, // Provide a SDS client certificate when a server requests it and enable mutual TLS authentication. MutualTlsCertificate: appmesh.TlsCertificate_Sds(jsii.String("secret_certificate")), }, }, })
func SubjectAlternativeNames_MatchingExactly ¶
func SubjectAlternativeNames_MatchingExactly(names ...*string) SubjectAlternativeNames
The values of the SAN must match the specified values exactly.
type SubjectAlternativeNamesMatcherConfig ¶
type SubjectAlternativeNamesMatcherConfig struct { // VirtualNode CFN configuration for subject alternative names secured by the certificate. SubjectAlternativeNamesMatch *CfnVirtualNode_SubjectAlternativeNameMatchersProperty `field:"required" json:"subjectAlternativeNamesMatch" yaml:"subjectAlternativeNamesMatch"` }
All Properties for Subject Alternative Names Matcher for both Client Policy and Listener.
Example:
// 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" subjectAlternativeNamesMatcherConfig := &SubjectAlternativeNamesMatcherConfig{ SubjectAlternativeNamesMatch: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }
type TcpConnectionPool ¶
type TcpConnectionPool struct { // The maximum connections in the pool. // Default: - none. // MaxConnections *float64 `field:"required" json:"maxConnections" yaml:"maxConnections"` }
Connection pool properties for TCP listeners.
Example:
// 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" tcpConnectionPool := &TcpConnectionPool{ MaxConnections: jsii.Number(123), }
type TcpHealthCheckOptions ¶
type TcpHealthCheckOptions struct { // The number of consecutive successful health checks that must occur before declaring listener healthy. // Default: 2. // HealthyThreshold *float64 `field:"optional" json:"healthyThreshold" yaml:"healthyThreshold"` // The time period between each health check execution. // Default: Duration.seconds(5) // Interval awscdk.Duration `field:"optional" json:"interval" yaml:"interval"` // The amount of time to wait when receiving a response from the health check. // Default: Duration.seconds(2) // Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"` // The number of consecutive failed health checks that must occur before declaring a listener unhealthy. // Default: - 2. // UnhealthyThreshold *float64 `field:"optional" json:"unhealthyThreshold" yaml:"unhealthyThreshold"` }
Properties used to define TCP Based healthchecks.
Example:
// 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" import "github.com/aws/aws-cdk-go/awscdk" tcpHealthCheckOptions := &TcpHealthCheckOptions{ HealthyThreshold: jsii.Number(123), Interval: cdk.Duration_Minutes(jsii.Number(30)), Timeout: cdk.Duration_*Minutes(jsii.Number(30)), UnhealthyThreshold: jsii.Number(123), }
type TcpRetryEvent ¶
type TcpRetryEvent string
TCP events on which you may retry.
Example:
var router virtualRouter var node virtualNode router.addRoute(jsii.String("route-http2-retry"), &RouteBaseProps{ RouteSpec: appmesh.RouteSpec_Http2(&HttpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: node, }, }, RetryPolicy: &HttpRetryPolicy{ // Retry if the connection failed TcpRetryEvents: []cONNECTION_ERROR{ appmesh.TcpRetryEvent_*cONNECTION_ERROR, }, // Retry if HTTP responds with a gateway error (502, 503, 504) HttpRetryEvents: []httpRetryEvent{ appmesh.*httpRetryEvent_GATEWAY_ERROR, }, // Retry five times RetryAttempts: jsii.Number(5), // Use a 1 second timeout per retry RetryTimeout: awscdk.Duration_Seconds(jsii.Number(1)), }, }), })
const ( // A connection error. TcpRetryEvent_CONNECTION_ERROR TcpRetryEvent = "CONNECTION_ERROR" )
type TcpRouteSpecOptions ¶
type TcpRouteSpecOptions struct { // The priority for the route. // // When a Virtual Router has multiple routes, route match is performed in the // order of specified value, where 0 is the highest priority, and first matched route is selected. // Default: - no particular priority. // Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // List of targets that traffic is routed to when a request matches the route. WeightedTargets *[]*WeightedTarget `field:"required" json:"weightedTargets" yaml:"weightedTargets"` // An object that represents a tcp timeout. // Default: - None. // Timeout *TcpTimeout `field:"optional" json:"timeout" yaml:"timeout"` }
Properties specific for a TCP Based Routes.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" var virtualNode virtualNode tcpRouteSpecOptions := &TcpRouteSpecOptions{ WeightedTargets: []weightedTarget{ &weightedTarget{ VirtualNode: virtualNode, // the properties below are optional Port: jsii.Number(123), Weight: jsii.Number(123), }, }, // the properties below are optional Priority: jsii.Number(123), Timeout: &TcpTimeout{ Idle: cdk.Duration_Minutes(jsii.Number(30)), }, }
type TcpTimeout ¶
type TcpTimeout struct { // Represents an idle timeout. // // The amount of time that a connection may be idle. // Default: - none. // Idle awscdk.Duration `field:"optional" json:"idle" yaml:"idle"` }
Represents timeouts for TCP protocols.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import cdk "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdk" tcpTimeout := &TcpTimeout{ Idle: cdk.Duration_Minutes(jsii.Number(30)), }
type TcpVirtualNodeListenerOptions ¶
type TcpVirtualNodeListenerOptions struct { // Connection pool for http listeners. // Default: - None. // ConnectionPool *TcpConnectionPool `field:"optional" json:"connectionPool" yaml:"connectionPool"` // The health check information for the listener. // Default: - no healthcheck. // HealthCheck HealthCheck `field:"optional" json:"healthCheck" yaml:"healthCheck"` // Represents the configuration for enabling outlier detection. // Default: - none. // OutlierDetection *OutlierDetection `field:"optional" json:"outlierDetection" yaml:"outlierDetection"` // Port to listen for connections on. // Default: - 8080. // Port *float64 `field:"optional" json:"port" yaml:"port"` // Timeout for TCP protocol. // Default: - None. // Timeout *TcpTimeout `field:"optional" json:"timeout" yaml:"timeout"` // Represents the configuration for enabling TLS on a listener. // Default: - none. // Tls *ListenerTlsOptions `field:"optional" json:"tls" yaml:"tls"` }
Represent the TCP Node Listener property.
Example:
// 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" import "github.com/aws/aws-cdk-go/awscdk" var healthCheck healthCheck var mutualTlsValidationTrust mutualTlsValidationTrust var subjectAlternativeNames subjectAlternativeNames var tlsCertificate tlsCertificate tcpVirtualNodeListenerOptions := &TcpVirtualNodeListenerOptions{ ConnectionPool: &TcpConnectionPool{ MaxConnections: jsii.Number(123), }, HealthCheck: healthCheck, OutlierDetection: &OutlierDetection{ BaseEjectionDuration: cdk.Duration_Minutes(jsii.Number(30)), Interval: cdk.Duration_*Minutes(jsii.Number(30)), MaxEjectionPercent: jsii.Number(123), MaxServerErrors: jsii.Number(123), }, Port: jsii.Number(123), Timeout: &TcpTimeout{ Idle: cdk.Duration_*Minutes(jsii.Number(30)), }, Tls: &ListenerTlsOptions{ Certificate: tlsCertificate, Mode: awscdk.Aws_appmesh.TlsMode_STRICT, // the properties below are optional MutualTlsValidation: &MutualTlsValidation{ Trust: mutualTlsValidationTrust, // the properties below are optional SubjectAlternativeNames: subjectAlternativeNames, }, }, }
type TlsCertificate ¶
type TlsCertificate interface { // Returns TLS certificate based provider. Bind(_scope constructs.Construct) *TlsCertificateConfig }
Represents a TLS certificate.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate var cert certificate var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Acm(cert), }, }), }, }) // A Virtual Gateway with listener TLS from a customer provided file certificate gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), }, }), }, VirtualGatewayName: jsii.String("gateway"), }) // A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 := appmesh.NewVirtualGateway(this, jsii.String("gateway2"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []*virtualGatewayListener{ appmesh.*virtualGatewayListener_Http2(&Http2GatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Sds(jsii.String("secrete_certificate")), }, }), }, VirtualGatewayName: jsii.String("gateway2"), })
func MutualTlsCertificate_Acm ¶
func MutualTlsCertificate_Acm(certificate awscertificatemanager.ICertificate) TlsCertificate
Returns an ACM TLS Certificate.
func TlsCertificate_Acm ¶
func TlsCertificate_Acm(certificate awscertificatemanager.ICertificate) TlsCertificate
Returns an ACM TLS Certificate.
type TlsCertificateConfig ¶
type TlsCertificateConfig struct { // The CFN shape for a TLS certificate. TlsCertificate *CfnVirtualNode_ListenerTlsCertificateProperty `field:"required" json:"tlsCertificate" yaml:"tlsCertificate"` }
A wrapper for the tls config returned by `TlsCertificate.bind`.
Example:
// 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" tlsCertificateConfig := &TlsCertificateConfig{ TlsCertificate: &ListenerTlsCertificateProperty{ Acm: &ListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &ListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &ListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, }
type TlsClientPolicy ¶
type TlsClientPolicy struct { // Represents the object for TLS validation context. Validation *TlsValidation `field:"required" json:"validation" yaml:"validation"` // Whether the policy is enforced. // Default: true. // Enforce *bool `field:"optional" json:"enforce" yaml:"enforce"` // Represents a client TLS certificate. // // The certificate will be sent only if the server requests it, enabling mutual TLS. // Default: - client TLS certificate is not provided. // MutualTlsCertificate MutualTlsCertificate `field:"optional" json:"mutualTlsCertificate" yaml:"mutualTlsCertificate"` // TLS is enforced on the ports specified here. // // If no ports are specified, TLS will be enforced on all the ports. // Default: - all ports. // Ports *[]*float64 `field:"optional" json:"ports" yaml:"ports"` }
Represents the properties needed to define client policy.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
type TlsMode ¶
type TlsMode string
Enum of supported TLS modes.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate var cert certificate var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Grpc(&GrpcVirtualNodeListenerOptions{ Port: jsii.Number(80), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Acm(cert), }, }), }, }) // A Virtual Gateway with listener TLS from a customer provided file certificate gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_File(jsii.String("path/to/certChain"), jsii.String("path/to/privateKey")), }, }), }, VirtualGatewayName: jsii.String("gateway"), }) // A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 := appmesh.NewVirtualGateway(this, jsii.String("gateway2"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []*virtualGatewayListener{ appmesh.*virtualGatewayListener_Http2(&Http2GatewayListenerOptions{ Port: jsii.Number(8080), Tls: &ListenerTlsOptions{ Mode: appmesh.TlsMode_STRICT, Certificate: appmesh.TlsCertificate_Sds(jsii.String("secrete_certificate")), }, }), }, VirtualGatewayName: jsii.String("gateway2"), })
type TlsValidation ¶
type TlsValidation struct { // Reference to where to retrieve the trust chain. Trust TlsValidationTrust `field:"required" json:"trust" yaml:"trust"` // Represents the subject alternative names (SANs) secured by the certificate. // // SANs must be in the FQDN or URI format. // Default: - If you don't specify SANs on the terminating mesh endpoint, // the Envoy proxy for that node doesn't verify the SAN on a peer client certificate. // If you don't specify SANs on the originating mesh endpoint, // the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. // SubjectAlternativeNames SubjectAlternativeNames `field:"optional" json:"subjectAlternativeNames" yaml:"subjectAlternativeNames"` }
Represents the properties needed to define TLS Validation context.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
type TlsValidationTrust ¶
type TlsValidationTrust interface { // Returns Trust context based on trust type. Bind(scope constructs.Construct) *TlsValidationTrustConfig }
Defines the TLS Validation Context Trust.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
func MutualTlsValidationTrust_Acm ¶
func MutualTlsValidationTrust_Acm(certificateAuthorities *[]awsacmpca.ICertificateAuthority) TlsValidationTrust
TLS Validation Context Trust for ACM Private Certificate Authority (CA).
func TlsValidationTrust_Acm ¶
func TlsValidationTrust_Acm(certificateAuthorities *[]awsacmpca.ICertificateAuthority) TlsValidationTrust
TLS Validation Context Trust for ACM Private Certificate Authority (CA).
type TlsValidationTrustConfig ¶
type TlsValidationTrustConfig struct { // VirtualNode CFN configuration for client policy's TLS Validation Trust. TlsValidationTrust *CfnVirtualNode_TlsValidationContextTrustProperty `field:"required" json:"tlsValidationTrust" yaml:"tlsValidationTrust"` }
All Properties for TLS Validation Trusts for both Client Policy and Listener.
Example:
// 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" tlsValidationTrustConfig := &TlsValidationTrustConfig{ TlsValidationTrust: &TlsValidationContextTrustProperty{ Acm: &TlsValidationContextAcmTrustProperty{ CertificateAuthorityArns: []*string{ jsii.String("certificateAuthorityArns"), }, }, File: &TlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &TlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, }
type VirtualGateway ¶
type VirtualGateway interface { awscdk.Resource IVirtualGateway // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment Listeners() *[]*VirtualGatewayListenerConfig // The Mesh that the VirtualGateway belongs to. Mesh() IMesh // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // The Amazon Resource Name (ARN) for the VirtualGateway. VirtualGatewayArn() *string // The name of the VirtualGateway. VirtualGatewayName() *string // Utility method to add a new GatewayRoute to the VirtualGateway. AddGatewayRoute(id *string, props *GatewayRouteBaseProps) GatewayRoute // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Grants the given entity `appmesh:StreamAggregatedResources`. GrantStreamAggregatedResources(identity awsiam.IGrantable) awsiam.Grant // Returns a string representation of this construct. ToString() *string }
VirtualGateway represents a newly defined App Mesh Virtual Gateway.
A virtual gateway allows resources that are outside of your mesh to communicate to resources that are inside of your mesh.
Example:
// A Virtual Node with a gRPC listener with a connection pool set var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS. // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints, // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints. // By default, the response type is assumed to be LOAD_BALANCER ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node"), appmesh.DnsResponseType_ENDPOINTS), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(80), ConnectionPool: &HttpConnectionPool{ MaxConnections: jsii.Number(100), MaxPendingRequests: jsii.Number(10), }, }), }, }) // A Virtual Gateway with a gRPC listener with a connection pool set gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: Mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ Port: jsii.Number(8080), ConnectionPool: &GrpcConnectionPool{ MaxRequests: jsii.Number(10), }, }), }, VirtualGatewayName: jsii.String("gateway"), })
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_gateways.html
func NewVirtualGateway ¶
func NewVirtualGateway(scope constructs.Construct, id *string, props *VirtualGatewayProps) VirtualGateway
type VirtualGatewayAttributes ¶
type VirtualGatewayAttributes struct { // The Mesh that the VirtualGateway belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` // The name of the VirtualGateway. VirtualGatewayName *string `field:"required" json:"virtualGatewayName" yaml:"virtualGatewayName"` }
Unterface with properties necessary to import a reusable VirtualGateway.
Example:
// 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" var mesh mesh virtualGatewayAttributes := &VirtualGatewayAttributes{ Mesh: mesh, VirtualGatewayName: jsii.String("virtualGatewayName"), }
type VirtualGatewayBaseProps ¶
type VirtualGatewayBaseProps struct { // Access Logging Configuration for the VirtualGateway. // Default: - no access logging. // AccessLog AccessLog `field:"optional" json:"accessLog" yaml:"accessLog"` // Default Configuration Virtual Node uses to communicate with Virtual Service. // Default: - No Config. // BackendDefaults *BackendDefaults `field:"optional" json:"backendDefaults" yaml:"backendDefaults"` // Listeners for the VirtualGateway. // // Only one is supported. // Default: - Single HTTP listener on port 8080. // Listeners *[]VirtualGatewayListener `field:"optional" json:"listeners" yaml:"listeners"` // Name of the VirtualGateway. // Default: - A name is automatically determined. // VirtualGatewayName *string `field:"optional" json:"virtualGatewayName" yaml:"virtualGatewayName"` }
Basic configuration properties for a VirtualGateway.
Example:
var mesh mesh gateway := mesh.addVirtualGateway(jsii.String("gateway"), &VirtualGatewayBaseProps{ AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), VirtualGatewayName: jsii.String("virtualGateway"), Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Http(&HttpGatewayListenerOptions{ Port: jsii.Number(443), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ Interval: awscdk.Duration_Seconds(jsii.Number(10)), }), }), }, })
type VirtualGatewayListener ¶
type VirtualGatewayListener interface { // Called when the GatewayListener type is initialized. // // Can be used to enforce // mutual exclusivity. Bind(scope constructs.Construct) *VirtualGatewayListenerConfig }
Represents the properties needed to define listeners for a VirtualGateway.
Example:
var mesh mesh certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Http(&HttpGatewayListenerOptions{ Port: jsii.Number(443), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ Interval: awscdk.Duration_Seconds(jsii.Number(10)), }), }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), VirtualGatewayName: jsii.String("virtualGateway"), })
func VirtualGatewayListener_Grpc ¶
func VirtualGatewayListener_Grpc(options *GrpcGatewayListenerOptions) VirtualGatewayListener
Returns a GRPC Listener for a VirtualGateway.
func VirtualGatewayListener_Http ¶
func VirtualGatewayListener_Http(options *HttpGatewayListenerOptions) VirtualGatewayListener
Returns an HTTP Listener for a VirtualGateway.
func VirtualGatewayListener_Http2 ¶
func VirtualGatewayListener_Http2(options *Http2GatewayListenerOptions) VirtualGatewayListener
Returns an HTTP2 Listener for a VirtualGateway.
type VirtualGatewayListenerConfig ¶
type VirtualGatewayListenerConfig struct { // Single listener config for a VirtualGateway. Listener *CfnVirtualGateway_VirtualGatewayListenerProperty `field:"required" json:"listener" yaml:"listener"` }
Properties for a VirtualGateway listener.
Example:
// 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" virtualGatewayListenerConfig := &VirtualGatewayListenerConfig{ Listener: &VirtualGatewayListenerProperty{ PortMapping: &VirtualGatewayPortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, // the properties below are optional ConnectionPool: &VirtualGatewayConnectionPoolProperty{ Grpc: &VirtualGatewayGrpcConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, Http: &VirtualGatewayHttpConnectionPoolProperty{ MaxConnections: jsii.Number(123), // the properties below are optional MaxPendingRequests: jsii.Number(123), }, Http2: &VirtualGatewayHttp2ConnectionPoolProperty{ MaxRequests: jsii.Number(123), }, }, HealthCheck: &VirtualGatewayHealthCheckPolicyProperty{ 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), }, Tls: &VirtualGatewayListenerTlsProperty{ Certificate: &VirtualGatewayListenerTlsCertificateProperty{ Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{ CertificateArn: jsii.String("certificateArn"), }, File: &VirtualGatewayListenerTlsFileCertificateProperty{ CertificateChain: jsii.String("certificateChain"), PrivateKey: jsii.String("privateKey"), }, Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{ SecretName: jsii.String("secretName"), }, }, Mode: jsii.String("mode"), // the properties below are optional Validation: &VirtualGatewayListenerTlsValidationContextProperty{ Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{ File: &VirtualGatewayTlsValidationContextFileTrustProperty{ CertificateChain: jsii.String("certificateChain"), }, Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{ SecretName: jsii.String("secretName"), }, }, // the properties below are optional SubjectAlternativeNames: &SubjectAlternativeNamesProperty{ Match: &SubjectAlternativeNameMatchersProperty{ Exact: []*string{ jsii.String("exact"), }, }, }, }, }, }, }
type VirtualGatewayProps ¶
type VirtualGatewayProps struct { // Access Logging Configuration for the VirtualGateway. // Default: - no access logging. // AccessLog AccessLog `field:"optional" json:"accessLog" yaml:"accessLog"` // Default Configuration Virtual Node uses to communicate with Virtual Service. // Default: - No Config. // BackendDefaults *BackendDefaults `field:"optional" json:"backendDefaults" yaml:"backendDefaults"` // Listeners for the VirtualGateway. // // Only one is supported. // Default: - Single HTTP listener on port 8080. // Listeners *[]VirtualGatewayListener `field:"optional" json:"listeners" yaml:"listeners"` // Name of the VirtualGateway. // Default: - A name is automatically determined. // VirtualGatewayName *string `field:"optional" json:"virtualGatewayName" yaml:"virtualGatewayName"` // The Mesh which the VirtualGateway belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` }
Properties used when creating a new VirtualGateway.
Example:
var mesh mesh certificateAuthorityArn := "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ Mesh: mesh, Listeners: []virtualGatewayListener{ appmesh.*virtualGatewayListener_Http(&HttpGatewayListenerOptions{ Port: jsii.Number(443), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ Interval: awscdk.Duration_Seconds(jsii.Number(10)), }), }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Ports: []*f64{ jsii.Number(8080), jsii.Number(8081), }, Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_Acm([]iCertificateAuthority{ acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("certificate"), certificateAuthorityArn), }), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), VirtualGatewayName: jsii.String("virtualGateway"), })
type VirtualNode ¶
type VirtualNode interface { awscdk.Resource IVirtualNode // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment // The Mesh which the VirtualNode belongs to. Mesh() IMesh // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // The Amazon Resource Name belonging to the VirtualNode. VirtualNodeArn() *string // The name of the VirtualNode. VirtualNodeName() *string // Add a Virtual Services that this node is expected to send outbound traffic to. AddBackend(backend Backend) // Utility method to add an inbound listener for this VirtualNode. // // Note: At this time, Virtual Nodes support at most one listener. Adding // more than one will result in a failure to deploy the CloudFormation stack. // However, the App Mesh team has plans to add support for multiple listeners // on Virtual Nodes and Virtual Routers. // See: https://github.com/aws/aws-app-mesh-roadmap/issues/120 // AddListener(listener VirtualNodeListener) // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Grants the given entity `appmesh:StreamAggregatedResources`. GrantStreamAggregatedResources(identity awsiam.IGrantable) awsiam.Grant // Returns a string representation of this construct. ToString() *string }
VirtualNode represents a newly defined AppMesh VirtualNode.
Any inbound traffic that your virtual node expects should be specified as a listener. Any outbound traffic that your virtual node expects to reach should be specified as a backend.
Example:
var mesh mesh // Cloud Map service discovery is currently required for host ejection by outlier detection vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ OutlierDetection: &OutlierDetection{ BaseEjectionDuration: awscdk.Duration_Seconds(jsii.Number(10)), Interval: awscdk.Duration_*Seconds(jsii.Number(30)), MaxEjectionPercent: jsii.Number(50), MaxServerErrors: jsii.Number(5), }, }), }, })
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_nodes.html
func NewVirtualNode ¶
func NewVirtualNode(scope constructs.Construct, id *string, props *VirtualNodeProps) VirtualNode
type VirtualNodeAttributes ¶
type VirtualNodeAttributes struct { // The Mesh that the VirtualNode belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` // The name of the VirtualNode. VirtualNodeName *string `field:"required" json:"virtualNodeName" yaml:"virtualNodeName"` }
Interface with properties necessary to import a reusable VirtualNode.
Example:
virtualNodeName := "my-virtual-node" appmesh.VirtualNode_FromVirtualNodeAttributes(this, jsii.String("imported-virtual-node"), &VirtualNodeAttributes{ Mesh: appmesh.Mesh_FromMeshName(this, jsii.String("Mesh"), jsii.String("testMesh")), VirtualNodeName: virtualNodeName, })
type VirtualNodeBaseProps ¶
type VirtualNodeBaseProps struct { // Access Logging Configuration for the virtual node. // Default: - No access logging. // AccessLog AccessLog `field:"optional" json:"accessLog" yaml:"accessLog"` // Default Configuration Virtual Node uses to communicate with Virtual Service. // Default: - No Config. // BackendDefaults *BackendDefaults `field:"optional" json:"backendDefaults" yaml:"backendDefaults"` // Virtual Services that this is node expected to send outbound traffic to. // Default: - No backends. // Backends *[]Backend `field:"optional" json:"backends" yaml:"backends"` // Initial listener for the virtual node. // Default: - No listeners. // Listeners *[]VirtualNodeListener `field:"optional" json:"listeners" yaml:"listeners"` // Defines how upstream clients will discover this VirtualNode. // Default: - No Service Discovery. // ServiceDiscovery ServiceDiscovery `field:"optional" json:"serviceDiscovery" yaml:"serviceDiscovery"` // The name of the VirtualNode. // Default: - A name is automatically determined. // VirtualNodeName *string `field:"optional" json:"virtualNodeName" yaml:"virtualNodeName"` }
Basic configuration properties for a VirtualNode.
Example:
var mesh mesh vpc := ec2.NewVpc(this, jsii.String("vpc")) namespace := cloudmap.NewPrivateDnsNamespace(this, jsii.String("test-namespace"), &PrivateDnsNamespaceProps{ Vpc: Vpc, Name: jsii.String("domain.local"), }) service := namespace.CreateService(jsii.String("Svc")) node := mesh.addVirtualNode(jsii.String("virtual-node"), &VirtualNodeBaseProps{ ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8081), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), // minimum Path: jsii.String("/health-check-path"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), // minimum UnhealthyThreshold: jsii.Number(2), }), }), }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), })
type VirtualNodeListener ¶
type VirtualNodeListener interface { // Binds the current object when adding Listener to a VirtualNode. Bind(scope constructs.Construct) *VirtualNodeListenerConfig }
Defines listener for a VirtualNode.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
func VirtualNodeListener_Grpc ¶
func VirtualNodeListener_Grpc(props *GrpcVirtualNodeListenerOptions) VirtualNodeListener
Returns an GRPC Listener for a VirtualNode.
func VirtualNodeListener_Http ¶
func VirtualNodeListener_Http(props *HttpVirtualNodeListenerOptions) VirtualNodeListener
Returns an HTTP Listener for a VirtualNode.
func VirtualNodeListener_Http2 ¶
func VirtualNodeListener_Http2(props *Http2VirtualNodeListenerOptions) VirtualNodeListener
Returns an HTTP2 Listener for a VirtualNode.
func VirtualNodeListener_Tcp ¶
func VirtualNodeListener_Tcp(props *TcpVirtualNodeListenerOptions) VirtualNodeListener
Returns an TCP Listener for a VirtualNode.
type VirtualNodeListenerConfig ¶
type VirtualNodeListenerConfig struct { // Single listener config for a VirtualNode. Listener *CfnVirtualNode_ListenerProperty `field:"required" json:"listener" yaml:"listener"` }
Properties for a VirtualNode listener.
Example:
// 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" virtualNodeListenerConfig := &VirtualNodeListenerConfig{ Listener: &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"), }, }, }, }, }, }, }
type VirtualNodeProps ¶
type VirtualNodeProps struct { // Access Logging Configuration for the virtual node. // Default: - No access logging. // AccessLog AccessLog `field:"optional" json:"accessLog" yaml:"accessLog"` // Default Configuration Virtual Node uses to communicate with Virtual Service. // Default: - No Config. // BackendDefaults *BackendDefaults `field:"optional" json:"backendDefaults" yaml:"backendDefaults"` // Virtual Services that this is node expected to send outbound traffic to. // Default: - No backends. // Backends *[]Backend `field:"optional" json:"backends" yaml:"backends"` // Initial listener for the virtual node. // Default: - No listeners. // Listeners *[]VirtualNodeListener `field:"optional" json:"listeners" yaml:"listeners"` // Defines how upstream clients will discover this VirtualNode. // Default: - No Service Discovery. // ServiceDiscovery ServiceDiscovery `field:"optional" json:"serviceDiscovery" yaml:"serviceDiscovery"` // The name of the VirtualNode. // Default: - A name is automatically determined. // VirtualNodeName *string `field:"optional" json:"virtualNodeName" yaml:"virtualNodeName"` // The Mesh which the VirtualNode belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` }
The properties used when creating a new VirtualNode.
Example:
var mesh mesh var service service node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_CloudMap(service), Listeners: []virtualNodeListener{ appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ Port: jsii.Number(8080), HealthCheck: appmesh.HealthCheck_Http(&HttpHealthCheckOptions{ HealthyThreshold: jsii.Number(3), Interval: awscdk.Duration_Seconds(jsii.Number(5)), Path: jsii.String("/ping"), Timeout: awscdk.Duration_*Seconds(jsii.Number(2)), UnhealthyThreshold: jsii.Number(2), }), Timeout: &HttpTimeout{ Idle: awscdk.Duration_*Seconds(jsii.Number(5)), }, }), }, BackendDefaults: &BackendDefaults{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: appmesh.TlsValidationTrust_File(jsii.String("/keys/local_cert_chain.pem")), }, }, }, AccessLog: appmesh.AccessLog_FromFilePath(jsii.String("/dev/stdout")), }) cdk.Tags_Of(node).Add(jsii.String("Environment"), jsii.String("Dev"))
type VirtualRouter ¶
type VirtualRouter interface { awscdk.Resource IVirtualRouter // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment // The Mesh which the VirtualRouter belongs to. Mesh() IMesh // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // The Amazon Resource Name (ARN) for the VirtualRouter. VirtualRouterArn() *string // The name of the VirtualRouter. VirtualRouterName() *string // Add a single route to the router. AddRoute(id *string, props *RouteBaseProps) Route // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Returns a string representation of this construct. ToString() *string }
Example:
var mesh mesh router := mesh.addVirtualRouter(jsii.String("router"), &VirtualRouterBaseProps{ Listeners: []virtualRouterListener{ appmesh.*virtualRouterListener_Http(jsii.Number(8080)), }, })
func NewVirtualRouter ¶
func NewVirtualRouter(scope constructs.Construct, id *string, props *VirtualRouterProps) VirtualRouter
type VirtualRouterAttributes ¶
type VirtualRouterAttributes struct { // The Mesh which the VirtualRouter belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` // The name of the VirtualRouter. VirtualRouterName *string `field:"required" json:"virtualRouterName" yaml:"virtualRouterName"` }
Interface with properties ncecessary to import a reusable VirtualRouter.
Example:
// 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" var mesh mesh virtualRouterAttributes := &VirtualRouterAttributes{ Mesh: mesh, VirtualRouterName: jsii.String("virtualRouterName"), }
type VirtualRouterBaseProps ¶
type VirtualRouterBaseProps struct { // Listener specification for the VirtualRouter. // Default: - A listener on HTTP port 8080. // Listeners *[]VirtualRouterListener `field:"optional" json:"listeners" yaml:"listeners"` // The name of the VirtualRouter. // Default: - A name is automatically determined. // VirtualRouterName *string `field:"optional" json:"virtualRouterName" yaml:"virtualRouterName"` }
Interface with base properties all routers willl inherit.
Example:
var mesh mesh router := mesh.addVirtualRouter(jsii.String("router"), &VirtualRouterBaseProps{ Listeners: []virtualRouterListener{ appmesh.*virtualRouterListener_Http(jsii.Number(8080)), }, })
type VirtualRouterListener ¶
type VirtualRouterListener interface { // Called when the VirtualRouterListener type is initialized. // // Can be used to enforce // mutual exclusivity. Bind(scope constructs.Construct) *VirtualRouterListenerConfig }
Represents the properties needed to define listeners for a VirtualRouter.
Example:
var mesh mesh router := mesh.addVirtualRouter(jsii.String("router"), &VirtualRouterBaseProps{ Listeners: []virtualRouterListener{ appmesh.*virtualRouterListener_Http(jsii.Number(8080)), }, })
func VirtualRouterListener_Grpc ¶
func VirtualRouterListener_Grpc(port *float64) VirtualRouterListener
Returns a GRPC Listener for a VirtualRouter.
func VirtualRouterListener_Http ¶
func VirtualRouterListener_Http(port *float64) VirtualRouterListener
Returns an HTTP Listener for a VirtualRouter.
func VirtualRouterListener_Http2 ¶
func VirtualRouterListener_Http2(port *float64) VirtualRouterListener
Returns an HTTP2 Listener for a VirtualRouter.
func VirtualRouterListener_Tcp ¶
func VirtualRouterListener_Tcp(port *float64) VirtualRouterListener
Returns a TCP Listener for a VirtualRouter.
type VirtualRouterListenerConfig ¶
type VirtualRouterListenerConfig struct { // Single listener config for a VirtualRouter. Listener *CfnVirtualRouter_VirtualRouterListenerProperty `field:"required" json:"listener" yaml:"listener"` }
Properties for a VirtualRouter listener.
Example:
// 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" virtualRouterListenerConfig := &VirtualRouterListenerConfig{ Listener: &VirtualRouterListenerProperty{ PortMapping: &PortMappingProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), }, }, }
type VirtualRouterProps ¶
type VirtualRouterProps struct { // Listener specification for the VirtualRouter. // Default: - A listener on HTTP port 8080. // Listeners *[]VirtualRouterListener `field:"optional" json:"listeners" yaml:"listeners"` // The name of the VirtualRouter. // Default: - A name is automatically determined. // VirtualRouterName *string `field:"optional" json:"virtualRouterName" yaml:"virtualRouterName"` // The Mesh which the VirtualRouter belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` }
The properties used when creating a new VirtualRouter.
Example:
var infraStack stack var appStack stack mesh := appmesh.NewMesh(infraStack, jsii.String("AppMesh"), &MeshProps{ MeshName: jsii.String("myAwsMesh"), EgressFilter: appmesh.MeshFilterType_ALLOW_ALL, }) // the VirtualRouter will belong to 'appStack', // even though the Mesh belongs to 'infraStack' router := appmesh.NewVirtualRouter(appStack, jsii.String("router"), &VirtualRouterProps{ Mesh: Mesh, // notice that mesh is a required property when creating a router with the 'new' statement Listeners: []virtualRouterListener{ appmesh.*virtualRouterListener_Http(jsii.Number(8081)), }, })
type VirtualService ¶
type VirtualService interface { awscdk.Resource IVirtualService // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *awscdk.ResourceEnvironment // The Mesh which the VirtualService belongs to. Mesh() IMesh // The tree node. Node() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. PhysicalName() *string // The stack in which this resource is defined. Stack() awscdk.Stack // The Amazon Resource Name (ARN) for the virtual service. VirtualServiceArn() *string // The name of the VirtualService, it is recommended this follows the fully-qualified domain name format. VirtualServiceName() *string // Apply the given removal policy to this resource. // // 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`). ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. GetResourceNameAttribute(nameAttr *string) *string // Returns a string representation of this construct. ToString() *string }
VirtualService represents a service inside an AppMesh.
It routes traffic either to a Virtual Node or to a Virtual Router.
Example:
var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), }) virtualService := appmesh.NewVirtualService(this, jsii.String("service-1"), &VirtualServiceProps{ VirtualServiceProvider: appmesh.VirtualServiceProvider_VirtualNode(node), VirtualServiceName: jsii.String("service1.domain.local"), }) node.AddBackend(appmesh.Backend_VirtualService(virtualService))
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_services.html
func NewVirtualService ¶
func NewVirtualService(scope constructs.Construct, id *string, props *VirtualServiceProps) VirtualService
type VirtualServiceAttributes ¶
type VirtualServiceAttributes struct { // The Mesh which the VirtualService belongs to. Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` // The name of the VirtualService, it is recommended this follows the fully-qualified domain name format. VirtualServiceName *string `field:"required" json:"virtualServiceName" yaml:"virtualServiceName"` }
Interface with properties ncecessary to import a reusable VirtualService.
Example:
// 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" var mesh mesh virtualServiceAttributes := &VirtualServiceAttributes{ Mesh: mesh, VirtualServiceName: jsii.String("virtualServiceName"), }
type VirtualServiceBackendOptions ¶
type VirtualServiceBackendOptions struct { // TLS properties for Client policy for the backend. // Default: - none. // TlsClientPolicy *TlsClientPolicy `field:"optional" json:"tlsClientPolicy" yaml:"tlsClientPolicy"` }
Represents the properties needed to define a Virtual Service backend.
Example:
// 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" var mutualTlsCertificate mutualTlsCertificate var subjectAlternativeNames subjectAlternativeNames var tlsValidationTrust tlsValidationTrust virtualServiceBackendOptions := &VirtualServiceBackendOptions{ TlsClientPolicy: &TlsClientPolicy{ Validation: &TlsValidation{ Trust: tlsValidationTrust, // the properties below are optional SubjectAlternativeNames: subjectAlternativeNames, }, // the properties below are optional Enforce: jsii.Boolean(false), MutualTlsCertificate: mutualTlsCertificate, Ports: []*f64{ jsii.Number(123), }, }, }
type VirtualServiceProps ¶
type VirtualServiceProps struct { // The VirtualNode or VirtualRouter which the VirtualService uses as its provider. VirtualServiceProvider VirtualServiceProvider `field:"required" json:"virtualServiceProvider" yaml:"virtualServiceProvider"` // The name of the VirtualService. // // It is recommended this follows the fully-qualified domain name format, // such as "my-service.default.svc.cluster.local". // // Example value: `service.domain.local` // Default: - A name is automatically generated. // VirtualServiceName *string `field:"optional" json:"virtualServiceName" yaml:"virtualServiceName"` }
The properties applied to the VirtualService being defined.
Example:
var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), }) virtualService := appmesh.NewVirtualService(this, jsii.String("service-1"), &VirtualServiceProps{ VirtualServiceProvider: appmesh.VirtualServiceProvider_VirtualNode(node), VirtualServiceName: jsii.String("service1.domain.local"), }) node.AddBackend(appmesh.Backend_VirtualService(virtualService))
type VirtualServiceProvider ¶
type VirtualServiceProvider interface { // Enforces mutual exclusivity for VirtualService provider types. Bind(_construct constructs.Construct) *VirtualServiceProviderConfig }
Represents the properties needed to define the provider for a VirtualService.
Example:
var mesh mesh node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ Mesh: Mesh, ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node")), }) virtualService := appmesh.NewVirtualService(this, jsii.String("service-1"), &VirtualServiceProps{ VirtualServiceProvider: appmesh.VirtualServiceProvider_VirtualNode(node), VirtualServiceName: jsii.String("service1.domain.local"), }) node.AddBackend(appmesh.Backend_VirtualService(virtualService))
func VirtualServiceProvider_None ¶
func VirtualServiceProvider_None(mesh IMesh) VirtualServiceProvider
Returns an Empty Provider for a VirtualService.
This provides no routing capabilities and should only be used as a placeholder.
func VirtualServiceProvider_VirtualNode ¶
func VirtualServiceProvider_VirtualNode(virtualNode IVirtualNode) VirtualServiceProvider
Returns a VirtualNode based Provider for a VirtualService.
func VirtualServiceProvider_VirtualRouter ¶
func VirtualServiceProvider_VirtualRouter(virtualRouter IVirtualRouter) VirtualServiceProvider
Returns a VirtualRouter based Provider for a VirtualService.
type VirtualServiceProviderConfig ¶
type VirtualServiceProviderConfig struct { // Mesh the Provider is using. // Default: - none. // Mesh IMesh `field:"required" json:"mesh" yaml:"mesh"` // Virtual Node based provider. // Default: - none. // VirtualNodeProvider *CfnVirtualService_VirtualNodeServiceProviderProperty `field:"optional" json:"virtualNodeProvider" yaml:"virtualNodeProvider"` // Virtual Router based provider. // Default: - none. // VirtualRouterProvider *CfnVirtualService_VirtualRouterServiceProviderProperty `field:"optional" json:"virtualRouterProvider" yaml:"virtualRouterProvider"` }
Properties for a VirtualService provider.
Example:
// 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" var mesh mesh virtualServiceProviderConfig := &VirtualServiceProviderConfig{ Mesh: mesh, // the properties below are optional VirtualNodeProvider: &VirtualNodeServiceProviderProperty{ VirtualNodeName: jsii.String("virtualNodeName"), }, VirtualRouterProvider: &VirtualRouterServiceProviderProperty{ VirtualRouterName: jsii.String("virtualRouterName"), }, }
type WeightedTarget ¶
type WeightedTarget struct { // The VirtualNode the route points to. VirtualNode IVirtualNode `field:"required" json:"virtualNode" yaml:"virtualNode"` // The port to match from the request. // Default: - do not match on port. // Port *float64 `field:"optional" json:"port" yaml:"port"` // The weight for the target. // Default: 1. // Weight *float64 `field:"optional" json:"weight" yaml:"weight"` }
Properties for the Weighted Targets in the route.
Example:
// 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" var virtualNode virtualNode weightedTarget := &WeightedTarget{ VirtualNode: virtualNode, // the properties below are optional Port: jsii.Number(123), Weight: jsii.Number(123), }
Source Files ¶
- AccessLog.go
- AccessLogConfig.go
- AccessLog__checks.go
- Backend.go
- BackendConfig.go
- BackendDefaults.go
- Backend__checks.go
- CfnGatewayRoute.go
- CfnGatewayRouteProps.go
- CfnGatewayRoute_GatewayRouteHostnameMatchProperty.go
- CfnGatewayRoute_GatewayRouteHostnameRewriteProperty.go
- CfnGatewayRoute_GatewayRouteMetadataMatchProperty.go
- CfnGatewayRoute_GatewayRouteRangeMatchProperty.go
- CfnGatewayRoute_GatewayRouteSpecProperty.go
- CfnGatewayRoute_GatewayRouteTargetProperty.go
- CfnGatewayRoute_GatewayRouteVirtualServiceProperty.go
- CfnGatewayRoute_GrpcGatewayRouteActionProperty.go
- CfnGatewayRoute_GrpcGatewayRouteMatchProperty.go
- CfnGatewayRoute_GrpcGatewayRouteMetadataProperty.go
- CfnGatewayRoute_GrpcGatewayRouteProperty.go
- CfnGatewayRoute_GrpcGatewayRouteRewriteProperty.go
- CfnGatewayRoute_HttpGatewayRouteActionProperty.go
- CfnGatewayRoute_HttpGatewayRouteHeaderMatchProperty.go
- CfnGatewayRoute_HttpGatewayRouteHeaderProperty.go
- CfnGatewayRoute_HttpGatewayRouteMatchProperty.go
- CfnGatewayRoute_HttpGatewayRoutePathRewriteProperty.go
- CfnGatewayRoute_HttpGatewayRoutePrefixRewriteProperty.go
- CfnGatewayRoute_HttpGatewayRouteProperty.go
- CfnGatewayRoute_HttpGatewayRouteRewriteProperty.go
- CfnGatewayRoute_HttpPathMatchProperty.go
- CfnGatewayRoute_HttpQueryParameterMatchProperty.go
- CfnGatewayRoute_QueryParameterProperty.go
- CfnGatewayRoute__checks.go
- CfnMesh.go
- CfnMeshProps.go
- CfnMesh_EgressFilterProperty.go
- CfnMesh_MeshServiceDiscoveryProperty.go
- CfnMesh_MeshSpecProperty.go
- CfnMesh__checks.go
- CfnRoute.go
- CfnRouteProps.go
- CfnRoute_DurationProperty.go
- CfnRoute_GrpcRetryPolicyProperty.go
- CfnRoute_GrpcRouteActionProperty.go
- CfnRoute_GrpcRouteMatchProperty.go
- CfnRoute_GrpcRouteMetadataMatchMethodProperty.go
- CfnRoute_GrpcRouteMetadataProperty.go
- CfnRoute_GrpcRouteProperty.go
- CfnRoute_GrpcTimeoutProperty.go
- CfnRoute_HeaderMatchMethodProperty.go
- CfnRoute_HttpPathMatchProperty.go
- CfnRoute_HttpQueryParameterMatchProperty.go
- CfnRoute_HttpRetryPolicyProperty.go
- CfnRoute_HttpRouteActionProperty.go
- CfnRoute_HttpRouteHeaderProperty.go
- CfnRoute_HttpRouteMatchProperty.go
- CfnRoute_HttpRouteProperty.go
- CfnRoute_HttpTimeoutProperty.go
- CfnRoute_MatchRangeProperty.go
- CfnRoute_QueryParameterProperty.go
- CfnRoute_RouteSpecProperty.go
- CfnRoute_TcpRouteActionProperty.go
- CfnRoute_TcpRouteMatchProperty.go
- CfnRoute_TcpRouteProperty.go
- CfnRoute_TcpTimeoutProperty.go
- CfnRoute_WeightedTargetProperty.go
- CfnRoute__checks.go
- CfnVirtualGateway.go
- CfnVirtualGatewayProps.go
- CfnVirtualGateway_JsonFormatRefProperty.go
- CfnVirtualGateway_LoggingFormatProperty.go
- CfnVirtualGateway_SubjectAlternativeNameMatchersProperty.go
- CfnVirtualGateway_SubjectAlternativeNamesProperty.go
- CfnVirtualGateway_VirtualGatewayAccessLogProperty.go
- CfnVirtualGateway_VirtualGatewayBackendDefaultsProperty.go
- CfnVirtualGateway_VirtualGatewayClientPolicyProperty.go
- CfnVirtualGateway_VirtualGatewayClientPolicyTlsProperty.go
- CfnVirtualGateway_VirtualGatewayClientTlsCertificateProperty.go
- CfnVirtualGateway_VirtualGatewayConnectionPoolProperty.go
- CfnVirtualGateway_VirtualGatewayFileAccessLogProperty.go
- CfnVirtualGateway_VirtualGatewayGrpcConnectionPoolProperty.go
- CfnVirtualGateway_VirtualGatewayHealthCheckPolicyProperty.go
- CfnVirtualGateway_VirtualGatewayHttp2ConnectionPoolProperty.go
- CfnVirtualGateway_VirtualGatewayHttpConnectionPoolProperty.go
- CfnVirtualGateway_VirtualGatewayListenerProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsAcmCertificateProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsCertificateProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsFileCertificateProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsSdsCertificateProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextProperty.go
- CfnVirtualGateway_VirtualGatewayListenerTlsValidationContextTrustProperty.go
- CfnVirtualGateway_VirtualGatewayLoggingProperty.go
- CfnVirtualGateway_VirtualGatewayPortMappingProperty.go
- CfnVirtualGateway_VirtualGatewaySpecProperty.go
- CfnVirtualGateway_VirtualGatewayTlsValidationContextAcmTrustProperty.go
- CfnVirtualGateway_VirtualGatewayTlsValidationContextFileTrustProperty.go
- CfnVirtualGateway_VirtualGatewayTlsValidationContextProperty.go
- CfnVirtualGateway_VirtualGatewayTlsValidationContextSdsTrustProperty.go
- CfnVirtualGateway_VirtualGatewayTlsValidationContextTrustProperty.go
- CfnVirtualGateway__checks.go
- CfnVirtualNode.go
- CfnVirtualNodeProps.go
- CfnVirtualNode_AccessLogProperty.go
- CfnVirtualNode_AwsCloudMapInstanceAttributeProperty.go
- CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty.go
- CfnVirtualNode_BackendDefaultsProperty.go
- CfnVirtualNode_BackendProperty.go
- CfnVirtualNode_ClientPolicyProperty.go
- CfnVirtualNode_ClientPolicyTlsProperty.go
- CfnVirtualNode_ClientTlsCertificateProperty.go
- CfnVirtualNode_DnsServiceDiscoveryProperty.go
- CfnVirtualNode_DurationProperty.go
- CfnVirtualNode_FileAccessLogProperty.go
- CfnVirtualNode_GrpcTimeoutProperty.go
- CfnVirtualNode_HealthCheckProperty.go
- CfnVirtualNode_HttpTimeoutProperty.go
- CfnVirtualNode_JsonFormatRefProperty.go
- CfnVirtualNode_ListenerProperty.go
- CfnVirtualNode_ListenerTimeoutProperty.go
- CfnVirtualNode_ListenerTlsAcmCertificateProperty.go
- CfnVirtualNode_ListenerTlsCertificateProperty.go
- CfnVirtualNode_ListenerTlsFileCertificateProperty.go
- CfnVirtualNode_ListenerTlsProperty.go
- CfnVirtualNode_ListenerTlsSdsCertificateProperty.go
- CfnVirtualNode_ListenerTlsValidationContextProperty.go
- CfnVirtualNode_ListenerTlsValidationContextTrustProperty.go
- CfnVirtualNode_LoggingFormatProperty.go
- CfnVirtualNode_LoggingProperty.go
- CfnVirtualNode_OutlierDetectionProperty.go
- CfnVirtualNode_PortMappingProperty.go
- CfnVirtualNode_ServiceDiscoveryProperty.go
- CfnVirtualNode_SubjectAlternativeNameMatchersProperty.go
- CfnVirtualNode_SubjectAlternativeNamesProperty.go
- CfnVirtualNode_TcpTimeoutProperty.go
- CfnVirtualNode_TlsValidationContextAcmTrustProperty.go
- CfnVirtualNode_TlsValidationContextFileTrustProperty.go
- CfnVirtualNode_TlsValidationContextProperty.go
- CfnVirtualNode_TlsValidationContextSdsTrustProperty.go
- CfnVirtualNode_TlsValidationContextTrustProperty.go
- CfnVirtualNode_VirtualNodeConnectionPoolProperty.go
- CfnVirtualNode_VirtualNodeGrpcConnectionPoolProperty.go
- CfnVirtualNode_VirtualNodeHttp2ConnectionPoolProperty.go
- CfnVirtualNode_VirtualNodeHttpConnectionPoolProperty.go
- CfnVirtualNode_VirtualNodeSpecProperty.go
- CfnVirtualNode_VirtualNodeTcpConnectionPoolProperty.go
- CfnVirtualNode_VirtualServiceBackendProperty.go
- CfnVirtualNode__checks.go
- CfnVirtualRouter.go
- CfnVirtualRouterProps.go
- CfnVirtualRouter_PortMappingProperty.go
- CfnVirtualRouter_VirtualRouterListenerProperty.go
- CfnVirtualRouter_VirtualRouterSpecProperty.go
- CfnVirtualRouter__checks.go
- CfnVirtualService.go
- CfnVirtualServiceProps.go
- CfnVirtualService_VirtualNodeServiceProviderProperty.go
- CfnVirtualService_VirtualRouterServiceProviderProperty.go
- CfnVirtualService_VirtualServiceProviderProperty.go
- CfnVirtualService_VirtualServiceSpecProperty.go
- CfnVirtualService__checks.go
- CommonGatewayRouteSpecOptions.go
- DnsResponseType.go
- GatewayRoute.go
- GatewayRouteAttributes.go
- GatewayRouteBaseProps.go
- GatewayRouteHostnameMatch.go
- GatewayRouteHostnameMatchConfig.go
- GatewayRouteHostnameMatch__checks.go
- GatewayRouteProps.go
- GatewayRouteSpec.go
- GatewayRouteSpecConfig.go
- GatewayRouteSpec__checks.go
- GatewayRoute__checks.go
- GrpcConnectionPool.go
- GrpcGatewayListenerOptions.go
- GrpcGatewayRouteMatch.go
- GrpcGatewayRouteSpecOptions.go
- GrpcHealthCheckOptions.go
- GrpcRetryEvent.go
- GrpcRetryPolicy.go
- GrpcRouteMatch.go
- GrpcRouteSpecOptions.go
- GrpcTimeout.go
- GrpcVirtualNodeListenerOptions.go
- HeaderMatch.go
- HeaderMatchConfig.go
- HeaderMatch__checks.go
- HealthCheck.go
- HealthCheckBindOptions.go
- HealthCheckConfig.go
- HealthCheck__checks.go
- Http2ConnectionPool.go
- Http2GatewayListenerOptions.go
- Http2VirtualNodeListenerOptions.go
- HttpConnectionPool.go
- HttpGatewayListenerOptions.go
- HttpGatewayRouteMatch.go
- HttpGatewayRoutePathMatch.go
- HttpGatewayRoutePathMatchConfig.go
- HttpGatewayRoutePathMatch__checks.go
- HttpGatewayRouteSpecOptions.go
- HttpHealthCheckOptions.go
- HttpRetryEvent.go
- HttpRetryPolicy.go
- HttpRouteMatch.go
- HttpRouteMethod.go
- HttpRoutePathMatch.go
- HttpRoutePathMatchConfig.go
- HttpRoutePathMatch__checks.go
- HttpRouteProtocol.go
- HttpRouteSpecOptions.go
- HttpTimeout.go
- HttpVirtualNodeListenerOptions.go
- IGatewayRoute.go
- IMesh.go
- IMesh__checks.go
- IRoute.go
- IVirtualGateway.go
- IVirtualGateway__checks.go
- IVirtualNode.go
- IVirtualNode__checks.go
- IVirtualRouter.go
- IVirtualRouter__checks.go
- IVirtualService.go
- IpPreference.go
- ListenerTlsOptions.go
- LoggingFormat.go
- LoggingFormatConfig.go
- LoggingFormat__checks.go
- Mesh.go
- MeshFilterType.go
- MeshProps.go
- MeshServiceDiscovery.go
- Mesh__checks.go
- MutualTlsCertificate.go
- MutualTlsCertificate__checks.go
- MutualTlsValidation.go
- MutualTlsValidationTrust.go
- MutualTlsValidationTrust__checks.go
- OutlierDetection.go
- QueryParameterMatch.go
- QueryParameterMatchConfig.go
- QueryParameterMatch__checks.go
- Route.go
- RouteAttributes.go
- RouteBaseProps.go
- RouteProps.go
- RouteSpec.go
- RouteSpecConfig.go
- RouteSpecOptionsBase.go
- RouteSpec__checks.go
- Route__checks.go
- ServiceDiscovery.go
- ServiceDiscoveryConfig.go
- ServiceDiscovery__checks.go
- SubjectAlternativeNames.go
- SubjectAlternativeNamesMatcherConfig.go
- SubjectAlternativeNames__checks.go
- TcpConnectionPool.go
- TcpHealthCheckOptions.go
- TcpRetryEvent.go
- TcpRouteSpecOptions.go
- TcpTimeout.go
- TcpVirtualNodeListenerOptions.go
- TlsCertificate.go
- TlsCertificateConfig.go
- TlsCertificate__checks.go
- TlsClientPolicy.go
- TlsMode.go
- TlsValidation.go
- TlsValidationTrust.go
- TlsValidationTrustConfig.go
- TlsValidationTrust__checks.go
- VirtualGateway.go
- VirtualGatewayAttributes.go
- VirtualGatewayBaseProps.go
- VirtualGatewayListener.go
- VirtualGatewayListenerConfig.go
- VirtualGatewayListener__checks.go
- VirtualGatewayProps.go
- VirtualGateway__checks.go
- VirtualNode.go
- VirtualNodeAttributes.go
- VirtualNodeBaseProps.go
- VirtualNodeListener.go
- VirtualNodeListenerConfig.go
- VirtualNodeListener__checks.go
- VirtualNodeProps.go
- VirtualNode__checks.go
- VirtualRouter.go
- VirtualRouterAttributes.go
- VirtualRouterBaseProps.go
- VirtualRouterListener.go
- VirtualRouterListenerConfig.go
- VirtualRouterListener__checks.go
- VirtualRouterProps.go
- VirtualRouter__checks.go
- VirtualService.go
- VirtualServiceAttributes.go
- VirtualServiceBackendOptions.go
- VirtualServiceProps.go
- VirtualServiceProvider.go
- VirtualServiceProviderConfig.go
- VirtualServiceProvider__checks.go
- VirtualService__checks.go
- WeightedTarget.go
- main.go