# CfnElasticLoadBalancerAttachmentProps

Properties for defining a `CfnElasticLoadBalancerAttachment`.

Used as props by: [CfnElasticLoadBalancerAttachment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opsworks.CfnElasticLoadBalancerAttachment.html)

- Source: Generated at build time

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `elasticLoadBalancerName`: string (required) — The Elastic Load Balancing instance name.

- `layerId`: string (required) — The OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.
