Skip to content
v2.278.0

CfnAnalysisTemplateProps Struct ​

Properties for defining a CfnAnalysisTemplate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cleanrooms as cleanrooms } from 'aws-cdk-lib';
const cfnAnalysisTemplateProps: cleanrooms.CfnAnalysisTemplateProps = {
  format: 'format',
  membershipIdentifier: 'membershipIdentifier',
  name: 'name',
  source: {
    artifacts: {
      entryPoint: {
        location: {
          bucket: 'bucket',
          key: 'key',
        },
      },
      roleArn: 'roleArn',

      // the properties below are optional
      additionalArtifacts: [{
        location: {
          bucket: 'bucket',
          key: 'key',
        },
      }],
    },
    text: 'text',
  },

  // the properties below are optional
  analysisParameters: [{
    name: 'name',
    type: 'type',

    // the properties below are optional
    defaultValue: 'defaultValue',
  }],
  description: 'description',
  errorMessageConfiguration: {
    type: 'type',
  },
  schema: {
    referencedTables: ['referencedTables'],
  },
  sourceMetadata: {
    artifacts: {
      entryPointHash: {
        sha256: 'sha256',
      },

      // the properties below are optional
      additionalArtifactHashes: [{
        sha256: 'sha256',
      }],
    },
  },
  syntheticDataParameters: {
    mlSyntheticDataParameters: {
      columnClassification: {
        columnMapping: [{
          columnName: 'columnName',
          columnType: 'columnType',
          isPredictiveValue: false,
        }],
      },
      epsilon: 123,
      maxMembershipInferenceAttackScore: 123,
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
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_cleanrooms as cleanrooms

cfn_analysis_template_props = cleanrooms.CfnAnalysisTemplateProps(
    format="format",
    membership_identifier="membershipIdentifier",
    name="name",
    source=cleanrooms.CfnAnalysisTemplate.AnalysisSourceProperty(
        artifacts=cleanrooms.CfnAnalysisTemplate.AnalysisTemplateArtifactsProperty(
            entry_point=cleanrooms.CfnAnalysisTemplate.AnalysisTemplateArtifactProperty(
                location=cleanrooms.CfnAnalysisTemplate.S3LocationProperty(
                    bucket="bucket",
                    key="key"
                )
            ),
            role_arn="roleArn",

            # the properties below are optional
            additional_artifacts=[cleanrooms.CfnAnalysisTemplate.AnalysisTemplateArtifactProperty(
                location=cleanrooms.CfnAnalysisTemplate.S3LocationProperty(
                    bucket="bucket",
                    key="key"
                )
            )]
        ),
        text="text"
    ),

    # the properties below are optional
    analysis_parameters=[cleanrooms.CfnAnalysisTemplate.AnalysisParameterProperty(
        name="name",
        type="type",

        # the properties below are optional
        default_value="defaultValue"
    )],
    description="description",
    error_message_configuration=cleanrooms.CfnAnalysisTemplate.ErrorMessageConfigurationProperty(
        type="type"
    ),
    schema=cleanrooms.CfnAnalysisTemplate.AnalysisSchemaProperty(
        referenced_tables=["referencedTables"]
    ),
    source_metadata=cleanrooms.CfnAnalysisTemplate.AnalysisSourceMetadataProperty(
        artifacts=cleanrooms.CfnAnalysisTemplate.AnalysisTemplateArtifactMetadataProperty(
            entry_point_hash=cleanrooms.CfnAnalysisTemplate.HashProperty(
                sha256="sha256"
            ),

            # the properties below are optional
            additional_artifact_hashes=[cleanrooms.CfnAnalysisTemplate.HashProperty(
                sha256="sha256"
            )]
        )
    ),
    synthetic_data_parameters=cleanrooms.CfnAnalysisTemplate.SyntheticDataParametersProperty(
        ml_synthetic_data_parameters=cleanrooms.CfnAnalysisTemplate.MLSyntheticDataParametersProperty(
            column_classification=cleanrooms.CfnAnalysisTemplate.ColumnClassificationDetailsProperty(
                column_mapping=[cleanrooms.CfnAnalysisTemplate.SyntheticDataColumnPropertiesProperty(
                    column_name="columnName",
                    column_type="columnType",
                    is_predictive_value=False
                )]
            ),
            epsilon=123,
            max_membership_inference_attack_score=123
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.cleanrooms.*;

CfnAnalysisTemplateProps cfnAnalysisTemplateProps = CfnAnalysisTemplateProps.builder()
        .format("format")
        .membershipIdentifier("membershipIdentifier")
        .name("name")
        .source(AnalysisSourceProperty.builder()
                .artifacts(AnalysisTemplateArtifactsProperty.builder()
                        .entryPoint(AnalysisTemplateArtifactProperty.builder()
                                .location(S3LocationProperty.builder()
                                        .bucket("bucket")
                                        .key("key")
                                        .build())
                                .build())
                        .roleArn("roleArn")

                        // the properties below are optional
                        .additionalArtifacts(List.of(AnalysisTemplateArtifactProperty.builder()
                                .location(S3LocationProperty.builder()
                                        .bucket("bucket")
                                        .key("key")
                                        .build())
                                .build()))
                        .build())
                .text("text")
                .build())

        // the properties below are optional
        .analysisParameters(List.of(AnalysisParameterProperty.builder()
                .name("name")
                .type("type")

                // the properties below are optional
                .defaultValue("defaultValue")
                .build()))
        .description("description")
        .errorMessageConfiguration(ErrorMessageConfigurationProperty.builder()
                .type("type")
                .build())
        .schema(AnalysisSchemaProperty.builder()
                .referencedTables(List.of("referencedTables"))
                .build())
        .sourceMetadata(AnalysisSourceMetadataProperty.builder()
                .artifacts(AnalysisTemplateArtifactMetadataProperty.builder()
                        .entryPointHash(HashProperty.builder()
                                .sha256("sha256")
                                .build())

                        // the properties below are optional
                        .additionalArtifactHashes(List.of(HashProperty.builder()
                                .sha256("sha256")
                                .build()))
                        .build())
                .build())
        .syntheticDataParameters(SyntheticDataParametersProperty.builder()
                .mlSyntheticDataParameters(MLSyntheticDataParametersProperty.builder()
                        .columnClassification(ColumnClassificationDetailsProperty.builder()
                                .columnMapping(List.of(SyntheticDataColumnPropertiesProperty.builder()
                                        .columnName("columnName")
                                        .columnType("columnType")
                                        .isPredictiveValue(false)
                                        .build()))
                                .build())
                        .epsilon(123)
                        .maxMembershipInferenceAttackScore(123)
                        .build())
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.CleanRooms;

var cfnAnalysisTemplateProps = new CfnAnalysisTemplateProps {
    Format = "format",
    MembershipIdentifier = "membershipIdentifier",
    Name = "name",
    Source = new AnalysisSourceProperty {
        Artifacts = new AnalysisTemplateArtifactsProperty {
            EntryPoint = new AnalysisTemplateArtifactProperty {
                Location = new S3LocationProperty {
                    Bucket = "bucket",
                    Key = "key"
                }
            },
            RoleArn = "roleArn",

            // the properties below are optional
            AdditionalArtifacts = new [] { new AnalysisTemplateArtifactProperty {
                Location = new S3LocationProperty {
                    Bucket = "bucket",
                    Key = "key"
                }
            } }
        },
        Text = "text"
    },

    // the properties below are optional
    AnalysisParameters = new [] { new AnalysisParameterProperty {
        Name = "name",
        Type = "type",

        // the properties below are optional
        DefaultValue = "defaultValue"
    } },
    Description = "description",
    ErrorMessageConfiguration = new ErrorMessageConfigurationProperty {
        Type = "type"
    },
    Schema = new AnalysisSchemaProperty {
        ReferencedTables = new [] { "referencedTables" }
    },
    SourceMetadata = new AnalysisSourceMetadataProperty {
        Artifacts = new AnalysisTemplateArtifactMetadataProperty {
            EntryPointHash = new HashProperty {
                Sha256 = "sha256"
            },

            // the properties below are optional
            AdditionalArtifactHashes = new [] { new HashProperty {
                Sha256 = "sha256"
            } }
        }
    },
    SyntheticDataParameters = new SyntheticDataParametersProperty {
        MlSyntheticDataParameters = new MLSyntheticDataParametersProperty {
            ColumnClassification = new ColumnClassificationDetailsProperty {
                ColumnMapping = new [] { new SyntheticDataColumnPropertiesProperty {
                    ColumnName = "columnName",
                    ColumnType = "columnType",
                    IsPredictiveValue = false
                } }
            },
            Epsilon = 123,
            MaxMembershipInferenceAttackScore = 123
        }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnAnalysisTemplateProps := &CfnAnalysisTemplateProps{
	Format: jsii.String("format"),
	MembershipIdentifier: jsii.String("membershipIdentifier"),
	Name: jsii.String("name"),
	Source: &AnalysisSourceProperty{
		Artifacts: &AnalysisTemplateArtifactsProperty{
			EntryPoint: &AnalysisTemplateArtifactProperty{
				Location: &S3LocationProperty{
					Bucket: jsii.String("bucket"),
					Key: jsii.String("key"),
				},
			},
			RoleArn: jsii.String("roleArn"),

			// the properties below are optional
			AdditionalArtifacts: []interface{}{
				&AnalysisTemplateArtifactProperty{
					Location: &S3LocationProperty{
						Bucket: jsii.String("bucket"),
						Key: jsii.String("key"),
					},
				},
			},
		},
		Text: jsii.String("text"),
	},

	// the properties below are optional
	AnalysisParameters: []interface{}{
		&AnalysisParameterProperty{
			Name: jsii.String("name"),
			Type: jsii.String("type"),

			// the properties below are optional
			DefaultValue: jsii.String("defaultValue"),
		},
	},
	Description: jsii.String("description"),
	ErrorMessageConfiguration: &ErrorMessageConfigurationProperty{
		Type: jsii.String("type"),
	},
	Schema: &AnalysisSchemaProperty{
		ReferencedTables: []*string{
			jsii.String("referencedTables"),
		},
	},
	SourceMetadata: &AnalysisSourceMetadataProperty{
		Artifacts: &AnalysisTemplateArtifactMetadataProperty{
			EntryPointHash: &HashProperty{
				Sha256: jsii.String("sha256"),
			},

			// the properties below are optional
			AdditionalArtifactHashes: []interface{}{
				&HashProperty{
					Sha256: jsii.String("sha256"),
				},
			},
		},
	},
	SyntheticDataParameters: &SyntheticDataParametersProperty{
		MlSyntheticDataParameters: &MLSyntheticDataParametersProperty{
			ColumnClassification: &ColumnClassificationDetailsProperty{
				ColumnMapping: []interface{}{
					&SyntheticDataColumnPropertiesProperty{
						ColumnName: jsii.String("columnName"),
						ColumnType: jsii.String("columnType"),
						IsPredictiveValue: jsii.Boolean(false),
					},
				},
			},
			Epsilon: jsii.Number(123),
			MaxMembershipInferenceAttackScore: jsii.Number(123),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

analysisParametersoptionalIResolvable | IResolvable | CfnAnalysisTemplate.AnalysisParameterProperty[]analysis_parametersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AnalysisParameterProperty]]]analysisParametersoptionalIResolvableAnalysisParametersoptionalIResolvableAnalysisParametersoptionalinterface{} #
The parameters of the analysis template.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the analysis template.
errorMessageConfigurationoptionalIResolvable | CfnAnalysisTemplate.ErrorMessageConfigurationPropertyerror_message_configurationoptionaltyping.Union[IResolvable, ErrorMessageConfigurationProperty]errorMessageConfigurationoptionalIResolvableErrorMessageConfigurationoptionalIResolvableErrorMessageConfigurationoptionalinterface{} #
The configuration that specifies the level of detail in error messages returned by analyses using this template.
notes

When set to DETAILED , error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.

formatstringformatstrformatStringFormatstringFormat*string required #
The format of the analysis template.
membershipIdentifierstringmembership_identifierstrmembershipIdentifierStringMembershipIdentifierstringMembershipIdentifier*string required #
The identifier for a membership resource.
namestringnamestrnameStringNamestringName*string required #
The name of the analysis template.
schemaoptionalIResolvable | CfnAnalysisTemplate.AnalysisSchemaPropertyschemaoptionaltyping.Union[IResolvable, AnalysisSchemaProperty]schemaoptionalIResolvableSchemaoptionalIResolvableSchemaoptionalinterface{} #
The entire schema object.
The source of the analysis template.
sourceMetadataoptionalIResolvable | CfnAnalysisTemplate.AnalysisSourceMetadataPropertysource_metadataoptionaltyping.Union[IResolvable, AnalysisSourceMetadataProperty]sourceMetadataoptionalIResolvableSourceMetadataoptionalIResolvableSourceMetadataoptionalinterface{} #
The source metadata for the analysis template.
syntheticDataParametersoptionalIResolvable | CfnAnalysisTemplate.SyntheticDataParametersPropertysynthetic_data_parametersoptionaltyping.Union[IResolvable, SyntheticDataParametersProperty]syntheticDataParametersoptionalIResolvableSyntheticDataParametersoptionalIResolvableSyntheticDataParametersoptionalinterface{} #
The parameters used to generate synthetic data for this analysis template.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An optional label that you can assign to a resource when you create it.

Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.