Skip to content
v2.278.0

DataSourcesProperty ​

Struct External

Describes the data sources for the experiment report.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fis as fis } from 'aws-cdk-lib';
const dataSourcesProperty: fis.CfnExperimentTemplate.DataSourcesProperty = {
  cloudWatchDashboards: [{
    dashboardIdentifier: 'dashboardIdentifier',
  }],
};
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_fis as fis

data_sources_property = fis.CfnExperimentTemplate.DataSourcesProperty(
    cloud_watch_dashboards=[fis.CfnExperimentTemplate.CloudWatchDashboardProperty(
        dashboard_identifier="dashboardIdentifier"
    )]
)
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.fis.*;

DataSourcesProperty dataSourcesProperty = DataSourcesProperty.builder()
        .cloudWatchDashboards(List.of(CloudWatchDashboardProperty.builder()
                .dashboardIdentifier("dashboardIdentifier")
                .build()))
        .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.FIS;

var dataSourcesProperty = new DataSourcesProperty {
    CloudWatchDashboards = new [] { new CloudWatchDashboardProperty {
        DashboardIdentifier = "dashboardIdentifier"
    } }
};
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"

dataSourcesProperty := &DataSourcesProperty{
	CloudWatchDashboards: []interface{}{
		&CloudWatchDashboardProperty{
			DashboardIdentifier: jsii.String("dashboardIdentifier"),
		},
	},
}

Properties ​

cloudWatchDashboardsoptionalIResolvable | IResolvable | CfnExperimentTemplate.CloudWatchDashboardProperty[]cloud_watch_dashboardsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CloudWatchDashboardProperty]]]cloudWatchDashboardsoptionalIResolvableCloudWatchDashboardsoptionalIResolvableCloudWatchDashboardsoptionalinterface{} #
The CloudWatch dashboards to include as data sources in the experiment report.