# CfnDomainNameAccessAssociationProps

Properties for defining a `CfnDomainNameAccessAssociation`.

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

- Source: Generated at build time
- Type last changed: v2.172.0 · 7 Dec 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnDomainNameAccessAssociationProps: apigateway.CfnDomainNameAccessAssociationProps = {
  accessAssociationSource: 'accessAssociationSource',
  accessAssociationSourceType: 'accessAssociationSourceType',
  domainNameArn: 'domainNameArn',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigateway as apigateway

cfn_domain_name_access_association_props = apigateway.CfnDomainNameAccessAssociationProps(
    access_association_source="accessAssociationSource",
    access_association_source_type="accessAssociationSourceType",
    domain_name_arn="domainNameArn",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.apigateway.*;

CfnDomainNameAccessAssociationProps cfnDomainNameAccessAssociationProps = CfnDomainNameAccessAssociationProps.builder()
        .accessAssociationSource("accessAssociationSource")
        .accessAssociationSourceType("accessAssociationSourceType")
        .domainNameArn("domainNameArn")

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.APIGateway;

var cfnDomainNameAccessAssociationProps = new CfnDomainNameAccessAssociationProps {
    AccessAssociationSource = "accessAssociationSource",
    AccessAssociationSourceType = "accessAssociationSourceType",
    DomainNameArn = "domainNameArn",

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnDomainNameAccessAssociationProps := &CfnDomainNameAccessAssociationProps{
	AccessAssociationSource: jsii.String("accessAssociationSource"),
	AccessAssociationSourceType: jsii.String("accessAssociationSourceType"),
	DomainNameArn: jsii.String("domainNameArn"),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `accessAssociationSource`: string (required) — The identifier of the domain name access association source.

  For a `VPCE` , the value is the VPC endpoint ID.

- `accessAssociationSourceType`: string (required) — The type of the domain name access association source.

  Only `VPCE` is currently supported.

- `domainNameArn`: string (required) — The ARN of the domain name.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The collection of tags.

  Each tag element is associated with a given resource.
