# ConfiguredTableAnalysisRulePolicyProperty

Controls on the query specifications that can be run on a configured table.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 configuredTableAnalysisRulePolicyProperty: cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyProperty = {
  v1: {
    aggregation: {
      aggregateColumns: [{
        columnNames: ['columnNames'],
        function: 'function',
      }],
      dimensionColumns: ['dimensionColumns'],
      joinColumns: ['joinColumns'],
      outputConstraints: [{
        columnName: 'columnName',
        minimum: 123,
        type: 'type',
      }],
      scalarFunctions: ['scalarFunctions'],

      // the properties below are optional
      additionalAnalyses: 'additionalAnalyses',
      allowedJoinOperators: ['allowedJoinOperators'],
      joinRequired: 'joinRequired',
    },
    custom: {
      allowedAnalyses: ['allowedAnalyses'],

      // the properties below are optional
      additionalAnalyses: 'additionalAnalyses',
      aggregationThresholds: [{
        allowedAggregateExpressionType: 'allowedAggregateExpressionType',
        identityColumns: ['identityColumns'],
        minimumIdentityCount: 123,
        type: 'type',

        // the properties below are optional
        outputColumnThresholds: [{
          minimumIdentityCount: 123,
          outputColumnName: 'outputColumnName',
        }],
      }],
      allowedAnalysisProviders: ['allowedAnalysisProviders'],
      comparisonControls: {
        allowedColumnComparisonColumns: ['allowedColumnComparisonColumns'],
        allowedLiteralComparisonColumns: ['allowedLiteralComparisonColumns'],
      },
      differentialPrivacy: {
        columns: [{
          name: 'name',
        }],
      },
      disallowedOutputColumns: ['disallowedOutputColumns'],
    },
    list: {
      joinColumns: ['joinColumns'],
      listColumns: ['listColumns'],

      // the properties below are optional
      additionalAnalyses: 'additionalAnalyses',
      allowedJoinOperators: ['allowedJoinOperators'],
    },
  },
};
```

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

configured_table_analysis_rule_policy_property = cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyProperty(
    v1=cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyV1Property(
        aggregation=cleanrooms.CfnConfiguredTable.AnalysisRuleAggregationProperty(
            aggregate_columns=[cleanrooms.CfnConfiguredTable.AggregateColumnProperty(
                column_names=["columnNames"],
                function="function"
            )],
            dimension_columns=["dimensionColumns"],
            join_columns=["joinColumns"],
            output_constraints=[cleanrooms.CfnConfiguredTable.AggregationConstraintProperty(
                column_name="columnName",
                minimum=123,
                type="type"
            )],
            scalar_functions=["scalarFunctions"],

            # the properties below are optional
            additional_analyses="additionalAnalyses",
            allowed_join_operators=["allowedJoinOperators"],
            join_required="joinRequired"
        ),
        custom=cleanrooms.CfnConfiguredTable.AnalysisRuleCustomProperty(
            allowed_analyses=["allowedAnalyses"],

            # the properties below are optional
            additional_analyses="additionalAnalyses",
            aggregation_thresholds=[cleanrooms.CfnConfiguredTable.AggregationThresholdProperty(
                allowed_aggregate_expression_type="allowedAggregateExpressionType",
                identity_columns=["identityColumns"],
                minimum_identity_count=123,
                type="type",

                # the properties below are optional
                output_column_thresholds=[cleanrooms.CfnConfiguredTable.OutputColumnThresholdProperty(
                    minimum_identity_count=123,
                    output_column_name="outputColumnName"
                )]
            )],
            allowed_analysis_providers=["allowedAnalysisProviders"],
            comparison_controls=cleanrooms.CfnConfiguredTable.ComparisonControlsProperty(
                allowed_column_comparison_columns=["allowedColumnComparisonColumns"],
                allowed_literal_comparison_columns=["allowedLiteralComparisonColumns"]
            ),
            differential_privacy=cleanrooms.CfnConfiguredTable.DifferentialPrivacyProperty(
                columns=[cleanrooms.CfnConfiguredTable.DifferentialPrivacyColumnProperty(
                    name="name"
                )]
            ),
            disallowed_output_columns=["disallowedOutputColumns"]
        ),
        list=cleanrooms.CfnConfiguredTable.AnalysisRuleListProperty(
            join_columns=["joinColumns"],
            list_columns=["listColumns"],

            # the properties below are optional
            additional_analyses="additionalAnalyses",
            allowed_join_operators=["allowedJoinOperators"]
        )
    )
)
```

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

ConfiguredTableAnalysisRulePolicyProperty configuredTableAnalysisRulePolicyProperty = ConfiguredTableAnalysisRulePolicyProperty.builder()
        .v1(ConfiguredTableAnalysisRulePolicyV1Property.builder()
                .aggregation(AnalysisRuleAggregationProperty.builder()
                        .aggregateColumns(List.of(AggregateColumnProperty.builder()
                                .columnNames(List.of("columnNames"))
                                .function("function")
                                .build()))
                        .dimensionColumns(List.of("dimensionColumns"))
                        .joinColumns(List.of("joinColumns"))
                        .outputConstraints(List.of(AggregationConstraintProperty.builder()
                                .columnName("columnName")
                                .minimum(123)
                                .type("type")
                                .build()))
                        .scalarFunctions(List.of("scalarFunctions"))

                        // the properties below are optional
                        .additionalAnalyses("additionalAnalyses")
                        .allowedJoinOperators(List.of("allowedJoinOperators"))
                        .joinRequired("joinRequired")
                        .build())
                .custom(AnalysisRuleCustomProperty.builder()
                        .allowedAnalyses(List.of("allowedAnalyses"))

                        // the properties below are optional
                        .additionalAnalyses("additionalAnalyses")
                        .aggregationThresholds(List.of(AggregationThresholdProperty.builder()
                                .allowedAggregateExpressionType("allowedAggregateExpressionType")
                                .identityColumns(List.of("identityColumns"))
                                .minimumIdentityCount(123)
                                .type("type")

                                // the properties below are optional
                                .outputColumnThresholds(List.of(OutputColumnThresholdProperty.builder()
                                        .minimumIdentityCount(123)
                                        .outputColumnName("outputColumnName")
                                        .build()))
                                .build()))
                        .allowedAnalysisProviders(List.of("allowedAnalysisProviders"))
                        .comparisonControls(ComparisonControlsProperty.builder()
                                .allowedColumnComparisonColumns(List.of("allowedColumnComparisonColumns"))
                                .allowedLiteralComparisonColumns(List.of("allowedLiteralComparisonColumns"))
                                .build())
                        .differentialPrivacy(DifferentialPrivacyProperty.builder()
                                .columns(List.of(DifferentialPrivacyColumnProperty.builder()
                                        .name("name")
                                        .build()))
                                .build())
                        .disallowedOutputColumns(List.of("disallowedOutputColumns"))
                        .build())
                .list(AnalysisRuleListProperty.builder()
                        .joinColumns(List.of("joinColumns"))
                        .listColumns(List.of("listColumns"))

                        // the properties below are optional
                        .additionalAnalyses("additionalAnalyses")
                        .allowedJoinOperators(List.of("allowedJoinOperators"))
                        .build())
                .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.CleanRooms;

var configuredTableAnalysisRulePolicyProperty = new ConfiguredTableAnalysisRulePolicyProperty {
    V1 = new ConfiguredTableAnalysisRulePolicyV1Property {
        Aggregation = new AnalysisRuleAggregationProperty {
            AggregateColumns = new [] { new AggregateColumnProperty {
                ColumnNames = new [] { "columnNames" },
                Function = "function"
            } },
            DimensionColumns = new [] { "dimensionColumns" },
            JoinColumns = new [] { "joinColumns" },
            OutputConstraints = new [] { new AggregationConstraintProperty {
                ColumnName = "columnName",
                Minimum = 123,
                Type = "type"
            } },
            ScalarFunctions = new [] { "scalarFunctions" },

            // the properties below are optional
            AdditionalAnalyses = "additionalAnalyses",
            AllowedJoinOperators = new [] { "allowedJoinOperators" },
            JoinRequired = "joinRequired"
        },
        Custom = new AnalysisRuleCustomProperty {
            AllowedAnalyses = new [] { "allowedAnalyses" },

            // the properties below are optional
            AdditionalAnalyses = "additionalAnalyses",
            AggregationThresholds = new [] { new AggregationThresholdProperty {
                AllowedAggregateExpressionType = "allowedAggregateExpressionType",
                IdentityColumns = new [] { "identityColumns" },
                MinimumIdentityCount = 123,
                Type = "type",

                // the properties below are optional
                OutputColumnThresholds = new [] { new OutputColumnThresholdProperty {
                    MinimumIdentityCount = 123,
                    OutputColumnName = "outputColumnName"
                } }
            } },
            AllowedAnalysisProviders = new [] { "allowedAnalysisProviders" },
            ComparisonControls = new ComparisonControlsProperty {
                AllowedColumnComparisonColumns = new [] { "allowedColumnComparisonColumns" },
                AllowedLiteralComparisonColumns = new [] { "allowedLiteralComparisonColumns" }
            },
            DifferentialPrivacy = new DifferentialPrivacyProperty {
                Columns = new [] { new DifferentialPrivacyColumnProperty {
                    Name = "name"
                } }
            },
            DisallowedOutputColumns = new [] { "disallowedOutputColumns" }
        },
        List = new AnalysisRuleListProperty {
            JoinColumns = new [] { "joinColumns" },
            ListColumns = new [] { "listColumns" },

            // the properties below are optional
            AdditionalAnalyses = "additionalAnalyses",
            AllowedJoinOperators = new [] { "allowedJoinOperators" }
        }
    }
};
```

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"

configuredTableAnalysisRulePolicyProperty := &ConfiguredTableAnalysisRulePolicyProperty{
	V1: &ConfiguredTableAnalysisRulePolicyV1Property{
		Aggregation: &AnalysisRuleAggregationProperty{
			AggregateColumns: []interface{}{
				&AggregateColumnProperty{
					ColumnNames: []*string{
						jsii.String("columnNames"),
					},
					Function: jsii.String("function"),
				},
			},
			DimensionColumns: []*string{
				jsii.String("dimensionColumns"),
			},
			JoinColumns: []*string{
				jsii.String("joinColumns"),
			},
			OutputConstraints: []interface{}{
				&AggregationConstraintProperty{
					ColumnName: jsii.String("columnName"),
					Minimum: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
			ScalarFunctions: []*string{
				jsii.String("scalarFunctions"),
			},

			// the properties below are optional
			AdditionalAnalyses: jsii.String("additionalAnalyses"),
			AllowedJoinOperators: []*string{
				jsii.String("allowedJoinOperators"),
			},
			JoinRequired: jsii.String("joinRequired"),
		},
		Custom: &AnalysisRuleCustomProperty{
			AllowedAnalyses: []*string{
				jsii.String("allowedAnalyses"),
			},

			// the properties below are optional
			AdditionalAnalyses: jsii.String("additionalAnalyses"),
			AggregationThresholds: []interface{}{
				&AggregationThresholdProperty{
					AllowedAggregateExpressionType: jsii.String("allowedAggregateExpressionType"),
					IdentityColumns: []*string{
						jsii.String("identityColumns"),
					},
					MinimumIdentityCount: jsii.Number(123),
					Type: jsii.String("type"),

					// the properties below are optional
					OutputColumnThresholds: []interface{}{
						&OutputColumnThresholdProperty{
							MinimumIdentityCount: jsii.Number(123),
							OutputColumnName: jsii.String("outputColumnName"),
						},
					},
				},
			},
			AllowedAnalysisProviders: []*string{
				jsii.String("allowedAnalysisProviders"),
			},
			ComparisonControls: &ComparisonControlsProperty{
				AllowedColumnComparisonColumns: []*string{
					jsii.String("allowedColumnComparisonColumns"),
				},
				AllowedLiteralComparisonColumns: []*string{
					jsii.String("allowedLiteralComparisonColumns"),
				},
			},
			DifferentialPrivacy: &DifferentialPrivacyProperty{
				Columns: []interface{}{
					&DifferentialPrivacyColumnProperty{
						Name: jsii.String("name"),
					},
				},
			},
			DisallowedOutputColumns: []*string{
				jsii.String("disallowedOutputColumns"),
			},
		},
		List: &AnalysisRuleListProperty{
			JoinColumns: []*string{
				jsii.String("joinColumns"),
			},
			ListColumns: []*string{
				jsii.String("listColumns"),
			},

			// the properties below are optional
			AdditionalAnalyses: jsii.String("additionalAnalyses"),
			AllowedJoinOperators: []*string{
				jsii.String("allowedJoinOperators"),
			},
		},
	},
}
```

## Properties

- `v1`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyV1Property](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cleanrooms.CfnConfiguredTable.ConfiguredTableAnalysisRulePolicyV1Property.html) (required) — Controls on the query specifications that can be run on a configured table.
