# CfnDataSource

The `AWS::DataZone::DataSource` resource specifies an Amazon DataZone data source that is used to import technical metadata of assets (data) from the source databases or data warehouses into Amazon DataZone.

Extends: [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html) › [CfnElement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnElement.html) › [CfnRefElement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnRefElement.html) › [CfnResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnResource.html) › CfnDataSource
Implements: [IInspectable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IInspectable.html), [IEnvironmentAware](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.IEnvironmentAware.html), [IDataSourceRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_datazone.IDataSourceRef.html), [IConstruct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IConstruct.html), IDependable

- CloudFormation: [`AWS::DataZone::DataSource`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-datazone-datasource.html)
- Source: Generated at build time
- Type last changed: v2.252.0 · 30 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datazone as datazone } from 'aws-cdk-lib';
const cfnDataSource = new datazone.CfnDataSource(this, 'MyCfnDataSource', {
  domainIdentifier: 'domainIdentifier',
  name: 'name',
  projectIdentifier: 'projectIdentifier',
  type: 'type',

  // the properties below are optional
  assetFormsInput: [{
    formName: 'formName',

    // the properties below are optional
    content: 'content',
    typeIdentifier: 'typeIdentifier',
    typeRevision: 'typeRevision',
  }],
  configuration: {
    glueRunConfiguration: {
      relationalFilterConfigurations: [{
        databaseName: 'databaseName',

        // the properties below are optional
        filterExpressions: [{
          expression: 'expression',
          type: 'type',
        }],
        schemaName: 'schemaName',
      }],

      // the properties below are optional
      autoImportDataQualityResult: false,
      catalogName: 'catalogName',
      dataAccessRole: 'dataAccessRole',
    },
    redshiftRunConfiguration: {
      relationalFilterConfigurations: [{
        databaseName: 'databaseName',

        // the properties below are optional
        filterExpressions: [{
          expression: 'expression',
          type: 'type',
        }],
        schemaName: 'schemaName',
      }],

      // the properties below are optional
      dataAccessRole: 'dataAccessRole',
      redshiftCredentialConfiguration: {
        secretManagerArn: 'secretManagerArn',
      },
      redshiftStorage: {
        redshiftClusterSource: {
          clusterName: 'clusterName',
        },
        redshiftServerlessSource: {
          workgroupName: 'workgroupName',
        },
      },
    },
    sageMakerRunConfiguration: {
      trackingAssets: {
        trackingAssetsKey: ['trackingAssets'],
      },
    },
  },
  connectionIdentifier: 'connectionIdentifier',
  description: 'description',
  enableSetting: 'enableSetting',
  environmentIdentifier: 'environmentIdentifier',
  publishOnImport: false,
  recommendation: {
    enableBusinessNameGeneration: false,
  },
  schedule: {
    schedule: 'schedule',
    timezone: 'timezone',
  },
});
```

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_datazone as datazone

cfn_data_source = datazone.CfnDataSource(self, "MyCfnDataSource",
    domain_identifier="domainIdentifier",
    name="name",
    project_identifier="projectIdentifier",
    type="type",

    # the properties below are optional
    asset_forms_input=[datazone.CfnDataSource.FormInputProperty(
        form_name="formName",

        # the properties below are optional
        content="content",
        type_identifier="typeIdentifier",
        type_revision="typeRevision"
    )],
    configuration=datazone.CfnDataSource.DataSourceConfigurationInputProperty(
        glue_run_configuration=datazone.CfnDataSource.GlueRunConfigurationInputProperty(
            relational_filter_configurations=[datazone.CfnDataSource.RelationalFilterConfigurationProperty(
                database_name="databaseName",

                # the properties below are optional
                filter_expressions=[datazone.CfnDataSource.FilterExpressionProperty(
                    expression="expression",
                    type="type"
                )],
                schema_name="schemaName"
            )],

            # the properties below are optional
            auto_import_data_quality_result=False,
            catalog_name="catalogName",
            data_access_role="dataAccessRole"
        ),
        redshift_run_configuration=datazone.CfnDataSource.RedshiftRunConfigurationInputProperty(
            relational_filter_configurations=[datazone.CfnDataSource.RelationalFilterConfigurationProperty(
                database_name="databaseName",

                # the properties below are optional
                filter_expressions=[datazone.CfnDataSource.FilterExpressionProperty(
                    expression="expression",
                    type="type"
                )],
                schema_name="schemaName"
            )],

            # the properties below are optional
            data_access_role="dataAccessRole",
            redshift_credential_configuration=datazone.CfnDataSource.RedshiftCredentialConfigurationProperty(
                secret_manager_arn="secretManagerArn"
            ),
            redshift_storage=datazone.CfnDataSource.RedshiftStorageProperty(
                redshift_cluster_source=datazone.CfnDataSource.RedshiftClusterStorageProperty(
                    cluster_name="clusterName"
                ),
                redshift_serverless_source=datazone.CfnDataSource.RedshiftServerlessStorageProperty(
                    workgroup_name="workgroupName"
                )
            )
        ),
        sage_maker_run_configuration=datazone.CfnDataSource.SageMakerRunConfigurationInputProperty(
            tracking_assets={
                "tracking_assets_key": ["trackingAssets"]
            }
        )
    ),
    connection_identifier="connectionIdentifier",
    description="description",
    enable_setting="enableSetting",
    environment_identifier="environmentIdentifier",
    publish_on_import=False,
    recommendation=datazone.CfnDataSource.RecommendationConfigurationProperty(
        enable_business_name_generation=False
    ),
    schedule=datazone.CfnDataSource.ScheduleConfigurationProperty(
        schedule="schedule",
        timezone="timezone"
    )
)
```

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

CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource")
        .domainIdentifier("domainIdentifier")
        .name("name")
        .projectIdentifier("projectIdentifier")
        .type("type")

        // the properties below are optional
        .assetFormsInput(List.of(FormInputProperty.builder()
                .formName("formName")

                // the properties below are optional
                .content("content")
                .typeIdentifier("typeIdentifier")
                .typeRevision("typeRevision")
                .build()))
        .configuration(DataSourceConfigurationInputProperty.builder()
                .glueRunConfiguration(GlueRunConfigurationInputProperty.builder()
                        .relationalFilterConfigurations(List.of(RelationalFilterConfigurationProperty.builder()
                                .databaseName("databaseName")

                                // the properties below are optional
                                .filterExpressions(List.of(FilterExpressionProperty.builder()
                                        .expression("expression")
                                        .type("type")
                                        .build()))
                                .schemaName("schemaName")
                                .build()))

                        // the properties below are optional
                        .autoImportDataQualityResult(false)
                        .catalogName("catalogName")
                        .dataAccessRole("dataAccessRole")
                        .build())
                .redshiftRunConfiguration(RedshiftRunConfigurationInputProperty.builder()
                        .relationalFilterConfigurations(List.of(RelationalFilterConfigurationProperty.builder()
                                .databaseName("databaseName")

                                // the properties below are optional
                                .filterExpressions(List.of(FilterExpressionProperty.builder()
                                        .expression("expression")
                                        .type("type")
                                        .build()))
                                .schemaName("schemaName")
                                .build()))

                        // the properties below are optional
                        .dataAccessRole("dataAccessRole")
                        .redshiftCredentialConfiguration(RedshiftCredentialConfigurationProperty.builder()
                                .secretManagerArn("secretManagerArn")
                                .build())
                        .redshiftStorage(RedshiftStorageProperty.builder()
                                .redshiftClusterSource(RedshiftClusterStorageProperty.builder()
                                        .clusterName("clusterName")
                                        .build())
                                .redshiftServerlessSource(RedshiftServerlessStorageProperty.builder()
                                        .workgroupName("workgroupName")
                                        .build())
                                .build())
                        .build())
                .sageMakerRunConfiguration(SageMakerRunConfigurationInputProperty.builder()
                        .trackingAssets(Map.of(
                                "trackingAssetsKey", List.of("trackingAssets")))
                        .build())
                .build())
        .connectionIdentifier("connectionIdentifier")
        .description("description")
        .enableSetting("enableSetting")
        .environmentIdentifier("environmentIdentifier")
        .publishOnImport(false)
        .recommendation(RecommendationConfigurationProperty.builder()
                .enableBusinessNameGeneration(false)
                .build())
        .schedule(ScheduleConfigurationProperty.builder()
                .schedule("schedule")
                .timezone("timezone")
                .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.DataZone;

var cfnDataSource = new CfnDataSource(this, "MyCfnDataSource", new CfnDataSourceProps {
    DomainIdentifier = "domainIdentifier",
    Name = "name",
    ProjectIdentifier = "projectIdentifier",
    Type = "type",

    // the properties below are optional
    AssetFormsInput = new [] { new FormInputProperty {
        FormName = "formName",

        // the properties below are optional
        Content = "content",
        TypeIdentifier = "typeIdentifier",
        TypeRevision = "typeRevision"
    } },
    Configuration = new DataSourceConfigurationInputProperty {
        GlueRunConfiguration = new GlueRunConfigurationInputProperty {
            RelationalFilterConfigurations = new [] { new RelationalFilterConfigurationProperty {
                DatabaseName = "databaseName",

                // the properties below are optional
                FilterExpressions = new [] { new FilterExpressionProperty {
                    Expression = "expression",
                    Type = "type"
                } },
                SchemaName = "schemaName"
            } },

            // the properties below are optional
            AutoImportDataQualityResult = false,
            CatalogName = "catalogName",
            DataAccessRole = "dataAccessRole"
        },
        RedshiftRunConfiguration = new RedshiftRunConfigurationInputProperty {
            RelationalFilterConfigurations = new [] { new RelationalFilterConfigurationProperty {
                DatabaseName = "databaseName",

                // the properties below are optional
                FilterExpressions = new [] { new FilterExpressionProperty {
                    Expression = "expression",
                    Type = "type"
                } },
                SchemaName = "schemaName"
            } },

            // the properties below are optional
            DataAccessRole = "dataAccessRole",
            RedshiftCredentialConfiguration = new RedshiftCredentialConfigurationProperty {
                SecretManagerArn = "secretManagerArn"
            },
            RedshiftStorage = new RedshiftStorageProperty {
                RedshiftClusterSource = new RedshiftClusterStorageProperty {
                    ClusterName = "clusterName"
                },
                RedshiftServerlessSource = new RedshiftServerlessStorageProperty {
                    WorkgroupName = "workgroupName"
                }
            }
        },
        SageMakerRunConfiguration = new SageMakerRunConfigurationInputProperty {
            TrackingAssets = new Dictionary<string, string[]> {
                { "trackingAssetsKey", new [] { "trackingAssets" } }
            }
        }
    },
    ConnectionIdentifier = "connectionIdentifier",
    Description = "description",
    EnableSetting = "enableSetting",
    EnvironmentIdentifier = "environmentIdentifier",
    PublishOnImport = false,
    Recommendation = new RecommendationConfigurationProperty {
        EnableBusinessNameGeneration = false
    },
    Schedule = new ScheduleConfigurationProperty {
        Schedule = "schedule",
        Timezone = "timezone"
    }
});
```

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"

cfnDataSource := awscdk.Aws_datazone.NewCfnDataSource(this, jsii.String("MyCfnDataSource"), &CfnDataSourceProps{
	DomainIdentifier: jsii.String("domainIdentifier"),
	Name: jsii.String("name"),
	ProjectIdentifier: jsii.String("projectIdentifier"),
	Type: jsii.String("type"),

	// the properties below are optional
	AssetFormsInput: []interface{}{
		&FormInputProperty{
			FormName: jsii.String("formName"),

			// the properties below are optional
			Content: jsii.String("content"),
			TypeIdentifier: jsii.String("typeIdentifier"),
			TypeRevision: jsii.String("typeRevision"),
		},
	},
	Configuration: &DataSourceConfigurationInputProperty{
		GlueRunConfiguration: &GlueRunConfigurationInputProperty{
			RelationalFilterConfigurations: []interface{}{
				&RelationalFilterConfigurationProperty{
					DatabaseName: jsii.String("databaseName"),

					// the properties below are optional
					FilterExpressions: []interface{}{
						&FilterExpressionProperty{
							Expression: jsii.String("expression"),
							Type: jsii.String("type"),
						},
					},
					SchemaName: jsii.String("schemaName"),
				},
			},

			// the properties below are optional
			AutoImportDataQualityResult: jsii.Boolean(false),
			CatalogName: jsii.String("catalogName"),
			DataAccessRole: jsii.String("dataAccessRole"),
		},
		RedshiftRunConfiguration: &RedshiftRunConfigurationInputProperty{
			RelationalFilterConfigurations: []interface{}{
				&RelationalFilterConfigurationProperty{
					DatabaseName: jsii.String("databaseName"),

					// the properties below are optional
					FilterExpressions: []interface{}{
						&FilterExpressionProperty{
							Expression: jsii.String("expression"),
							Type: jsii.String("type"),
						},
					},
					SchemaName: jsii.String("schemaName"),
				},
			},

			// the properties below are optional
			DataAccessRole: jsii.String("dataAccessRole"),
			RedshiftCredentialConfiguration: &RedshiftCredentialConfigurationProperty{
				SecretManagerArn: jsii.String("secretManagerArn"),
			},
			RedshiftStorage: &RedshiftStorageProperty{
				RedshiftClusterSource: &RedshiftClusterStorageProperty{
					ClusterName: jsii.String("clusterName"),
				},
				RedshiftServerlessSource: &RedshiftServerlessStorageProperty{
					WorkgroupName: jsii.String("workgroupName"),
				},
			},
		},
		SageMakerRunConfiguration: &SageMakerRunConfigurationInputProperty{
			TrackingAssets: map[string][]*string{
				"trackingAssetsKey": []*string{
					jsii.String("trackingAssets"),
				},
			},
		},
	},
	ConnectionIdentifier: jsii.String("connectionIdentifier"),
	Description: jsii.String("description"),
	EnableSetting: jsii.String("enableSetting"),
	EnvironmentIdentifier: jsii.String("environmentIdentifier"),
	PublishOnImport: jsii.Boolean(false),
	Recommendation: &RecommendationConfigurationProperty{
		EnableBusinessNameGeneration: jsii.Boolean(false),
	},
	Schedule: &ScheduleConfigurationProperty{
		Schedule: jsii.String("schedule"),
		Timezone: jsii.String("timezone"),
	},
})
```

## Initializer

TypeScript:

```ts
new CfnDataSource(scope: Construct, id: string, props: CfnDataSourceProps)
```

Python:

```python
CfnDataSource(scope: Construct, id: str, props: CfnDataSourceProps)
```

Java:

```java
new CfnDataSource(Construct scope, String id, CfnDataSourceProps props)
```

C# / .NET:

```csharp
new CfnDataSource(Construct scope, string id, CfnDataSourceProps props)
```

Golang:

```go
NewCfnDataSource(Scope Construct, Id *string, Props CfnDataSourceProps)
```

## Construct Props

- `assetFormsInput`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.FormInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.FormInputProperty.html)[] — The metadata forms attached to the assets that the data source works with.

- `configuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceConfigurationInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.DataSourceConfigurationInputProperty.html) — The configuration of the data source.

- `connectionIdentifier`: string — The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run.

- `description`: string — The description of the data source.

- `domainIdentifier`: string (required) — The ID of the Amazon DataZone domain where the data source is created.

- `enableSetting`: string — Specifies whether the data source is enabled.

- `environmentIdentifier`: string — The unique identifier of the Amazon DataZone environment to which the data source publishes assets.

- `name`: string (required) — The name of the data source.

- `projectIdentifier`: string (required) — The identifier of the Amazon DataZone project in which you want to add this data source.

- `publishOnImport`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.

- `recommendation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RecommendationConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RecommendationConfigurationProperty.html) — Specifies whether the business name generation is to be enabled for this data source.

- `schedule`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.ScheduleConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.ScheduleConfigurationProperty.html) — The schedule of the data source runs.

- `type`: string (required) — The type of the data source.

  In Amazon DataZone, you can use data sources to import technical metadata of assets (data) from the source databases or data warehouses into Amazon DataZone. In the current release of Amazon DataZone, you can create and run data sources for AWS Glue and Amazon Redshift.

## Properties

- `assetFormsInput`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.FormInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.FormInputProperty.html)[] — The metadata forms attached to the assets that the data source works with.

- `attrConnectionId`: string — The connection ID that's part of the data source summary.

- `attrCreatedAt`: string — The timestamp of when the data source was created.

- `attrDomainId`: string — The ID of the Amazon DataZone domain in which the data source exists.

- `attrEnvironmentId`: string — The ID of the environment in which the data source exists.

- `attrId`: string — The identifier of the data source run.

- `attrLastRunAssetCount`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The count of the assets created during the last data source run.

- `attrLastRunAt`: string — The timestamp of when the data source run was last performed.

- `attrLastRunStatus`: string — The status of the last data source run.

- `attrProjectId`: string — The project ID included in the data source run activity.

- `attrStatus`: string — The status of the data source.

- `attrUpdatedAt`: string — The timestamp of when the data source was updated.

- `CFN_RESOURCE_TYPE_NAME`: string (static) — The CloudFormation resource type name for this resource class.

- `cfnOptions`: [ICfnResourceOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ICfnResourceOptions.html) — Options for this resource, such as condition, update policy etc.

- `cfnResourceType`: string — AWS resource type.

- `configuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DataSourceConfigurationInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.DataSourceConfigurationInputProperty.html) — The configuration of the data source.

- `connectionIdentifier`: string — The unique identifier of a connection used to fetch relevant parameters from connection during Datasource run.

- `creationStack`: string[]

- `dataSourceRef`: [DataSourceReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_datazone.DataSourceReference.html) — A reference to a DataSource resource.

- `description`: string — The description of the data source.

- `domainIdentifier`: string — The ID of the Amazon DataZone domain where the data source is created.

- `enableSetting`: string — Specifies whether the data source is enabled.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html)

- `environmentIdentifier`: string — The unique identifier of the Amazon DataZone environment to which the data source publishes assets.

- `logicalId`: 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)`.

- `name`: string — The name of the data source.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `projectIdentifier`: string — The identifier of the Amazon DataZone project in which you want to add this data source.

- `publishOnImport`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.

- `recommendation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.RecommendationConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.RecommendationConfigurationProperty.html) — Specifies whether the business name generation is to be enabled for this data source.

- `ref`: 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 })`.

- `schedule`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.ScheduleConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDataSource.ScheduleConfigurationProperty.html) — The schedule of the data source runs.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this element is defined.

  CfnElements must be defined within a stack scope (directly or indirectly).

- `type`: string — The type of the data source.

## Methods

- `addDeletionOverride(path: string): void` — Syntactic sugar for `addOverride(path, undefined)`.

  **Parameters**

  - `path` — The path of the value to delete.

- `addDependency(target: CfnResource): void` — Use `addResourceDependency` instead.

  This method has been renamed to `addResourceDependency` to more clearly
  set it apart from `construct.node.addDependency`. See the documentation
  of that function for more details.

- `addDependsOn(target: CfnResource): void` — Use `addResourceDependency` instead.

  This can be used for resources across stacks (or nested stack) boundaries
  and the dependency will automatically be transferred to the relevant scope.

  This method has been renamed to `addResourceDependency`, which makes it
  more clear that this method operates at a different level from the
  construct-level `construct.node.addDependency()` mechanism.

- `addMetadata(key: string, value: any): void` — Add a value to the CloudFormation Resource Metadata.

- `addOverride(path: string, value: any): void` — 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.

  **Parameters**

  - `path` — - The path of the property, you can use dot notation to override values in complex types.
  - `value` — - The value.

- `addPropertyDeletionOverride(propertyPath: string): void` — Adds an override that deletes the value of a property from the resource definition.

  **Parameters**

  - `propertyPath` — The path to the property.

- `addPropertyOverride(propertyPath: string, value: any): void` — Adds an override to a resource property.

  Syntactic sugar for `addOverride("Properties.<...>", value)`.

  **Parameters**

  - `propertyPath` — The path of the property.
  - `value` — The value.

- `addResourceDependency(target: CfnResource, reason?: string): void` — 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.

  This method only adds dependencies between L1 resources. If you are
  looking for a generic construct-to-construct dependency mechanism that works
  for all constructs including L2s, use `construct.node.addDependency` instead.

- `applyCrossStackReferenceStrength(strength: ReferenceStrength): void` — Sets the cross-stack reference strength for this resource.

  When set, any cross-stack reference to this resource will use the specified
  strength instead of the global default from the consuming stack's context.

  **Parameters**

  - `strength` — - The reference strength to use for this resource.

- `applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): void` — Sets the deletion policy of the resource based on the removal policy specified.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
  cases, a snapshot can be taken of the resource prior to deletion
  (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
  can be found in the following link:

- `arnForDataSource(resource: IDataSourceRef): string` (static)

- `cfnPropertyName(cdkPropertyName: string): string`

- `getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Reference` — 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.

  **Parameters**

  - `attributeName` — The name of the attribute.

- `getMetadata(key: string): any` — Retrieve a value value from the CloudFormation Resource Metadata.

- `inspect(inspector: TreeInspector): void` — Examines the CloudFormation resource and discloses attributes.

  **Parameters**

  - `inspector` — tree inspector to collect and process attributes.

- `isCfnDataSource(x: any): boolean` (static) — Checks whether the given object is a CfnDataSource.

- `isCfnElement(x: any): boolean` (static) — 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.

- `isCfnResource(x: any): boolean` (static) — Check whether the given object is a CfnResource.

- `isConstruct(x: any): boolean` (static) — Checks if `x` is a construct.

  Use this method instead of `instanceof` to properly detect `Construct`
  instances, even when the construct library is symlinked.

  Explanation: in JavaScript, multiple copies of the `constructs` library on
  disk are seen as independent, completely different libraries. As a
  consequence, the class `Construct` in each copy of the `constructs` library
  is seen as a different class, and an instance of one class will not test as
  `instanceof` the other class. `npm install` will not create installations
  like this, but users may manually symlink construct libraries together or
  use a monorepo tool: in those cases, multiple copies of the `constructs`
  library can be accidentally installed, and `instanceof` will behave
  unpredictably. It is safest to avoid using `instanceof`, and using
  this type-testing method instead.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Construct`.

- `obtainDependencies(): Stack | CfnResource[]` — Retrieves an array of resources and stacks this resource depends on.

  For resources depended on directly, returns the `CfnResource` object. For
  dependencies on other stacks, returns the `Stack` object. The order of the
  array is not guaranteed.

- `overrideLogicalId(newLogicalId: string): void` — Overrides the auto-generated logical ID with a specific ID.

  **Parameters**

  - `newLogicalId` — The new logical ID to use for this stack element.

- `removeDependency(target: CfnResource): void` — Use `removeResourceDependency` instead

  This can be used for resources across stacks (including nested stacks)
  and the dependency will automatically be removed from the relevant scope.

- `removeResourceDependency(target: CfnResource): void` — Indicates that this resource no longer depends on another resource.

  This can be used for resources across stacks (including nested stacks)
  and the dependency will automatically be removed from the relevant scope.

- `replaceDependency(target: CfnResource, newTarget: CfnResource): void` — Replaces one dependency with another.

  **Parameters**

  - `target` — The dependency to replace.
  - `newTarget` — The new dependency to add.

- `toString(): string` — Returns a string representation of this construct.

  **Returns:** a string representation of this resource

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.
  Use multiple `with()` calls if subsequent mixins should apply to added
  constructs.
