2025/08/19 - AWS Clean Rooms Service - 5 updated api methods
Changes Support error message configuration for analysis templates
{'collaborationAnalysisTemplates': {'errorMessageConfiguration': {'type': 'DETAILED'}}}
Retrieves multiple analysis templates within a collaboration by their Amazon Resource Names (ARNs).
See also: AWS API Documentation
Request Syntax
client.batch_get_collaboration_analysis_template( collaborationIdentifier='string', analysisTemplateArns=[ 'string', ] )
string
[REQUIRED]
A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.
list
[REQUIRED]
The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
(string) --
dict
Response Syntax
{ 'collaborationAnalysisTemplates': [ { 'id': 'string', 'arn': 'string', 'collaborationId': 'string', 'collaborationArn': 'string', 'description': 'string', 'creatorAccountId': 'string', 'name': 'string', 'createTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1), 'schema': { 'referencedTables': [ 'string', ] }, 'format': 'SQL'|'PYSPARK_1_0', 'source': { 'text': 'string', 'artifacts': { 'entryPoint': { 'location': { 'bucket': 'string', 'key': 'string' } }, 'additionalArtifacts': [ { 'location': { 'bucket': 'string', 'key': 'string' } }, ], 'roleArn': 'string' } }, 'sourceMetadata': { 'artifacts': { 'entryPointHash': { 'sha256': 'string' }, 'additionalArtifactHashes': [ { 'sha256': 'string' }, ] } }, 'analysisParameters': [ { 'name': 'string', 'type': 'SMALLINT'|'INTEGER'|'BIGINT'|'DECIMAL'|'REAL'|'DOUBLE_PRECISION'|'BOOLEAN'|'CHAR'|'VARCHAR'|'DATE'|'TIMESTAMP'|'TIMESTAMPTZ'|'TIME'|'TIMETZ'|'VARBYTE'|'BINARY'|'BYTE'|'CHARACTER'|'DOUBLE'|'FLOAT'|'INT'|'LONG'|'NUMERIC'|'SHORT'|'STRING'|'TIMESTAMP_LTZ'|'TIMESTAMP_NTZ'|'TINYINT', 'defaultValue': 'string' }, ], 'validations': [ { 'type': 'DIFFERENTIAL_PRIVACY', 'status': 'VALID'|'INVALID'|'UNABLE_TO_VALIDATE', 'reasons': [ { 'message': 'string' }, ] }, ], 'errorMessageConfiguration': { 'type': 'DETAILED' } }, ], 'errors': [ { 'arn': 'string', 'code': 'string', 'message': 'string' }, ] }
Response Structure
(dict) --
collaborationAnalysisTemplates (list) --
The retrieved list of analysis templates within a collaboration.
(dict) --
The analysis template within a collaboration.
id (string) --
The identifier of the analysis template.
arn (string) --
The Amazon Resource Name (ARN) of the analysis template.
collaborationId (string) --
A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.
collaborationArn (string) --
The unique ARN for the analysis template’s associated collaboration.
description (string) --
The description of the analysis template.
creatorAccountId (string) --
The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.
name (string) --
The name of the analysis template.
createTime (datetime) --
The time that the analysis template within a collaboration was created.
updateTime (datetime) --
The time that the analysis template in the collaboration was last updated.
schema (dict) --
The entire schema object.
referencedTables (list) --
The tables referenced in the analysis schema.
(string) --
format (string) --
The format of the analysis template in the collaboration.
source (dict) --
The source of the analysis template within a collaboration.
text (string) --
The query text.
artifacts (dict) --
The artifacts of the analysis source.
entryPoint (dict) --
The entry point for the analysis template artifacts.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
additionalArtifacts (list) --
Additional artifacts for the analysis template.
(dict) --
The analysis template artifact.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
roleArn (string) --
The role ARN for the analysis template artifacts.
sourceMetadata (dict) --
The source metadata for the collaboration analysis template.
artifacts (dict) --
The artifacts of the analysis source metadata.
entryPointHash (dict) --
The hash of the entry point for the analysis template artifact metadata.
sha256 (string) --
The SHA-256 hash value.
additionalArtifactHashes (list) --
Additional artifact hashes for the analysis template.
(dict) --
Hash
sha256 (string) --
The SHA-256 hash value.
analysisParameters (list) --
The analysis parameters that have been specified in the analysis template.
(dict) --
Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.
name (string) --
The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.
type (string) --
The type of parameter.
defaultValue (string) --
Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.
validations (list) --
The validations that were performed.
(dict) --
The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are immutable by design, we recommend that you create analysis templates after you associate the configured tables with their analysis rule to your collaboration.
For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy.
type (string) --
The type of validation that was performed.
status (string) --
The status of the validation.
reasons (list) --
The reasons for the validation results.
(dict) --
The reasons for the validation results.
message (string) --
The validation message.
errorMessageConfiguration (dict) --
The configuration that specifies the level of detail in error messages returned by analyses using this template. 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.
type (string) --
The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.
Because this setting may expose sensitive data, it is recommended for development and testing environments.
errors (list) --
Error reasons for collaboration analysis templates that could not be retrieved. One error is returned for every collaboration analysis template that could not be retrieved.
(dict) --
Details of errors thrown by the call to retrieve multiple analysis templates within a collaboration by their identifiers.
arn (string) --
The Amazon Resource Name (ARN) of the analysis template.
code (string) --
An error code for the error.
message (string) --
A description of why the call failed.
{'errorMessageConfiguration': {'type': 'DETAILED'}}Response
{'analysisTemplate': {'errorMessageConfiguration': {'type': 'DETAILED'}}}
Creates a new analysis template.
See also: AWS API Documentation
Request Syntax
client.create_analysis_template( description='string', membershipIdentifier='string', name='string', format='SQL'|'PYSPARK_1_0', source={ 'text': 'string', 'artifacts': { 'entryPoint': { 'location': { 'bucket': 'string', 'key': 'string' } }, 'additionalArtifacts': [ { 'location': { 'bucket': 'string', 'key': 'string' } }, ], 'roleArn': 'string' } }, tags={ 'string': 'string' }, analysisParameters=[ { 'name': 'string', 'type': 'SMALLINT'|'INTEGER'|'BIGINT'|'DECIMAL'|'REAL'|'DOUBLE_PRECISION'|'BOOLEAN'|'CHAR'|'VARCHAR'|'DATE'|'TIMESTAMP'|'TIMESTAMPTZ'|'TIME'|'TIMETZ'|'VARBYTE'|'BINARY'|'BYTE'|'CHARACTER'|'DOUBLE'|'FLOAT'|'INT'|'LONG'|'NUMERIC'|'SHORT'|'STRING'|'TIMESTAMP_LTZ'|'TIMESTAMP_NTZ'|'TINYINT', 'defaultValue': 'string' }, ], schema={ 'referencedTables': [ 'string', ] }, errorMessageConfiguration={ 'type': 'DETAILED' } )
string
The description of the analysis template.
string
[REQUIRED]
The identifier for a membership resource.
string
[REQUIRED]
The name of the analysis template.
string
[REQUIRED]
The format of the analysis template.
dict
[REQUIRED]
The information in the analysis template.
text (string) --
The query text.
artifacts (dict) --
The artifacts of the analysis source.
entryPoint (dict) -- [REQUIRED]
The entry point for the analysis template artifacts.
location (dict) -- [REQUIRED]
The artifact location.
bucket (string) -- [REQUIRED]
The bucket name.
key (string) -- [REQUIRED]
The object key.
additionalArtifacts (list) --
Additional artifacts for the analysis template.
(dict) --
The analysis template artifact.
location (dict) -- [REQUIRED]
The artifact location.
bucket (string) -- [REQUIRED]
The bucket name.
key (string) -- [REQUIRED]
The object key.
roleArn (string) -- [REQUIRED]
The role ARN for the analysis template artifacts.
dict
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.
(string) --
(string) --
list
The parameters of the analysis template.
(dict) --
Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.
name (string) -- [REQUIRED]
The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.
type (string) -- [REQUIRED]
The type of parameter.
defaultValue (string) --
Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.
dict
A relation within an analysis.
referencedTables (list) --
The tables referenced in the analysis schema.
(string) --
dict
The configuration that specifies the level of detail in error messages returned by analyses using this template. 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.
type (string) -- [REQUIRED]
The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.
Because this setting may expose sensitive data, it is recommended for development and testing environments.
dict
Response Syntax
{ 'analysisTemplate': { 'id': 'string', 'arn': 'string', 'collaborationId': 'string', 'collaborationArn': 'string', 'membershipId': 'string', 'membershipArn': 'string', 'description': 'string', 'name': 'string', 'createTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1), 'schema': { 'referencedTables': [ 'string', ] }, 'format': 'SQL'|'PYSPARK_1_0', 'source': { 'text': 'string', 'artifacts': { 'entryPoint': { 'location': { 'bucket': 'string', 'key': 'string' } }, 'additionalArtifacts': [ { 'location': { 'bucket': 'string', 'key': 'string' } }, ], 'roleArn': 'string' } }, 'sourceMetadata': { 'artifacts': { 'entryPointHash': { 'sha256': 'string' }, 'additionalArtifactHashes': [ { 'sha256': 'string' }, ] } }, 'analysisParameters': [ { 'name': 'string', 'type': 'SMALLINT'|'INTEGER'|'BIGINT'|'DECIMAL'|'REAL'|'DOUBLE_PRECISION'|'BOOLEAN'|'CHAR'|'VARCHAR'|'DATE'|'TIMESTAMP'|'TIMESTAMPTZ'|'TIME'|'TIMETZ'|'VARBYTE'|'BINARY'|'BYTE'|'CHARACTER'|'DOUBLE'|'FLOAT'|'INT'|'LONG'|'NUMERIC'|'SHORT'|'STRING'|'TIMESTAMP_LTZ'|'TIMESTAMP_NTZ'|'TINYINT', 'defaultValue': 'string' }, ], 'validations': [ { 'type': 'DIFFERENTIAL_PRIVACY', 'status': 'VALID'|'INVALID'|'UNABLE_TO_VALIDATE', 'reasons': [ { 'message': 'string' }, ] }, ], 'errorMessageConfiguration': { 'type': 'DETAILED' } } }
Response Structure
(dict) --
analysisTemplate (dict) --
The analysis template.
id (string) --
The identifier for the analysis template.
arn (string) --
The Amazon Resource Name (ARN) of the analysis template.
collaborationId (string) --
The unique ID for the associated collaboration of the analysis template.
collaborationArn (string) --
The unique ARN for the analysis template’s associated collaboration.
membershipId (string) --
The identifier of a member who created the analysis template.
membershipArn (string) --
The Amazon Resource Name (ARN) of the member who created the analysis template.
description (string) --
The description of the analysis template.
name (string) --
The name of the analysis template.
createTime (datetime) --
The time that the analysis template was created.
updateTime (datetime) --
The time that the analysis template was last updated.
schema (dict) --
The entire schema object.
referencedTables (list) --
The tables referenced in the analysis schema.
(string) --
format (string) --
The format of the analysis template.
source (dict) --
The source of the analysis template.
text (string) --
The query text.
artifacts (dict) --
The artifacts of the analysis source.
entryPoint (dict) --
The entry point for the analysis template artifacts.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
additionalArtifacts (list) --
Additional artifacts for the analysis template.
(dict) --
The analysis template artifact.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
roleArn (string) --
The role ARN for the analysis template artifacts.
sourceMetadata (dict) --
The source metadata for the analysis template.
artifacts (dict) --
The artifacts of the analysis source metadata.
entryPointHash (dict) --
The hash of the entry point for the analysis template artifact metadata.
sha256 (string) --
The SHA-256 hash value.
additionalArtifactHashes (list) --
Additional artifact hashes for the analysis template.
(dict) --
Hash
sha256 (string) --
The SHA-256 hash value.
analysisParameters (list) --
The parameters of the analysis template.
(dict) --
Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.
name (string) --
The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.
type (string) --
The type of parameter.
defaultValue (string) --
Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.
validations (list) --
Information about the validations performed on the analysis template.
(dict) --
The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are immutable by design, we recommend that you create analysis templates after you associate the configured tables with their analysis rule to your collaboration.
For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy.
type (string) --
The type of validation that was performed.
status (string) --
The status of the validation.
reasons (list) --
The reasons for the validation results.
(dict) --
The reasons for the validation results.
message (string) --
The validation message.
errorMessageConfiguration (dict) --
The configuration that specifies the level of detail in error messages returned by analyses using this template. 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.
type (string) --
The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.
Because this setting may expose sensitive data, it is recommended for development and testing environments.
{'analysisTemplate': {'errorMessageConfiguration': {'type': 'DETAILED'}}}
Retrieves an analysis template.
See also: AWS API Documentation
Request Syntax
client.get_analysis_template( membershipIdentifier='string', analysisTemplateIdentifier='string' )
string
[REQUIRED]
The identifier for a membership resource.
string
[REQUIRED]
The identifier for the analysis template resource.
dict
Response Syntax
{ 'analysisTemplate': { 'id': 'string', 'arn': 'string', 'collaborationId': 'string', 'collaborationArn': 'string', 'membershipId': 'string', 'membershipArn': 'string', 'description': 'string', 'name': 'string', 'createTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1), 'schema': { 'referencedTables': [ 'string', ] }, 'format': 'SQL'|'PYSPARK_1_0', 'source': { 'text': 'string', 'artifacts': { 'entryPoint': { 'location': { 'bucket': 'string', 'key': 'string' } }, 'additionalArtifacts': [ { 'location': { 'bucket': 'string', 'key': 'string' } }, ], 'roleArn': 'string' } }, 'sourceMetadata': { 'artifacts': { 'entryPointHash': { 'sha256': 'string' }, 'additionalArtifactHashes': [ { 'sha256': 'string' }, ] } }, 'analysisParameters': [ { 'name': 'string', 'type': 'SMALLINT'|'INTEGER'|'BIGINT'|'DECIMAL'|'REAL'|'DOUBLE_PRECISION'|'BOOLEAN'|'CHAR'|'VARCHAR'|'DATE'|'TIMESTAMP'|'TIMESTAMPTZ'|'TIME'|'TIMETZ'|'VARBYTE'|'BINARY'|'BYTE'|'CHARACTER'|'DOUBLE'|'FLOAT'|'INT'|'LONG'|'NUMERIC'|'SHORT'|'STRING'|'TIMESTAMP_LTZ'|'TIMESTAMP_NTZ'|'TINYINT', 'defaultValue': 'string' }, ], 'validations': [ { 'type': 'DIFFERENTIAL_PRIVACY', 'status': 'VALID'|'INVALID'|'UNABLE_TO_VALIDATE', 'reasons': [ { 'message': 'string' }, ] }, ], 'errorMessageConfiguration': { 'type': 'DETAILED' } } }
Response Structure
(dict) --
analysisTemplate (dict) --
The analysis template.
id (string) --
The identifier for the analysis template.
arn (string) --
The Amazon Resource Name (ARN) of the analysis template.
collaborationId (string) --
The unique ID for the associated collaboration of the analysis template.
collaborationArn (string) --
The unique ARN for the analysis template’s associated collaboration.
membershipId (string) --
The identifier of a member who created the analysis template.
membershipArn (string) --
The Amazon Resource Name (ARN) of the member who created the analysis template.
description (string) --
The description of the analysis template.
name (string) --
The name of the analysis template.
createTime (datetime) --
The time that the analysis template was created.
updateTime (datetime) --
The time that the analysis template was last updated.
schema (dict) --
The entire schema object.
referencedTables (list) --
The tables referenced in the analysis schema.
(string) --
format (string) --
The format of the analysis template.
source (dict) --
The source of the analysis template.
text (string) --
The query text.
artifacts (dict) --
The artifacts of the analysis source.
entryPoint (dict) --
The entry point for the analysis template artifacts.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
additionalArtifacts (list) --
Additional artifacts for the analysis template.
(dict) --
The analysis template artifact.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
roleArn (string) --
The role ARN for the analysis template artifacts.
sourceMetadata (dict) --
The source metadata for the analysis template.
artifacts (dict) --
The artifacts of the analysis source metadata.
entryPointHash (dict) --
The hash of the entry point for the analysis template artifact metadata.
sha256 (string) --
The SHA-256 hash value.
additionalArtifactHashes (list) --
Additional artifact hashes for the analysis template.
(dict) --
Hash
sha256 (string) --
The SHA-256 hash value.
analysisParameters (list) --
The parameters of the analysis template.
(dict) --
Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.
name (string) --
The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.
type (string) --
The type of parameter.
defaultValue (string) --
Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.
validations (list) --
Information about the validations performed on the analysis template.
(dict) --
The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are immutable by design, we recommend that you create analysis templates after you associate the configured tables with their analysis rule to your collaboration.
For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy.
type (string) --
The type of validation that was performed.
status (string) --
The status of the validation.
reasons (list) --
The reasons for the validation results.
(dict) --
The reasons for the validation results.
message (string) --
The validation message.
errorMessageConfiguration (dict) --
The configuration that specifies the level of detail in error messages returned by analyses using this template. 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.
type (string) --
The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.
Because this setting may expose sensitive data, it is recommended for development and testing environments.
{'collaborationAnalysisTemplate': {'errorMessageConfiguration': {'type': 'DETAILED'}}}
Retrieves an analysis template within a collaboration.
See also: AWS API Documentation
Request Syntax
client.get_collaboration_analysis_template( collaborationIdentifier='string', analysisTemplateArn='string' )
string
[REQUIRED]
A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.
string
[REQUIRED]
The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
dict
Response Syntax
{ 'collaborationAnalysisTemplate': { 'id': 'string', 'arn': 'string', 'collaborationId': 'string', 'collaborationArn': 'string', 'description': 'string', 'creatorAccountId': 'string', 'name': 'string', 'createTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1), 'schema': { 'referencedTables': [ 'string', ] }, 'format': 'SQL'|'PYSPARK_1_0', 'source': { 'text': 'string', 'artifacts': { 'entryPoint': { 'location': { 'bucket': 'string', 'key': 'string' } }, 'additionalArtifacts': [ { 'location': { 'bucket': 'string', 'key': 'string' } }, ], 'roleArn': 'string' } }, 'sourceMetadata': { 'artifacts': { 'entryPointHash': { 'sha256': 'string' }, 'additionalArtifactHashes': [ { 'sha256': 'string' }, ] } }, 'analysisParameters': [ { 'name': 'string', 'type': 'SMALLINT'|'INTEGER'|'BIGINT'|'DECIMAL'|'REAL'|'DOUBLE_PRECISION'|'BOOLEAN'|'CHAR'|'VARCHAR'|'DATE'|'TIMESTAMP'|'TIMESTAMPTZ'|'TIME'|'TIMETZ'|'VARBYTE'|'BINARY'|'BYTE'|'CHARACTER'|'DOUBLE'|'FLOAT'|'INT'|'LONG'|'NUMERIC'|'SHORT'|'STRING'|'TIMESTAMP_LTZ'|'TIMESTAMP_NTZ'|'TINYINT', 'defaultValue': 'string' }, ], 'validations': [ { 'type': 'DIFFERENTIAL_PRIVACY', 'status': 'VALID'|'INVALID'|'UNABLE_TO_VALIDATE', 'reasons': [ { 'message': 'string' }, ] }, ], 'errorMessageConfiguration': { 'type': 'DETAILED' } } }
Response Structure
(dict) --
collaborationAnalysisTemplate (dict) --
The analysis template within a collaboration.
id (string) --
The identifier of the analysis template.
arn (string) --
The Amazon Resource Name (ARN) of the analysis template.
collaborationId (string) --
A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.
collaborationArn (string) --
The unique ARN for the analysis template’s associated collaboration.
description (string) --
The description of the analysis template.
creatorAccountId (string) --
The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID.
name (string) --
The name of the analysis template.
createTime (datetime) --
The time that the analysis template within a collaboration was created.
updateTime (datetime) --
The time that the analysis template in the collaboration was last updated.
schema (dict) --
The entire schema object.
referencedTables (list) --
The tables referenced in the analysis schema.
(string) --
format (string) --
The format of the analysis template in the collaboration.
source (dict) --
The source of the analysis template within a collaboration.
text (string) --
The query text.
artifacts (dict) --
The artifacts of the analysis source.
entryPoint (dict) --
The entry point for the analysis template artifacts.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
additionalArtifacts (list) --
Additional artifacts for the analysis template.
(dict) --
The analysis template artifact.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
roleArn (string) --
The role ARN for the analysis template artifacts.
sourceMetadata (dict) --
The source metadata for the collaboration analysis template.
artifacts (dict) --
The artifacts of the analysis source metadata.
entryPointHash (dict) --
The hash of the entry point for the analysis template artifact metadata.
sha256 (string) --
The SHA-256 hash value.
additionalArtifactHashes (list) --
Additional artifact hashes for the analysis template.
(dict) --
Hash
sha256 (string) --
The SHA-256 hash value.
analysisParameters (list) --
The analysis parameters that have been specified in the analysis template.
(dict) --
Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.
name (string) --
The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.
type (string) --
The type of parameter.
defaultValue (string) --
Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.
validations (list) --
The validations that were performed.
(dict) --
The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are immutable by design, we recommend that you create analysis templates after you associate the configured tables with their analysis rule to your collaboration.
For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy.
type (string) --
The type of validation that was performed.
status (string) --
The status of the validation.
reasons (list) --
The reasons for the validation results.
(dict) --
The reasons for the validation results.
message (string) --
The validation message.
errorMessageConfiguration (dict) --
The configuration that specifies the level of detail in error messages returned by analyses using this template. 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.
type (string) --
The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.
Because this setting may expose sensitive data, it is recommended for development and testing environments.
{'analysisTemplate': {'errorMessageConfiguration': {'type': 'DETAILED'}}}
Updates the analysis template metadata.
See also: AWS API Documentation
Request Syntax
client.update_analysis_template( membershipIdentifier='string', analysisTemplateIdentifier='string', description='string' )
string
[REQUIRED]
The identifier for a membership resource.
string
[REQUIRED]
The identifier for the analysis template resource.
string
A new description for the analysis template.
dict
Response Syntax
{ 'analysisTemplate': { 'id': 'string', 'arn': 'string', 'collaborationId': 'string', 'collaborationArn': 'string', 'membershipId': 'string', 'membershipArn': 'string', 'description': 'string', 'name': 'string', 'createTime': datetime(2015, 1, 1), 'updateTime': datetime(2015, 1, 1), 'schema': { 'referencedTables': [ 'string', ] }, 'format': 'SQL'|'PYSPARK_1_0', 'source': { 'text': 'string', 'artifacts': { 'entryPoint': { 'location': { 'bucket': 'string', 'key': 'string' } }, 'additionalArtifacts': [ { 'location': { 'bucket': 'string', 'key': 'string' } }, ], 'roleArn': 'string' } }, 'sourceMetadata': { 'artifacts': { 'entryPointHash': { 'sha256': 'string' }, 'additionalArtifactHashes': [ { 'sha256': 'string' }, ] } }, 'analysisParameters': [ { 'name': 'string', 'type': 'SMALLINT'|'INTEGER'|'BIGINT'|'DECIMAL'|'REAL'|'DOUBLE_PRECISION'|'BOOLEAN'|'CHAR'|'VARCHAR'|'DATE'|'TIMESTAMP'|'TIMESTAMPTZ'|'TIME'|'TIMETZ'|'VARBYTE'|'BINARY'|'BYTE'|'CHARACTER'|'DOUBLE'|'FLOAT'|'INT'|'LONG'|'NUMERIC'|'SHORT'|'STRING'|'TIMESTAMP_LTZ'|'TIMESTAMP_NTZ'|'TINYINT', 'defaultValue': 'string' }, ], 'validations': [ { 'type': 'DIFFERENTIAL_PRIVACY', 'status': 'VALID'|'INVALID'|'UNABLE_TO_VALIDATE', 'reasons': [ { 'message': 'string' }, ] }, ], 'errorMessageConfiguration': { 'type': 'DETAILED' } } }
Response Structure
(dict) --
analysisTemplate (dict) --
The analysis template.
id (string) --
The identifier for the analysis template.
arn (string) --
The Amazon Resource Name (ARN) of the analysis template.
collaborationId (string) --
The unique ID for the associated collaboration of the analysis template.
collaborationArn (string) --
The unique ARN for the analysis template’s associated collaboration.
membershipId (string) --
The identifier of a member who created the analysis template.
membershipArn (string) --
The Amazon Resource Name (ARN) of the member who created the analysis template.
description (string) --
The description of the analysis template.
name (string) --
The name of the analysis template.
createTime (datetime) --
The time that the analysis template was created.
updateTime (datetime) --
The time that the analysis template was last updated.
schema (dict) --
The entire schema object.
referencedTables (list) --
The tables referenced in the analysis schema.
(string) --
format (string) --
The format of the analysis template.
source (dict) --
The source of the analysis template.
text (string) --
The query text.
artifacts (dict) --
The artifacts of the analysis source.
entryPoint (dict) --
The entry point for the analysis template artifacts.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
additionalArtifacts (list) --
Additional artifacts for the analysis template.
(dict) --
The analysis template artifact.
location (dict) --
The artifact location.
bucket (string) --
The bucket name.
key (string) --
The object key.
roleArn (string) --
The role ARN for the analysis template artifacts.
sourceMetadata (dict) --
The source metadata for the analysis template.
artifacts (dict) --
The artifacts of the analysis source metadata.
entryPointHash (dict) --
The hash of the entry point for the analysis template artifact metadata.
sha256 (string) --
The SHA-256 hash value.
additionalArtifactHashes (list) --
Additional artifact hashes for the analysis template.
(dict) --
Hash
sha256 (string) --
The SHA-256 hash value.
analysisParameters (list) --
The parameters of the analysis template.
(dict) --
Optional. The member who can query can provide this placeholder for a literal data value in an analysis template.
name (string) --
The name of the parameter. The name must use only alphanumeric, underscore (_), or hyphen (-) characters but cannot start or end with a hyphen.
type (string) --
The type of parameter.
defaultValue (string) --
Optional. The default value that is applied in the analysis template. The member who can query can override this value in the query editor.
validations (list) --
Information about the validations performed on the analysis template.
(dict) --
The status details of the analysis template validation. Clean Rooms Differential Privacy uses a general-purpose query structure to support complex SQL queries and validates whether an analysis template fits that general-purpose query structure. Validation is performed when analysis templates are created and fetched. Because analysis templates are immutable by design, we recommend that you create analysis templates after you associate the configured tables with their analysis rule to your collaboration.
For more information, see https://docs.aws.amazon.com/clean-rooms/latest/userguide/analysis-rules-custom.html#custom-diff-privacy.
type (string) --
The type of validation that was performed.
status (string) --
The status of the validation.
reasons (list) --
The reasons for the validation results.
(dict) --
The reasons for the validation results.
message (string) --
The validation message.
errorMessageConfiguration (dict) --
The configuration that specifies the level of detail in error messages returned by analyses using this template. 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.
type (string) --
The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.
Because this setting may expose sensitive data, it is recommended for development and testing environments.