Skip to content
v2.278.0

CfnElasticLoadBalancerAttachmentProps Struct ​

Properties for defining a CfnElasticLoadBalancerAttachment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opsworks as opsworks } from 'aws-cdk-lib';
const cfnElasticLoadBalancerAttachmentProps: opsworks.CfnElasticLoadBalancerAttachmentProps = {
  elasticLoadBalancerName: 'elasticLoadBalancerName',
  layerId: 'layerId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opsworks as opsworks

cfn_elastic_load_balancer_attachment_props = opsworks.CfnElasticLoadBalancerAttachmentProps(
    elastic_load_balancer_name="elasticLoadBalancerName",
    layer_id="layerId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opsworks.*;

CfnElasticLoadBalancerAttachmentProps cfnElasticLoadBalancerAttachmentProps = CfnElasticLoadBalancerAttachmentProps.builder()
        .elasticLoadBalancerName("elasticLoadBalancerName")
        .layerId("layerId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;

var cfnElasticLoadBalancerAttachmentProps = new CfnElasticLoadBalancerAttachmentProps {
    ElasticLoadBalancerName = "elasticLoadBalancerName",
    LayerId = "layerId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnElasticLoadBalancerAttachmentProps := &CfnElasticLoadBalancerAttachmentProps{
	ElasticLoadBalancerName: jsii.String("elasticLoadBalancerName"),
	LayerId: jsii.String("layerId"),
}

Properties ​

elasticLoadBalancerNamestringelastic_load_balancer_namestrelasticLoadBalancerNameStringElasticLoadBalancerNamestringElasticLoadBalancerName*string required #
The Elastic Load Balancing instance name.
layerIdstringlayer_idstrlayerIdStringLayerIdstringLayerId*string required #
The OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.