# AnalysisSourceProperty

The structure that defines the body of the analysis template.

- Source: Generated at build time
- Type last changed: v2.190.0 · 17 Apr 2025

## Example

TypeScript:

```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 analysisSourceProperty: cleanrooms.CfnAnalysisTemplate.AnalysisSourceProperty = {
  artifacts: {
    entryPoint: {
      location: {
        bucket: 'bucket',
        key: 'key',
      },
    },
    roleArn: 'roleArn',

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

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_cleanrooms as cleanrooms

analysis_source_property = 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"
)
```

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

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

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.CleanRooms;

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

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"

analysisSourceProperty := &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"),
}
```

## Properties

- `artifacts`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysisTemplate.AnalysisTemplateArtifactsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cleanrooms.CfnAnalysisTemplate.AnalysisTemplateArtifactsProperty.html) — The artifacts of the analysis source.

- `text`: string — The query text.
