Documentation ¶
Index ¶
- func CfnAccessLogSubscription_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAccessLogSubscription_IsCfnElement(x interface{}) *bool
- func CfnAccessLogSubscription_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnAccessLogSubscription_IsConstruct(x interface{}) *bool
- func CfnAuthPolicy_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAuthPolicy_IsCfnElement(x interface{}) *bool
- func CfnAuthPolicy_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnAuthPolicy_IsConstruct(x interface{}) *bool
- func CfnListener_CFN_RESOURCE_TYPE_NAME() *string
- func CfnListener_IsCfnElement(x interface{}) *bool
- func CfnListener_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnListener_IsConstruct(x interface{}) *bool
- func CfnResourcePolicy_CFN_RESOURCE_TYPE_NAME() *string
- func CfnResourcePolicy_IsCfnElement(x interface{}) *bool
- func CfnResourcePolicy_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnResourcePolicy_IsConstruct(x interface{}) *bool
- func CfnRule_CFN_RESOURCE_TYPE_NAME() *string
- func CfnRule_IsCfnElement(x interface{}) *bool
- func CfnRule_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnRule_IsConstruct(x interface{}) *bool
- func CfnServiceNetworkServiceAssociation_CFN_RESOURCE_TYPE_NAME() *string
- func CfnServiceNetworkServiceAssociation_IsCfnElement(x interface{}) *bool
- func CfnServiceNetworkServiceAssociation_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnServiceNetworkServiceAssociation_IsConstruct(x interface{}) *bool
- func CfnServiceNetworkVpcAssociation_CFN_RESOURCE_TYPE_NAME() *string
- func CfnServiceNetworkVpcAssociation_IsCfnElement(x interface{}) *bool
- func CfnServiceNetworkVpcAssociation_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnServiceNetworkVpcAssociation_IsConstruct(x interface{}) *bool
- func CfnServiceNetwork_CFN_RESOURCE_TYPE_NAME() *string
- func CfnServiceNetwork_IsCfnElement(x interface{}) *bool
- func CfnServiceNetwork_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnServiceNetwork_IsConstruct(x interface{}) *bool
- func CfnService_CFN_RESOURCE_TYPE_NAME() *string
- func CfnService_IsCfnElement(x interface{}) *bool
- func CfnService_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnService_IsConstruct(x interface{}) *bool
- func CfnTargetGroup_CFN_RESOURCE_TYPE_NAME() *string
- func CfnTargetGroup_IsCfnElement(x interface{}) *bool
- func CfnTargetGroup_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnTargetGroup_IsConstruct(x interface{}) *bool
- func NewCfnAccessLogSubscription_Override(c CfnAccessLogSubscription, scope awscdk.Construct, id *string, ...)
- func NewCfnAuthPolicy_Override(c CfnAuthPolicy, scope awscdk.Construct, id *string, props *CfnAuthPolicyProps)
- func NewCfnListener_Override(c CfnListener, scope awscdk.Construct, id *string, props *CfnListenerProps)
- func NewCfnResourcePolicy_Override(c CfnResourcePolicy, scope awscdk.Construct, id *string, ...)
- func NewCfnRule_Override(c CfnRule, scope awscdk.Construct, id *string, props *CfnRuleProps)
- func NewCfnServiceNetworkServiceAssociation_Override(c CfnServiceNetworkServiceAssociation, scope awscdk.Construct, id *string, ...)
- func NewCfnServiceNetworkVpcAssociation_Override(c CfnServiceNetworkVpcAssociation, scope awscdk.Construct, id *string, ...)
- func NewCfnServiceNetwork_Override(c CfnServiceNetwork, scope awscdk.Construct, id *string, ...)
- func NewCfnService_Override(c CfnService, scope awscdk.Construct, id *string, props *CfnServiceProps)
- func NewCfnTargetGroup_Override(c CfnTargetGroup, scope awscdk.Construct, id *string, ...)
- type CfnAccessLogSubscription
- type CfnAccessLogSubscriptionProps
- type CfnAuthPolicy
- type CfnAuthPolicyProps
- type CfnListener
- type CfnListenerProps
- type CfnListener_DefaultActionProperty
- type CfnListener_FixedResponseProperty
- type CfnListener_ForwardProperty
- type CfnListener_WeightedTargetGroupProperty
- type CfnResourcePolicy
- type CfnResourcePolicyProps
- type CfnRule
- type CfnRuleProps
- type CfnRule_ActionProperty
- type CfnRule_FixedResponseProperty
- type CfnRule_ForwardProperty
- type CfnRule_HeaderMatchProperty
- type CfnRule_HeaderMatchTypeProperty
- type CfnRule_HttpMatchProperty
- type CfnRule_MatchProperty
- type CfnRule_PathMatchProperty
- type CfnRule_PathMatchTypeProperty
- type CfnRule_WeightedTargetGroupProperty
- type CfnService
- type CfnServiceNetwork
- type CfnServiceNetworkProps
- type CfnServiceNetworkServiceAssociation
- type CfnServiceNetworkServiceAssociationProps
- type CfnServiceNetworkServiceAssociation_DnsEntryProperty
- type CfnServiceNetworkVpcAssociation
- type CfnServiceNetworkVpcAssociationProps
- type CfnServiceProps
- type CfnService_DnsEntryProperty
- type CfnTargetGroup
- type CfnTargetGroupProps
- type CfnTargetGroup_HealthCheckConfigProperty
- type CfnTargetGroup_MatcherProperty
- type CfnTargetGroup_TargetGroupConfigProperty
- type CfnTargetGroup_TargetProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnAccessLogSubscription_CFN_RESOURCE_TYPE_NAME ¶
func CfnAccessLogSubscription_CFN_RESOURCE_TYPE_NAME() *string
func CfnAccessLogSubscription_IsCfnElement ¶
func CfnAccessLogSubscription_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. Experimental.
func CfnAccessLogSubscription_IsCfnResource ¶
func CfnAccessLogSubscription_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnAccessLogSubscription_IsConstruct ¶
func CfnAccessLogSubscription_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnAuthPolicy_CFN_RESOURCE_TYPE_NAME ¶
func CfnAuthPolicy_CFN_RESOURCE_TYPE_NAME() *string
func CfnAuthPolicy_IsCfnElement ¶
func CfnAuthPolicy_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. Experimental.
func CfnAuthPolicy_IsCfnResource ¶
func CfnAuthPolicy_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnAuthPolicy_IsConstruct ¶
func CfnAuthPolicy_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnListener_CFN_RESOURCE_TYPE_NAME ¶
func CfnListener_CFN_RESOURCE_TYPE_NAME() *string
func CfnListener_IsCfnElement ¶
func CfnListener_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. Experimental.
func CfnListener_IsCfnResource ¶
func CfnListener_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnListener_IsConstruct ¶
func CfnListener_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnResourcePolicy_CFN_RESOURCE_TYPE_NAME ¶
func CfnResourcePolicy_CFN_RESOURCE_TYPE_NAME() *string
func CfnResourcePolicy_IsCfnElement ¶
func CfnResourcePolicy_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. Experimental.
func CfnResourcePolicy_IsCfnResource ¶
func CfnResourcePolicy_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnResourcePolicy_IsConstruct ¶
func CfnResourcePolicy_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnRule_CFN_RESOURCE_TYPE_NAME ¶
func CfnRule_CFN_RESOURCE_TYPE_NAME() *string
func CfnRule_IsCfnElement ¶
func CfnRule_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. Experimental.
func CfnRule_IsCfnResource ¶
func CfnRule_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnRule_IsConstruct ¶
func CfnRule_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnServiceNetworkServiceAssociation_CFN_RESOURCE_TYPE_NAME ¶
func CfnServiceNetworkServiceAssociation_CFN_RESOURCE_TYPE_NAME() *string
func CfnServiceNetworkServiceAssociation_IsCfnElement ¶
func CfnServiceNetworkServiceAssociation_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. Experimental.
func CfnServiceNetworkServiceAssociation_IsCfnResource ¶
func CfnServiceNetworkServiceAssociation_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnServiceNetworkServiceAssociation_IsConstruct ¶
func CfnServiceNetworkServiceAssociation_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnServiceNetworkVpcAssociation_CFN_RESOURCE_TYPE_NAME ¶
func CfnServiceNetworkVpcAssociation_CFN_RESOURCE_TYPE_NAME() *string
func CfnServiceNetworkVpcAssociation_IsCfnElement ¶
func CfnServiceNetworkVpcAssociation_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. Experimental.
func CfnServiceNetworkVpcAssociation_IsCfnResource ¶
func CfnServiceNetworkVpcAssociation_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnServiceNetworkVpcAssociation_IsConstruct ¶
func CfnServiceNetworkVpcAssociation_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnServiceNetwork_CFN_RESOURCE_TYPE_NAME ¶
func CfnServiceNetwork_CFN_RESOURCE_TYPE_NAME() *string
func CfnServiceNetwork_IsCfnElement ¶
func CfnServiceNetwork_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. Experimental.
func CfnServiceNetwork_IsCfnResource ¶
func CfnServiceNetwork_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnServiceNetwork_IsConstruct ¶
func CfnServiceNetwork_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnService_CFN_RESOURCE_TYPE_NAME ¶
func CfnService_CFN_RESOURCE_TYPE_NAME() *string
func CfnService_IsCfnElement ¶
func CfnService_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. Experimental.
func CfnService_IsCfnResource ¶
func CfnService_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnService_IsConstruct ¶
func CfnService_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnTargetGroup_CFN_RESOURCE_TYPE_NAME ¶
func CfnTargetGroup_CFN_RESOURCE_TYPE_NAME() *string
func CfnTargetGroup_IsCfnElement ¶
func CfnTargetGroup_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. Experimental.
func CfnTargetGroup_IsCfnResource ¶
func CfnTargetGroup_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnTargetGroup_IsConstruct ¶
func CfnTargetGroup_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func NewCfnAccessLogSubscription_Override ¶
func NewCfnAccessLogSubscription_Override(c CfnAccessLogSubscription, scope awscdk.Construct, id *string, props *CfnAccessLogSubscriptionProps)
Create a new `AWS::VpcLattice::AccessLogSubscription`.
func NewCfnAuthPolicy_Override ¶
func NewCfnAuthPolicy_Override(c CfnAuthPolicy, scope awscdk.Construct, id *string, props *CfnAuthPolicyProps)
Create a new `AWS::VpcLattice::AuthPolicy`.
func NewCfnListener_Override ¶
func NewCfnListener_Override(c CfnListener, scope awscdk.Construct, id *string, props *CfnListenerProps)
Create a new `AWS::VpcLattice::Listener`.
func NewCfnResourcePolicy_Override ¶
func NewCfnResourcePolicy_Override(c CfnResourcePolicy, scope awscdk.Construct, id *string, props *CfnResourcePolicyProps)
Create a new `AWS::VpcLattice::ResourcePolicy`.
func NewCfnRule_Override ¶
func NewCfnRule_Override(c CfnRule, scope awscdk.Construct, id *string, props *CfnRuleProps)
Create a new `AWS::VpcLattice::Rule`.
func NewCfnServiceNetworkServiceAssociation_Override ¶
func NewCfnServiceNetworkServiceAssociation_Override(c CfnServiceNetworkServiceAssociation, scope awscdk.Construct, id *string, props *CfnServiceNetworkServiceAssociationProps)
Create a new `AWS::VpcLattice::ServiceNetworkServiceAssociation`.
func NewCfnServiceNetworkVpcAssociation_Override ¶
func NewCfnServiceNetworkVpcAssociation_Override(c CfnServiceNetworkVpcAssociation, scope awscdk.Construct, id *string, props *CfnServiceNetworkVpcAssociationProps)
Create a new `AWS::VpcLattice::ServiceNetworkVpcAssociation`.
func NewCfnServiceNetwork_Override ¶
func NewCfnServiceNetwork_Override(c CfnServiceNetwork, scope awscdk.Construct, id *string, props *CfnServiceNetworkProps)
Create a new `AWS::VpcLattice::ServiceNetwork`.
func NewCfnService_Override ¶
func NewCfnService_Override(c CfnService, scope awscdk.Construct, id *string, props *CfnServiceProps)
Create a new `AWS::VpcLattice::Service`.
func NewCfnTargetGroup_Override ¶
func NewCfnTargetGroup_Override(c CfnTargetGroup, scope awscdk.Construct, id *string, props *CfnTargetGroupProps)
Create a new `AWS::VpcLattice::TargetGroup`.
Types ¶
type CfnAccessLogSubscription ¶
type CfnAccessLogSubscription interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the access log subscription. AttrArn() *string // The ID of the access log subscription. AttrId() *string // The Amazon Resource Name (ARN) of the access log subscription. AttrResourceArn() *string // The ID of the service network or service. AttrResourceId() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. CreationStack() *[]*string // The Amazon Resource Name (ARN) of the destination. // // The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets. DestinationArn() *string SetDestinationArn(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. // Experimental. LogicalId() *string // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // 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 })`. // Experimental. Ref() *string // The ID or Amazon Resource Name (ARN) of the service network or service. ResourceIdentifier() *string SetResourceIdentifier(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the access log subscription. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::AccessLogSubscription`.
Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose. The service network owner can use the access logs to audit the services in the network. The service network owner will only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network. For more information, see [Access logs](https://docs.aws.amazon.com/vpc-lattice/latest/ug/monitoring-access-logs.html) in the *Amazon VPC Lattice 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" cfnAccessLogSubscription := awscdk.Aws_vpclattice.NewCfnAccessLogSubscription(this, jsii.String("MyCfnAccessLogSubscription"), &CfnAccessLogSubscriptionProps{ DestinationArn: jsii.String("destinationArn"), // the properties below are optional ResourceIdentifier: jsii.String("resourceIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnAccessLogSubscription ¶
func NewCfnAccessLogSubscription(scope awscdk.Construct, id *string, props *CfnAccessLogSubscriptionProps) CfnAccessLogSubscription
Create a new `AWS::VpcLattice::AccessLogSubscription`.
type CfnAccessLogSubscriptionProps ¶
type CfnAccessLogSubscriptionProps struct { // The Amazon Resource Name (ARN) of the destination. // // The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets. DestinationArn *string `field:"required" json:"destinationArn" yaml:"destinationArn"` // The ID or Amazon Resource Name (ARN) of the service network or service. ResourceIdentifier *string `field:"optional" json:"resourceIdentifier" yaml:"resourceIdentifier"` // The tags for the access log subscription. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnAccessLogSubscription`.
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" cfnAccessLogSubscriptionProps := &CfnAccessLogSubscriptionProps{ DestinationArn: jsii.String("destinationArn"), // the properties below are optional ResourceIdentifier: jsii.String("resourceIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnAuthPolicy ¶
type CfnAuthPolicy interface { awscdk.CfnResource awscdk.IInspectable // The state of the auth policy. // // The auth policy is only active when the auth type is set to `AWS _IAM` . If you provide a policy, then authentication and authorization decisions are made based on this policy and the client's IAM policy. If the auth type is `NONE` , then any auth policy you provide will remain inactive. AttrState() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. 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. // Experimental. LogicalId() *string // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // The auth policy. Policy() interface{} SetPolicy(val interface{}) // 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 })`. // Experimental. Ref() *string // The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created. ResourceIdentifier() *string SetResourceIdentifier(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::AuthPolicy`.
Creates or updates the auth policy. The policy string in JSON must not contain newlines or blank lines.
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 policy interface{} cfnAuthPolicy := awscdk.Aws_vpclattice.NewCfnAuthPolicy(this, jsii.String("MyCfnAuthPolicy"), &CfnAuthPolicyProps{ Policy: policy, ResourceIdentifier: jsii.String("resourceIdentifier"), })
func NewCfnAuthPolicy ¶
func NewCfnAuthPolicy(scope awscdk.Construct, id *string, props *CfnAuthPolicyProps) CfnAuthPolicy
Create a new `AWS::VpcLattice::AuthPolicy`.
type CfnAuthPolicyProps ¶
type CfnAuthPolicyProps struct { // The auth policy. Policy interface{} `field:"required" json:"policy" yaml:"policy"` // The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created. ResourceIdentifier *string `field:"required" json:"resourceIdentifier" yaml:"resourceIdentifier"` }
Properties for defining a `CfnAuthPolicy`.
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 policy interface{} cfnAuthPolicyProps := &CfnAuthPolicyProps{ Policy: policy, ResourceIdentifier: jsii.String("resourceIdentifier"), }
type CfnListener ¶
type CfnListener interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the listener. AttrArn() *string // The ID of the listener. AttrId() *string // The Amazon Resource Name (ARN) of the service. AttrServiceArn() *string // The ID of the service. AttrServiceId() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. CreationStack() *[]*string // The action for the default rule. // // Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: `forward` or `fixed-response` , and it must be the last action to be performed. DefaultAction() interface{} SetDefaultAction(val interface{}) // 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. // Experimental. LogicalId() *string // The name of the listener. // // A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name() *string SetName(val *string) // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // The listener port. // // You can specify a value from `1` to `65535` . For HTTP, the default is `80` . For HTTPS, the default is `443` . Port() *float64 SetPort(val *float64) // The listener protocol HTTP or HTTPS. Protocol() *string SetProtocol(val *string) // 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 })`. // Experimental. Ref() *string // The ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier() *string SetServiceIdentifier(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the listener. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::Listener`.
Creates a listener for a service. Before you start using your Amazon VPC Lattice service, you must add one or more listeners. A listener is a process that checks for connection requests to your services. For more information, see [Listeners](https://docs.aws.amazon.com/vpc-lattice/latest/ug/listeners.html) in the *Amazon VPC Lattice 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" cfnListener := awscdk.Aws_vpclattice.NewCfnListener(this, jsii.String("MyCfnListener"), &CfnListenerProps{ DefaultAction: &DefaultActionProperty{ FixedResponse: &FixedResponseProperty{ StatusCode: jsii.Number(123), }, Forward: &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }, }, Protocol: jsii.String("protocol"), // the properties below are optional Name: jsii.String("name"), Port: jsii.Number(123), ServiceIdentifier: jsii.String("serviceIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnListener ¶
func NewCfnListener(scope awscdk.Construct, id *string, props *CfnListenerProps) CfnListener
Create a new `AWS::VpcLattice::Listener`.
type CfnListenerProps ¶
type CfnListenerProps struct { // The action for the default rule. // // Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: `forward` or `fixed-response` , and it must be the last action to be performed. DefaultAction interface{} `field:"required" json:"defaultAction" yaml:"defaultAction"` // The listener protocol HTTP or HTTPS. Protocol *string `field:"required" json:"protocol" yaml:"protocol"` // The name of the listener. // // A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name *string `field:"optional" json:"name" yaml:"name"` // The listener port. // // You can specify a value from `1` to `65535` . For HTTP, the default is `80` . For HTTPS, the default is `443` . Port *float64 `field:"optional" json:"port" yaml:"port"` // The ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier *string `field:"optional" json:"serviceIdentifier" yaml:"serviceIdentifier"` // The tags for the listener. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnListener`.
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" cfnListenerProps := &CfnListenerProps{ DefaultAction: &DefaultActionProperty{ FixedResponse: &FixedResponseProperty{ StatusCode: jsii.Number(123), }, Forward: &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }, }, Protocol: jsii.String("protocol"), // the properties below are optional Name: jsii.String("name"), Port: jsii.Number(123), ServiceIdentifier: jsii.String("serviceIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnListener_DefaultActionProperty ¶
type CfnListener_DefaultActionProperty struct { // Information about an action that returns a custom HTTP response. FixedResponse interface{} `field:"optional" json:"fixedResponse" yaml:"fixedResponse"` // Describes a forward action. // // You can use forward actions to route requests to one or more target groups. Forward interface{} `field:"optional" json:"forward" yaml:"forward"` }
The action for the default rule.
Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: `forward` or `fixed-response` , and it must be the last action to be performed.
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" defaultActionProperty := &DefaultActionProperty{ FixedResponse: &FixedResponseProperty{ StatusCode: jsii.Number(123), }, Forward: &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }, }
type CfnListener_FixedResponseProperty ¶
type CfnListener_FixedResponseProperty struct { // The HTTP response code. StatusCode *float64 `field:"required" json:"statusCode" yaml:"statusCode"` }
Information about an action that returns a custom HTTP response.
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" fixedResponseProperty := &FixedResponseProperty{ StatusCode: jsii.Number(123), }
type CfnListener_ForwardProperty ¶
type CfnListener_ForwardProperty struct { // The target groups. // // Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic. // // The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group. TargetGroups interface{} `field:"required" json:"targetGroups" yaml:"targetGroups"` }
The forward action.
Traffic that matches the rule is forwarded to the specified target groups.
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" forwardProperty := &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }
type CfnListener_WeightedTargetGroupProperty ¶
type CfnListener_WeightedTargetGroupProperty struct { // The ID of the target group. TargetGroupIdentifier *string `field:"required" json:"targetGroupIdentifier" yaml:"targetGroupIdentifier"` // Only required if you specify multiple target groups for a forward action. // // The "weight" determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100. Weight *float64 `field:"optional" json:"weight" yaml:"weight"` }
Describes the weight of a target group.
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" weightedTargetGroupProperty := &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }
type CfnResourcePolicy ¶
type CfnResourcePolicy interface { awscdk.CfnResource awscdk.IInspectable // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. 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. // Experimental. LogicalId() *string // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // The Amazon Resource Name (ARN) of the service network or service. Policy() interface{} SetPolicy(val interface{}) // 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 })`. // Experimental. Ref() *string // An IAM policy. ResourceArn() *string SetResourceArn(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::ResourcePolicy`.
Retrieves information about the resource policy. The resource policy is an IAM policy created on behalf of the resource owner when they share a 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" var policy interface{} cfnResourcePolicy := awscdk.Aws_vpclattice.NewCfnResourcePolicy(this, jsii.String("MyCfnResourcePolicy"), &CfnResourcePolicyProps{ Policy: policy, ResourceArn: jsii.String("resourceArn"), })
func NewCfnResourcePolicy ¶
func NewCfnResourcePolicy(scope awscdk.Construct, id *string, props *CfnResourcePolicyProps) CfnResourcePolicy
Create a new `AWS::VpcLattice::ResourcePolicy`.
type CfnResourcePolicyProps ¶
type CfnResourcePolicyProps struct { // The Amazon Resource Name (ARN) of the service network or service. Policy interface{} `field:"required" json:"policy" yaml:"policy"` // An IAM policy. ResourceArn *string `field:"required" json:"resourceArn" yaml:"resourceArn"` }
Properties for defining a `CfnResourcePolicy`.
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 policy interface{} cfnResourcePolicyProps := &CfnResourcePolicyProps{ Policy: policy, ResourceArn: jsii.String("resourceArn"), }
type CfnRule ¶
type CfnRule interface { awscdk.CfnResource awscdk.IInspectable // Describes the action for a rule. // // Each rule must include exactly one of the following types of actions: `forward` or `fixed-response` , and it must be the last action to be performed. Action() interface{} SetAction(val interface{}) // The Amazon Resource Name (ARN) of the rule. AttrArn() *string // The ID of the listener. AttrId() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. CreationStack() *[]*string // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier() *string SetListenerIdentifier(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. // Experimental. LogicalId() *string // The rule match. Match() interface{} SetMatch(val interface{}) // The name of the rule. // // The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name() *string SetName(val *string) // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // The priority assigned to the rule. // // Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority. Priority() *float64 SetPriority(val *float64) // 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 })`. // Experimental. Ref() *string // The ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier() *string SetServiceIdentifier(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the rule. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::Rule`.
Creates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. For more information, see [Listener rules](https://docs.aws.amazon.com/vpc-lattice/latest/ug/listeners.html#listener-rules) in the *Amazon VPC Lattice 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" cfnRule := awscdk.Aws_vpclattice.NewCfnRule(this, jsii.String("MyCfnRule"), &CfnRuleProps{ Action: &ActionProperty{ FixedResponse: &FixedResponseProperty{ StatusCode: jsii.Number(123), }, Forward: &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }, }, Match: &MatchProperty{ HttpMatch: &HttpMatchProperty{ HeaderMatches: []interface{}{ &HeaderMatchProperty{ Match: &HeaderMatchTypeProperty{ Contains: jsii.String("contains"), Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, Name: jsii.String("name"), // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, Method: jsii.String("method"), PathMatch: &PathMatchProperty{ Match: &PathMatchTypeProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, }, Priority: jsii.Number(123), // the properties below are optional ListenerIdentifier: jsii.String("listenerIdentifier"), Name: jsii.String("name"), ServiceIdentifier: jsii.String("serviceIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnRule ¶
func NewCfnRule(scope awscdk.Construct, id *string, props *CfnRuleProps) CfnRule
Create a new `AWS::VpcLattice::Rule`.
type CfnRuleProps ¶
type CfnRuleProps struct { // Describes the action for a rule. // // Each rule must include exactly one of the following types of actions: `forward` or `fixed-response` , and it must be the last action to be performed. Action interface{} `field:"required" json:"action" yaml:"action"` // The rule match. Match interface{} `field:"required" json:"match" yaml:"match"` // The priority assigned to the rule. // // Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority. Priority *float64 `field:"required" json:"priority" yaml:"priority"` // The ID or Amazon Resource Name (ARN) of the listener. ListenerIdentifier *string `field:"optional" json:"listenerIdentifier" yaml:"listenerIdentifier"` // The name of the rule. // // The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name *string `field:"optional" json:"name" yaml:"name"` // The ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier *string `field:"optional" json:"serviceIdentifier" yaml:"serviceIdentifier"` // The tags for the rule. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnRule`.
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" cfnRuleProps := &CfnRuleProps{ Action: &ActionProperty{ FixedResponse: &FixedResponseProperty{ StatusCode: jsii.Number(123), }, Forward: &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }, }, Match: &MatchProperty{ HttpMatch: &HttpMatchProperty{ HeaderMatches: []interface{}{ &HeaderMatchProperty{ Match: &HeaderMatchTypeProperty{ Contains: jsii.String("contains"), Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, Name: jsii.String("name"), // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, Method: jsii.String("method"), PathMatch: &PathMatchProperty{ Match: &PathMatchTypeProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, }, Priority: jsii.Number(123), // the properties below are optional ListenerIdentifier: jsii.String("listenerIdentifier"), Name: jsii.String("name"), ServiceIdentifier: jsii.String("serviceIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnRule_ActionProperty ¶
type CfnRule_ActionProperty struct { // Describes the rule action that returns a custom HTTP response. FixedResponse interface{} `field:"optional" json:"fixedResponse" yaml:"fixedResponse"` // The forward action. // // Traffic that matches the rule is forwarded to the specified target groups. Forward interface{} `field:"optional" json:"forward" yaml:"forward"` }
Describes the action for a rule.
Each rule must include exactly one of the following types of actions: `forward` or `fixed-response` , and it must be the last action to be performed.
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" actionProperty := &ActionProperty{ FixedResponse: &FixedResponseProperty{ StatusCode: jsii.Number(123), }, Forward: &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }, }
type CfnRule_FixedResponseProperty ¶
type CfnRule_FixedResponseProperty struct { // The HTTP response code. StatusCode *float64 `field:"required" json:"statusCode" yaml:"statusCode"` }
Information about an action that returns a custom HTTP response.
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" fixedResponseProperty := &FixedResponseProperty{ StatusCode: jsii.Number(123), }
type CfnRule_ForwardProperty ¶
type CfnRule_ForwardProperty struct { // The target groups. // // Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic. // // The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of traffic will go to that target group. TargetGroups interface{} `field:"required" json:"targetGroups" yaml:"targetGroups"` }
The forward action.
Traffic that matches the rule is forwarded to the specified target groups.
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" forwardProperty := &ForwardProperty{ TargetGroups: []interface{}{ &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }, }, }
type CfnRule_HeaderMatchProperty ¶
type CfnRule_HeaderMatchProperty struct { // The header match type. Match interface{} `field:"required" json:"match" yaml:"match"` // The name of the header. Name *string `field:"required" json:"name" yaml:"name"` // Indicates whether the match is case sensitive. // // Defaults to false. CaseSensitive interface{} `field:"optional" json:"caseSensitive" yaml:"caseSensitive"` }
Describes the constraints for a header match.
Matches incoming requests with rule based on request header value before applying rule action.
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" headerMatchProperty := &HeaderMatchProperty{ Match: &HeaderMatchTypeProperty{ Contains: jsii.String("contains"), Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, Name: jsii.String("name"), // the properties below are optional CaseSensitive: jsii.Boolean(false), }
type CfnRule_HeaderMatchTypeProperty ¶
type CfnRule_HeaderMatchTypeProperty struct { // Specifies a contains type match. Contains *string `field:"optional" json:"contains" yaml:"contains"` // Specifies an exact type match. Exact *string `field:"optional" json:"exact" yaml:"exact"` // Specifies a prefix type match. // // Matches the value with the prefix. Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` }
Describes a header match type.
Only one can be provided.
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" headerMatchTypeProperty := &HeaderMatchTypeProperty{ Contains: jsii.String("contains"), Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }
type CfnRule_HttpMatchProperty ¶
type CfnRule_HttpMatchProperty struct { // The header matches. // // Matches incoming requests with rule based on request header value before applying rule action. HeaderMatches interface{} `field:"optional" json:"headerMatches" yaml:"headerMatches"` // The HTTP method type. Method *string `field:"optional" json:"method" yaml:"method"` // The path match. PathMatch interface{} `field:"optional" json:"pathMatch" yaml:"pathMatch"` }
Describes criteria that can be applied to incoming requests.
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" httpMatchProperty := &HttpMatchProperty{ HeaderMatches: []interface{}{ &HeaderMatchProperty{ Match: &HeaderMatchTypeProperty{ Contains: jsii.String("contains"), Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, Name: jsii.String("name"), // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, Method: jsii.String("method"), PathMatch: &PathMatchProperty{ Match: &PathMatchTypeProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }
type CfnRule_MatchProperty ¶
type CfnRule_MatchProperty struct {
// The HTTP criteria that a rule must match.
HttpMatch interface{} `field:"required" json:"httpMatch" yaml:"httpMatch"`
}
Describes a rule 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" matchProperty := &MatchProperty{ HttpMatch: &HttpMatchProperty{ HeaderMatches: []interface{}{ &HeaderMatchProperty{ Match: &HeaderMatchTypeProperty{ Contains: jsii.String("contains"), Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, Name: jsii.String("name"), // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, Method: jsii.String("method"), PathMatch: &PathMatchProperty{ Match: &PathMatchTypeProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, // the properties below are optional CaseSensitive: jsii.Boolean(false), }, }, }
type CfnRule_PathMatchProperty ¶
type CfnRule_PathMatchProperty struct { // The type of path match. Match interface{} `field:"required" json:"match" yaml:"match"` // Indicates whether the match is case sensitive. // // Defaults to false. CaseSensitive interface{} `field:"optional" json:"caseSensitive" yaml:"caseSensitive"` }
Describes the conditions that can be applied when matching a path for incoming requests.
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" pathMatchProperty := &PathMatchProperty{ Match: &PathMatchTypeProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }, // the properties below are optional CaseSensitive: jsii.Boolean(false), }
type CfnRule_PathMatchTypeProperty ¶
type CfnRule_PathMatchTypeProperty struct { // An exact match of the path. Exact *string `field:"optional" json:"exact" yaml:"exact"` // A prefix match of the path. Prefix *string `field:"optional" json:"prefix" yaml:"prefix"` }
Describes a path match type.
Each rule can include only one of the following types of paths.
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" pathMatchTypeProperty := &PathMatchTypeProperty{ Exact: jsii.String("exact"), Prefix: jsii.String("prefix"), }
type CfnRule_WeightedTargetGroupProperty ¶
type CfnRule_WeightedTargetGroupProperty struct { // The ID of the target group. TargetGroupIdentifier *string `field:"required" json:"targetGroupIdentifier" yaml:"targetGroupIdentifier"` // Only required if you specify multiple target groups for a forward action. // // The "weight" determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100. Weight *float64 `field:"optional" json:"weight" yaml:"weight"` }
Describes the weight of a target group.
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" weightedTargetGroupProperty := &WeightedTargetGroupProperty{ TargetGroupIdentifier: jsii.String("targetGroupIdentifier"), // the properties below are optional Weight: jsii.Number(123), }
type CfnService ¶
type CfnService interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the service. AttrArn() *string // The date and time that the service was created, specified in ISO-8601 format. AttrCreatedAt() *string // The domain name of the service. AttrDnsEntryDomainName() *string // The ID of the hosted zone. AttrDnsEntryHostedZoneId() *string // The ID of the service. AttrId() *string // The date and time that the service was last updated, specified in ISO-8601 format. AttrLastUpdatedAt() *string // The status of the service. AttrStatus() *string // The type of IAM policy. // // - `NONE` : The resource does not use an IAM policy. This is the default. // - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required. AuthType() *string SetAuthType(val *string) // The Amazon Resource Name (ARN) of the certificate. CertificateArn() *string SetCertificateArn(val *string) // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. CreationStack() *[]*string // The custom domain name of the service. CustomDomainName() *string SetCustomDomainName(val *string) // `AWS::VpcLattice::Service.DnsEntry`. DnsEntry() interface{} SetDnsEntry(val interface{}) // 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. // Experimental. LogicalId() *string // The name of the service. // // The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name() *string SetName(val *string) // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // 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 })`. // Experimental. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the service. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::Service`.
Creates a service. A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC).
For more information, see [Services](https://docs.aws.amazon.com/vpc-lattice/latest/ug/services.html) in the *Amazon VPC Lattice 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" cfnService := awscdk.Aws_vpclattice.NewCfnService(this, jsii.String("MyCfnService"), &CfnServiceProps{ AuthType: jsii.String("authType"), CertificateArn: jsii.String("certificateArn"), CustomDomainName: jsii.String("customDomainName"), DnsEntry: &DnsEntryProperty{ DomainName: jsii.String("domainName"), HostedZoneId: jsii.String("hostedZoneId"), }, Name: jsii.String("name"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnService ¶
func NewCfnService(scope awscdk.Construct, id *string, props *CfnServiceProps) CfnService
Create a new `AWS::VpcLattice::Service`.
type CfnServiceNetwork ¶
type CfnServiceNetwork interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the service network. AttrArn() *string // The date and time that the service network was created, specified in ISO-8601 format. AttrCreatedAt() *string // The ID of the service network. AttrId() *string // The date and time of the last update, specified in ISO-8601 format. AttrLastUpdatedAt() *string // The type of IAM policy. // // - `NONE` : The resource does not use an IAM policy. This is the default. // - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required. AuthType() *string SetAuthType(val *string) // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. 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. // Experimental. LogicalId() *string // The name of the service network. // // The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name() *string SetName(val *string) // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // 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 })`. // Experimental. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the service network. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::ServiceNetwork`.
Creates a service network. A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.
For more information, see [Service networks](https://docs.aws.amazon.com/vpc-lattice/latest/ug/service-networks.html) in the *Amazon VPC Lattice 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" cfnServiceNetwork := awscdk.Aws_vpclattice.NewCfnServiceNetwork(this, jsii.String("MyCfnServiceNetwork"), &CfnServiceNetworkProps{ AuthType: jsii.String("authType"), Name: jsii.String("name"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnServiceNetwork ¶
func NewCfnServiceNetwork(scope awscdk.Construct, id *string, props *CfnServiceNetworkProps) CfnServiceNetwork
Create a new `AWS::VpcLattice::ServiceNetwork`.
type CfnServiceNetworkProps ¶
type CfnServiceNetworkProps struct { // The type of IAM policy. // // - `NONE` : The resource does not use an IAM policy. This is the default. // - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required. AuthType *string `field:"optional" json:"authType" yaml:"authType"` // The name of the service network. // // The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name *string `field:"optional" json:"name" yaml:"name"` // The tags for the service network. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnServiceNetwork`.
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" cfnServiceNetworkProps := &CfnServiceNetworkProps{ AuthType: jsii.String("authType"), Name: jsii.String("name"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnServiceNetworkServiceAssociation ¶
type CfnServiceNetworkServiceAssociation interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the association between the service network and the service. AttrArn() *string // The date and time that the association was created, specified in ISO-8601 format. AttrCreatedAt() *string // The domain name of the service. AttrDnsEntryDomainName() *string // The ID of the hosted zone. AttrDnsEntryHostedZoneId() *string // The ID of the of the association between the service network and the service. AttrId() *string // The Amazon Resource Name (ARN) of the service. AttrServiceArn() *string // The ID of the service. AttrServiceId() *string // The name of the service. AttrServiceName() *string // The Amazon Resource Name (ARN) of the service network. AttrServiceNetworkArn() *string // The ID of the service network. AttrServiceNetworkId() *string // The name of the service network. AttrServiceNetworkName() *string // The status of the association between the service network and the service. AttrStatus() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. CreationStack() *[]*string // `AWS::VpcLattice::ServiceNetworkServiceAssociation.DnsEntry`. DnsEntry() interface{} SetDnsEntry(val interface{}) // 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. // Experimental. LogicalId() *string // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // 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 })`. // Experimental. Ref() *string // The ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier() *string SetServiceIdentifier(val *string) // The ID or Amazon Resource Name (ARN) of the service network. // // You must use the ARN if the resources specified in the operation are in different accounts. ServiceNetworkIdentifier() *string SetServiceNetworkIdentifier(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the association. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::ServiceNetworkServiceAssociation`.
Associates a service with a service network.
You can't use this operation if the service and service network are already associated or if there is a disassociation or deletion in progress. If the association fails, you can retry the operation by deleting the association and recreating it.
You cannot associate a service and service network that are shared with a caller. The caller must own either the service or the service network.
As a result of this operation, the association is created in the service network account and the association owner account.
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" cfnServiceNetworkServiceAssociation := awscdk.Aws_vpclattice.NewCfnServiceNetworkServiceAssociation(this, jsii.String("MyCfnServiceNetworkServiceAssociation"), &CfnServiceNetworkServiceAssociationProps{ DnsEntry: &DnsEntryProperty{ DomainName: jsii.String("domainName"), HostedZoneId: jsii.String("hostedZoneId"), }, ServiceIdentifier: jsii.String("serviceIdentifier"), ServiceNetworkIdentifier: jsii.String("serviceNetworkIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnServiceNetworkServiceAssociation ¶
func NewCfnServiceNetworkServiceAssociation(scope awscdk.Construct, id *string, props *CfnServiceNetworkServiceAssociationProps) CfnServiceNetworkServiceAssociation
Create a new `AWS::VpcLattice::ServiceNetworkServiceAssociation`.
type CfnServiceNetworkServiceAssociationProps ¶
type CfnServiceNetworkServiceAssociationProps struct { // `AWS::VpcLattice::ServiceNetworkServiceAssociation.DnsEntry`. DnsEntry interface{} `field:"optional" json:"dnsEntry" yaml:"dnsEntry"` // The ID or Amazon Resource Name (ARN) of the service. ServiceIdentifier *string `field:"optional" json:"serviceIdentifier" yaml:"serviceIdentifier"` // The ID or Amazon Resource Name (ARN) of the service network. // // You must use the ARN if the resources specified in the operation are in different accounts. ServiceNetworkIdentifier *string `field:"optional" json:"serviceNetworkIdentifier" yaml:"serviceNetworkIdentifier"` // The tags for the association. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnServiceNetworkServiceAssociation`.
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" cfnServiceNetworkServiceAssociationProps := &CfnServiceNetworkServiceAssociationProps{ DnsEntry: &DnsEntryProperty{ DomainName: jsii.String("domainName"), HostedZoneId: jsii.String("hostedZoneId"), }, ServiceIdentifier: jsii.String("serviceIdentifier"), ServiceNetworkIdentifier: jsii.String("serviceNetworkIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnServiceNetworkServiceAssociation_DnsEntryProperty ¶
type CfnServiceNetworkServiceAssociation_DnsEntryProperty struct { // The domain name of the service. DomainName *string `field:"optional" json:"domainName" yaml:"domainName"` // The ID of the hosted zone. HostedZoneId *string `field:"optional" json:"hostedZoneId" yaml:"hostedZoneId"` }
DNS information about the 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" dnsEntryProperty := &DnsEntryProperty{ DomainName: jsii.String("domainName"), HostedZoneId: jsii.String("hostedZoneId"), }
type CfnServiceNetworkVpcAssociation ¶
type CfnServiceNetworkVpcAssociation interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the association between the service network and the VPC. AttrArn() *string // The date and time that the association was created, specified in ISO-8601 format. AttrCreatedAt() *string // The ID of the specified association between the service network and the VPC. AttrId() *string // The Amazon Resource Name (ARN) of the service network. AttrServiceNetworkArn() *string // The ID of the service network. AttrServiceNetworkId() *string // The name of the service network. AttrServiceNetworkName() *string // The status of the association. AttrStatus() *string // The ID of the VPC. AttrVpcId() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. 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. // Experimental. 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. // Experimental. LogicalId() *string // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // 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 })`. // Experimental. Ref() *string // The IDs of the security groups. // // Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see [Control traffic to resources using security groups](https://docs.aws.amazon.com//vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon VPC User Guide* . SecurityGroupIds() *[]*string SetSecurityGroupIds(val *[]*string) // The ID or Amazon Resource Name (ARN) of the service network. // // You must use the ARN when the resources specified in the operation are in different accounts. ServiceNetworkIdentifier() *string SetServiceNetworkIdentifier(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the association. Tags() awscdk.TagManager // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // The ID of the VPC. VpcIdentifier() *string SetVpcIdentifier(val *string) // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::ServiceNetworkVpcAssociation`.
Associates a VPC with a service network. When you associate a VPC with the service network, it enables all the resources within that VPC to be clients and communicate with other services in the service network. For more information, see [Manage VPC associations](https://docs.aws.amazon.com/vpc-lattice/latest/ug/service-network-associations.html#service-network-vpc-associations) in the *Amazon VPC Lattice User Guide* .
You can't use this operation if there is a disassociation in progress. If the association fails, retry by deleting the association and recreating it.
As a result of this operation, the association gets created in the service network account and the VPC owner account.
If you add a security group to the service network and VPC association, the association must continue to always have at least one security group. You can add or edit security groups at any time. However, to remove all security groups, you must first delete the association and recreate it without security groups.
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" cfnServiceNetworkVpcAssociation := awscdk.Aws_vpclattice.NewCfnServiceNetworkVpcAssociation(this, jsii.String("MyCfnServiceNetworkVpcAssociation"), &CfnServiceNetworkVpcAssociationProps{ SecurityGroupIds: []*string{ jsii.String("securityGroupIds"), }, ServiceNetworkIdentifier: jsii.String("serviceNetworkIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, VpcIdentifier: jsii.String("vpcIdentifier"), })
func NewCfnServiceNetworkVpcAssociation ¶
func NewCfnServiceNetworkVpcAssociation(scope awscdk.Construct, id *string, props *CfnServiceNetworkVpcAssociationProps) CfnServiceNetworkVpcAssociation
Create a new `AWS::VpcLattice::ServiceNetworkVpcAssociation`.
type CfnServiceNetworkVpcAssociationProps ¶
type CfnServiceNetworkVpcAssociationProps struct { // The IDs of the security groups. // // Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see [Control traffic to resources using security groups](https://docs.aws.amazon.com//vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon VPC User Guide* . SecurityGroupIds *[]*string `field:"optional" json:"securityGroupIds" yaml:"securityGroupIds"` // The ID or Amazon Resource Name (ARN) of the service network. // // You must use the ARN when the resources specified in the operation are in different accounts. ServiceNetworkIdentifier *string `field:"optional" json:"serviceNetworkIdentifier" yaml:"serviceNetworkIdentifier"` // The tags for the association. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // The ID of the VPC. VpcIdentifier *string `field:"optional" json:"vpcIdentifier" yaml:"vpcIdentifier"` }
Properties for defining a `CfnServiceNetworkVpcAssociation`.
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" cfnServiceNetworkVpcAssociationProps := &CfnServiceNetworkVpcAssociationProps{ SecurityGroupIds: []*string{ jsii.String("securityGroupIds"), }, ServiceNetworkIdentifier: jsii.String("serviceNetworkIdentifier"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, VpcIdentifier: jsii.String("vpcIdentifier"), }
type CfnServiceProps ¶
type CfnServiceProps struct { // The type of IAM policy. // // - `NONE` : The resource does not use an IAM policy. This is the default. // - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required. AuthType *string `field:"optional" json:"authType" yaml:"authType"` // The Amazon Resource Name (ARN) of the certificate. CertificateArn *string `field:"optional" json:"certificateArn" yaml:"certificateArn"` // The custom domain name of the service. CustomDomainName *string `field:"optional" json:"customDomainName" yaml:"customDomainName"` // `AWS::VpcLattice::Service.DnsEntry`. DnsEntry interface{} `field:"optional" json:"dnsEntry" yaml:"dnsEntry"` // The name of the service. // // The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name *string `field:"optional" json:"name" yaml:"name"` // The tags for the service. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnService`.
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" cfnServiceProps := &CfnServiceProps{ AuthType: jsii.String("authType"), CertificateArn: jsii.String("certificateArn"), CustomDomainName: jsii.String("customDomainName"), DnsEntry: &DnsEntryProperty{ DomainName: jsii.String("domainName"), HostedZoneId: jsii.String("hostedZoneId"), }, Name: jsii.String("name"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnService_DnsEntryProperty ¶
type CfnService_DnsEntryProperty struct { // The domain name of the service. DomainName *string `field:"optional" json:"domainName" yaml:"domainName"` // The ID of the hosted zone. HostedZoneId *string `field:"optional" json:"hostedZoneId" yaml:"hostedZoneId"` }
Describes the DNS information of a 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" dnsEntryProperty := &DnsEntryProperty{ DomainName: jsii.String("domainName"), HostedZoneId: jsii.String("hostedZoneId"), }
type CfnTargetGroup ¶
type CfnTargetGroup interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the target group. AttrArn() *string // The date and time that the target group was created, specified in ISO-8601 format. AttrCreatedAt() *string // The ID of the target group. AttrId() *string // The date and time that the target group was last updated, specified in ISO-8601 format. AttrLastUpdatedAt() *string // The operation's status. // // You can retry the operation if the status is `CREATE_FAILED` . However, if you retry it while the status is `CREATE_IN_PROGRESS` , there is no change in the status. AttrStatus() *string // Options for this resource, such as condition, update policy etc. // Experimental. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. // Experimental. CfnResourceType() *string // The target group configuration. // // If `type` is set to `LAMBDA` , this parameter doesn't apply. Config() interface{} SetConfig(val interface{}) // 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. // Experimental. 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. // Experimental. LogicalId() *string // The name of the target group. // // The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name() *string SetName(val *string) // The construct tree node associated with this construct. // Experimental. Node() awscdk.ConstructNode // 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 })`. // Experimental. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). // Experimental. Stack() awscdk.Stack // The tags for the target group. Tags() awscdk.TagManager // Describes a target. Targets() interface{} SetTargets(val interface{}) // The type of target group. Type() *string SetType(val *string) // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. // Experimental. UpdatedProperites() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. // Experimental. 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. // Experimental. 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. // // Experimental. 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. // Experimental. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. // Experimental. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. // Experimental. 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`). // Experimental. 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. // Experimental. GetAtt(attributeName *string) 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. // // Experimental. GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. // Experimental. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. // Experimental. ShouldSynthesize() *bool // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. // Experimental. Synthesize(session awscdk.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. // Experimental. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. // Experimental. Validate() *[]*string // Experimental. ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::VpcLattice::TargetGroup`.
Creates a target group. A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.
For more information, see [Target groups](https://docs.aws.amazon.com/vpc-lattice/latest/ug/target-groups.html) in the *Amazon VPC Lattice 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" cfnTargetGroup := awscdk.Aws_vpclattice.NewCfnTargetGroup(this, jsii.String("MyCfnTargetGroup"), &CfnTargetGroupProps{ Type: jsii.String("type"), // the properties below are optional Config: &TargetGroupConfigProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), VpcIdentifier: jsii.String("vpcIdentifier"), // the properties below are optional HealthCheck: &HealthCheckConfigProperty{ Enabled: jsii.Boolean(false), HealthCheckIntervalSeconds: jsii.Number(123), HealthCheckTimeoutSeconds: jsii.Number(123), HealthyThresholdCount: jsii.Number(123), Matcher: &MatcherProperty{ HttpCode: jsii.String("httpCode"), }, Path: jsii.String("path"), Port: jsii.Number(123), Protocol: jsii.String("protocol"), ProtocolVersion: jsii.String("protocolVersion"), UnhealthyThresholdCount: jsii.Number(123), }, IpAddressType: jsii.String("ipAddressType"), ProtocolVersion: jsii.String("protocolVersion"), }, Name: jsii.String("name"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, Targets: []interface{}{ &TargetProperty{ Id: jsii.String("id"), // the properties below are optional Port: jsii.Number(123), }, }, })
func NewCfnTargetGroup ¶
func NewCfnTargetGroup(scope awscdk.Construct, id *string, props *CfnTargetGroupProps) CfnTargetGroup
Create a new `AWS::VpcLattice::TargetGroup`.
type CfnTargetGroupProps ¶
type CfnTargetGroupProps struct { // The type of target group. Type *string `field:"required" json:"type" yaml:"type"` // The target group configuration. // // If `type` is set to `LAMBDA` , this parameter doesn't apply. Config interface{} `field:"optional" json:"config" yaml:"config"` // The name of the target group. // // The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. // // If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name. Name *string `field:"optional" json:"name" yaml:"name"` // The tags for the target group. Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // Describes a target. Targets interface{} `field:"optional" json:"targets" yaml:"targets"` }
Properties for defining a `CfnTargetGroup`.
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" cfnTargetGroupProps := &CfnTargetGroupProps{ Type: jsii.String("type"), // the properties below are optional Config: &TargetGroupConfigProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), VpcIdentifier: jsii.String("vpcIdentifier"), // the properties below are optional HealthCheck: &HealthCheckConfigProperty{ Enabled: jsii.Boolean(false), HealthCheckIntervalSeconds: jsii.Number(123), HealthCheckTimeoutSeconds: jsii.Number(123), HealthyThresholdCount: jsii.Number(123), Matcher: &MatcherProperty{ HttpCode: jsii.String("httpCode"), }, Path: jsii.String("path"), Port: jsii.Number(123), Protocol: jsii.String("protocol"), ProtocolVersion: jsii.String("protocolVersion"), UnhealthyThresholdCount: jsii.Number(123), }, IpAddressType: jsii.String("ipAddressType"), ProtocolVersion: jsii.String("protocolVersion"), }, Name: jsii.String("name"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, Targets: []interface{}{ &TargetProperty{ Id: jsii.String("id"), // the properties below are optional Port: jsii.Number(123), }, }, }
type CfnTargetGroup_HealthCheckConfigProperty ¶
type CfnTargetGroup_HealthCheckConfigProperty struct { // Indicates whether health checking is enabled. Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // The approximate amount of time, in seconds, between health checks of an individual target. // // The range is 5–300 seconds. The default is 30 seconds. HealthCheckIntervalSeconds *float64 `field:"optional" json:"healthCheckIntervalSeconds" yaml:"healthCheckIntervalSeconds"` // The amount of time, in seconds, to wait before reporting a target as unhealthy. // // The range is 1–120 seconds. The default is 5 seconds. HealthCheckTimeoutSeconds *float64 `field:"optional" json:"healthCheckTimeoutSeconds" yaml:"healthCheckTimeoutSeconds"` // The number of consecutive successful health checks required before considering an unhealthy target healthy. // // The range is 2–10. The default is 5. HealthyThresholdCount *float64 `field:"optional" json:"healthyThresholdCount" yaml:"healthyThresholdCount"` // The codes to use when checking for a successful response from a target. // // These are called *Success codes* in the console. Matcher interface{} `field:"optional" json:"matcher" yaml:"matcher"` // The destination for health checks on the targets. // // If the protocol version is `HTTP/1.1` or `HTTP/2` , specify a valid URI (for example, `/path?query` ). The default path is `/` . Health checks are not supported if the protocol version is `gRPC` , however, you can choose `HTTP/1.1` or `HTTP/2` and specify a valid URI. Path *string `field:"optional" json:"path" yaml:"path"` // The port used when performing health checks on targets. // // The default setting is the port that a target receives traffic on. Port *float64 `field:"optional" json:"port" yaml:"port"` // The protocol used when performing health checks on targets. // // The possible protocols are `HTTP` and `HTTPS` . The default is `HTTP` . Protocol *string `field:"optional" json:"protocol" yaml:"protocol"` // The protocol version used when performing health checks on targets. // // The possible protocol versions are `HTTP1` and `HTTP2` . ProtocolVersion *string `field:"optional" json:"protocolVersion" yaml:"protocolVersion"` // The number of consecutive failed health checks required before considering a target unhealthy. // // The range is 2–10. The default is 2. UnhealthyThresholdCount *float64 `field:"optional" json:"unhealthyThresholdCount" yaml:"unhealthyThresholdCount"` }
The health check configuration of a target group.
Health check configurations aren't used for `LAMBDA` and `ALB` target groups.
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" healthCheckConfigProperty := &HealthCheckConfigProperty{ Enabled: jsii.Boolean(false), HealthCheckIntervalSeconds: jsii.Number(123), HealthCheckTimeoutSeconds: jsii.Number(123), HealthyThresholdCount: jsii.Number(123), Matcher: &MatcherProperty{ HttpCode: jsii.String("httpCode"), }, Path: jsii.String("path"), Port: jsii.Number(123), Protocol: jsii.String("protocol"), ProtocolVersion: jsii.String("protocolVersion"), UnhealthyThresholdCount: jsii.Number(123), }
type CfnTargetGroup_MatcherProperty ¶
type CfnTargetGroup_MatcherProperty struct { // The HTTP code to use when checking for a successful response from a target. HttpCode *string `field:"required" json:"httpCode" yaml:"httpCode"` }
The codes to use when checking for a successful response from a target for health checks.
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" matcherProperty := &MatcherProperty{ HttpCode: jsii.String("httpCode"), }
type CfnTargetGroup_TargetGroupConfigProperty ¶
type CfnTargetGroup_TargetGroupConfigProperty struct { // The port on which the targets are listening. // // For HTTP, the default is `80` . For HTTPS, the default is `443` Port *float64 `field:"required" json:"port" yaml:"port"` // The protocol to use for routing traffic to the targets. // // Default is the protocol of a target group. Protocol *string `field:"required" json:"protocol" yaml:"protocol"` // The ID of the VPC. VpcIdentifier *string `field:"required" json:"vpcIdentifier" yaml:"vpcIdentifier"` // The health check configuration. HealthCheck interface{} `field:"optional" json:"healthCheck" yaml:"healthCheck"` // The type of IP address used for the target group. // // The possible values are `ipv4` and `ipv6` . This is an optional parameter. If not specified, the IP address type defaults to `ipv4` . IpAddressType *string `field:"optional" json:"ipAddressType" yaml:"ipAddressType"` // The protocol version. // // Default value is `HTTP1` . ProtocolVersion *string `field:"optional" json:"protocolVersion" yaml:"protocolVersion"` }
Describes the configuration of a target group.
Lambda functions don't support target group configuration.
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" targetGroupConfigProperty := &TargetGroupConfigProperty{ Port: jsii.Number(123), Protocol: jsii.String("protocol"), VpcIdentifier: jsii.String("vpcIdentifier"), // the properties below are optional HealthCheck: &HealthCheckConfigProperty{ Enabled: jsii.Boolean(false), HealthCheckIntervalSeconds: jsii.Number(123), HealthCheckTimeoutSeconds: jsii.Number(123), HealthyThresholdCount: jsii.Number(123), Matcher: &MatcherProperty{ HttpCode: jsii.String("httpCode"), }, Path: jsii.String("path"), Port: jsii.Number(123), Protocol: jsii.String("protocol"), ProtocolVersion: jsii.String("protocolVersion"), UnhealthyThresholdCount: jsii.Number(123), }, IpAddressType: jsii.String("ipAddressType"), ProtocolVersion: jsii.String("protocolVersion"), }
type CfnTargetGroup_TargetProperty ¶
type CfnTargetGroup_TargetProperty struct { // The ID of the target. // // If the target type of the target group is `INSTANCE` , this is an instance ID. If the target type is `IP` , this is an IP address. If the target type is `LAMBDA` , this is the ARN of the Lambda function. If the target type is `ALB` , this is the ARN of the Application Load Balancer. Id *string `field:"required" json:"id" yaml:"id"` // The port on which the target is listening. // // For HTTP, the default is `80` . For HTTPS, the default is `443` . Port *float64 `field:"optional" json:"port" yaml:"port"` }
Describes a 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" targetProperty := &TargetProperty{ Id: jsii.String("id"), // the properties below are optional Port: jsii.Number(123), }
Source Files ¶
- CfnAccessLogSubscription.go
- CfnAccessLogSubscriptionProps.go
- CfnAccessLogSubscription__checks.go
- CfnAuthPolicy.go
- CfnAuthPolicyProps.go
- CfnAuthPolicy__checks.go
- CfnListener.go
- CfnListenerProps.go
- CfnListener_DefaultActionProperty.go
- CfnListener_FixedResponseProperty.go
- CfnListener_ForwardProperty.go
- CfnListener_WeightedTargetGroupProperty.go
- CfnListener__checks.go
- CfnResourcePolicy.go
- CfnResourcePolicyProps.go
- CfnResourcePolicy__checks.go
- CfnRule.go
- CfnRuleProps.go
- CfnRule_ActionProperty.go
- CfnRule_FixedResponseProperty.go
- CfnRule_ForwardProperty.go
- CfnRule_HeaderMatchProperty.go
- CfnRule_HeaderMatchTypeProperty.go
- CfnRule_HttpMatchProperty.go
- CfnRule_MatchProperty.go
- CfnRule_PathMatchProperty.go
- CfnRule_PathMatchTypeProperty.go
- CfnRule_WeightedTargetGroupProperty.go
- CfnRule__checks.go
- CfnService.go
- CfnServiceNetwork.go
- CfnServiceNetworkProps.go
- CfnServiceNetworkServiceAssociation.go
- CfnServiceNetworkServiceAssociationProps.go
- CfnServiceNetworkServiceAssociation_DnsEntryProperty.go
- CfnServiceNetworkServiceAssociation__checks.go
- CfnServiceNetworkVpcAssociation.go
- CfnServiceNetworkVpcAssociationProps.go
- CfnServiceNetworkVpcAssociation__checks.go
- CfnServiceNetwork__checks.go
- CfnServiceProps.go
- CfnService_DnsEntryProperty.go
- CfnService__checks.go
- CfnTargetGroup.go
- CfnTargetGroupProps.go
- CfnTargetGroup_HealthCheckConfigProperty.go
- CfnTargetGroup_MatcherProperty.go
- CfnTargetGroup_TargetGroupConfigProperty.go
- CfnTargetGroup_TargetProperty.go
- CfnTargetGroup__checks.go
- main.go