Skip to content
v2.278.0

AnalysisRuleCustomProperty Struct ​

A type of analysis rule that enables the table owner to approve custom SQL queries on their configured tables.

It supports differential privacy.

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 analysisRuleCustomProperty: cleanrooms.CfnConfiguredTable.AnalysisRuleCustomProperty = {
  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'],
};
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_rule_custom_property = 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"]
)
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.*;

AnalysisRuleCustomProperty analysisRuleCustomProperty = 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();
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 analysisRuleCustomProperty = 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" }
};
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"

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

Properties ​

additionalAnalysesoptionalstringadditional_analysesoptionalstradditionalAnalysesoptionalStringAdditionalAnalysesoptionalstringAdditionalAnalysesoptional*string #
An indicator as to whether additional analyses (such as AWS Clean Rooms ML) can be applied to the output of the direct query.
aggregationThresholdsoptionalIResolvable | IResolvable | CfnConfiguredTable.AggregationThresholdProperty[]aggregation_thresholdsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AggregationThresholdProperty]]]aggregationThresholdsoptionalIResolvableAggregationThresholdsoptionalIResolvableAggregationThresholdsoptionalinterface{} #
allowedAnalysesstring[]allowed_analysestyping.List[str]allowedAnalysesList<String>AllowedAnalysesstring[]AllowedAnalyses*[]*string required #
The ARN of the analysis templates that are allowed by the custom analysis rule.
allowedAnalysisProvidersoptionalstring[]allowed_analysis_providersoptionaltyping.List[str]allowedAnalysisProvidersoptionalList<String>AllowedAnalysisProvidersoptionalstring[]AllowedAnalysisProvidersoptional*[]*string #
The IDs of the AWS accounts that are allowed to query by the custom analysis rule.

Required when allowedAnalyses is ANY_QUERY .

comparisonControlsoptionalIResolvable | CfnConfiguredTable.ComparisonControlsPropertycomparison_controlsoptionaltyping.Union[IResolvable, ComparisonControlsProperty]comparisonControlsoptionalIResolvableComparisonControlsoptionalIResolvableComparisonControlsoptionalinterface{} #
differentialPrivacyoptionalIResolvable | CfnConfiguredTable.DifferentialPrivacyPropertydifferential_privacyoptionaltyping.Union[IResolvable, DifferentialPrivacyProperty]differentialPrivacyoptionalIResolvableDifferentialPrivacyoptionalIResolvableDifferentialPrivacyoptionalinterface{} #
The differential privacy configuration.
disallowedOutputColumnsoptionalstring[]disallowed_output_columnsoptionaltyping.List[str]disallowedOutputColumnsoptionalList<String>DisallowedOutputColumnsoptionalstring[]DisallowedOutputColumnsoptional*[]*string #
A list of columns that aren't allowed to be shown in the query output.