DataZone / Client / update_asset_filter
update_asset_filter¶
- DataZone.Client.update_asset_filter(**kwargs)¶
Updates an asset filter.
Prerequisites:
The domain, asset, and asset filter identifier must all exist.
The asset must contain the columns being referenced in the update.
If applying a row filter, ensure the column referenced in the expression exists in the asset schema.
See also: AWS API Documentation
Request Syntax
response = client.update_asset_filter( domainIdentifier='string', assetIdentifier='string', identifier='string', name='string', description='string', configuration={ 'columnConfiguration': { 'includedColumnNames': [ 'string', ] }, 'rowConfiguration': { 'rowFilter': { 'expression': { 'equalTo': { 'columnName': 'string', 'value': 'string' }, 'notEqualTo': { 'columnName': 'string', 'value': 'string' }, 'greaterThan': { 'columnName': 'string', 'value': 'string' }, 'lessThan': { 'columnName': 'string', 'value': 'string' }, 'greaterThanOrEqualTo': { 'columnName': 'string', 'value': 'string' }, 'lessThanOrEqualTo': { 'columnName': 'string', 'value': 'string' }, 'isNull': { 'columnName': 'string' }, 'isNotNull': { 'columnName': 'string' }, 'in': { 'columnName': 'string', 'values': [ 'string', ] }, 'notIn': { 'columnName': 'string', 'values': [ 'string', ] }, 'like': { 'columnName': 'string', 'value': 'string' }, 'notLike': { 'columnName': 'string', 'value': 'string' } }, 'and': [ {'... recursive ...'}, ], 'or': [ {'... recursive ...'}, ] }, 'sensitive': True|False } } )
- Parameters:
domainIdentifier (string) –
[REQUIRED]
The ID of the domain where you want to update an asset filter.
assetIdentifier (string) –
[REQUIRED]
The ID of the data asset.
identifier (string) –
[REQUIRED]
The ID of the asset filter.
name (string) – The name of the asset filter.
description (string) – The description of the asset filter.
configuration (dict) –
The configuration of the asset filter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
columnConfiguration,rowConfiguration.columnConfiguration (dict) –
The column configuration of the asset filter.
includedColumnNames (list) –
Specifies whether to include column names.
(string) –
rowConfiguration (dict) –
The row configuration of the asset filter.
rowFilter (dict) – [REQUIRED]
The row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
expression,and,or.expression (dict) –
The expression of the row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
equalTo,notEqualTo,greaterThan,lessThan,greaterThanOrEqualTo,lessThanOrEqualTo,isNull,isNotNull,in,notIn,like,notLike.equalTo (dict) –
The ‘equal to’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might be equal to an expression.
notEqualTo (dict) –
The ‘no equal to’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might not be equal to the expression.
greaterThan (dict) –
The ‘greater than’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might be greater than an expression.
lessThan (dict) –
The ‘less than’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might be less than the expression.
greaterThanOrEqualTo (dict) –
The ‘greater than or equal to’ clause of the filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might be greater than or equal to an expression.
lessThanOrEqualTo (dict) –
The ‘less than or equal to’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might be less than or equal to an expression.
isNull (dict) –
The ‘is null’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
isNotNull (dict) –
The ‘is not null’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
in (dict) –
The ‘in’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
values (list) – [REQUIRED]
The values that might be in the expression.
(string) –
notIn (dict) –
The ‘not in’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
values (list) – [REQUIRED]
The value that might not be in the expression.
(string) –
like (dict) –
The ‘like’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might be like the expression.
notLike (dict) –
The ‘not like’ clause of the row filter expression.
columnName (string) – [REQUIRED]
The name of the column.
value (string) – [REQUIRED]
The value that might not be like the expression.
and (list) –
The ‘and’ clause of the row filter.
(dict) –
The row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
expression,and,or.
or (list) –
The ‘or’ clause of the row filter.
(dict) –
The row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
expression,and,or.
sensitive (boolean) –
Specifies whether the row filter is sensitive.
- Return type:
dict
- Returns:
Response Syntax
{ 'id': 'string', 'domainId': 'string', 'assetId': 'string', 'name': 'string', 'description': 'string', 'status': 'VALID'|'INVALID', 'configuration': { 'columnConfiguration': { 'includedColumnNames': [ 'string', ] }, 'rowConfiguration': { 'rowFilter': { 'expression': { 'equalTo': { 'columnName': 'string', 'value': 'string' }, 'notEqualTo': { 'columnName': 'string', 'value': 'string' }, 'greaterThan': { 'columnName': 'string', 'value': 'string' }, 'lessThan': { 'columnName': 'string', 'value': 'string' }, 'greaterThanOrEqualTo': { 'columnName': 'string', 'value': 'string' }, 'lessThanOrEqualTo': { 'columnName': 'string', 'value': 'string' }, 'isNull': { 'columnName': 'string' }, 'isNotNull': { 'columnName': 'string' }, 'in': { 'columnName': 'string', 'values': [ 'string', ] }, 'notIn': { 'columnName': 'string', 'values': [ 'string', ] }, 'like': { 'columnName': 'string', 'value': 'string' }, 'notLike': { 'columnName': 'string', 'value': 'string' } }, 'and': [ {'... recursive ...'}, ], 'or': [ {'... recursive ...'}, ] }, 'sensitive': True|False } }, 'createdAt': datetime(2015, 1, 1), 'errorMessage': 'string', 'effectiveColumnNames': [ 'string', ], 'effectiveRowFilter': 'string' }
Response Structure
(dict) –
id (string) –
The ID of the asset filter.
domainId (string) –
The ID of the domain where the asset filter was created.
assetId (string) –
The ID of the data asset.
name (string) –
The name of the asset filter.
description (string) –
The description of the asset filter.
status (string) –
The status of the asset filter.
configuration (dict) –
The configuration of the asset filter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
columnConfiguration,rowConfiguration. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
columnConfiguration (dict) –
The column configuration of the asset filter.
includedColumnNames (list) –
Specifies whether to include column names.
(string) –
rowConfiguration (dict) –
The row configuration of the asset filter.
rowFilter (dict) –
The row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
expression,and,or. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
expression (dict) –
The expression of the row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
equalTo,notEqualTo,greaterThan,lessThan,greaterThanOrEqualTo,lessThanOrEqualTo,isNull,isNotNull,in,notIn,like,notLike. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
equalTo (dict) –
The ‘equal to’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might be equal to an expression.
notEqualTo (dict) –
The ‘no equal to’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might not be equal to the expression.
greaterThan (dict) –
The ‘greater than’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might be greater than an expression.
lessThan (dict) –
The ‘less than’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might be less than the expression.
greaterThanOrEqualTo (dict) –
The ‘greater than or equal to’ clause of the filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might be greater than or equal to an expression.
lessThanOrEqualTo (dict) –
The ‘less than or equal to’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might be less than or equal to an expression.
isNull (dict) –
The ‘is null’ clause of the row filter expression.
columnName (string) –
The name of the column.
isNotNull (dict) –
The ‘is not null’ clause of the row filter expression.
columnName (string) –
The name of the column.
in (dict) –
The ‘in’ clause of the row filter expression.
columnName (string) –
The name of the column.
values (list) –
The values that might be in the expression.
(string) –
notIn (dict) –
The ‘not in’ clause of the row filter expression.
columnName (string) –
The name of the column.
values (list) –
The value that might not be in the expression.
(string) –
like (dict) –
The ‘like’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might be like the expression.
notLike (dict) –
The ‘not like’ clause of the row filter expression.
columnName (string) –
The name of the column.
value (string) –
The value that might not be like the expression.
and (list) –
The ‘and’ clause of the row filter.
(dict) –
The row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
expression,and,or. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
or (list) –
The ‘or’ clause of the row filter.
(dict) –
The row filter.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
expression,and,or. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
sensitive (boolean) –
Specifies whether the row filter is sensitive.
createdAt (datetime) –
The timestamp at which the asset filter was created.
errorMessage (string) –
The error message that is displayed if the action is not completed successfully.
effectiveColumnNames (list) –
The column names of the asset filter.
(string) –
effectiveRowFilter (string) –
The row filter of the asset filter.
Exceptions
DataZone.Client.exceptions.InternalServerExceptionDataZone.Client.exceptions.ResourceNotFoundExceptionDataZone.Client.exceptions.AccessDeniedExceptionDataZone.Client.exceptions.ThrottlingExceptionDataZone.Client.exceptions.ConflictExceptionDataZone.Client.exceptions.ValidationExceptionDataZone.Client.exceptions.UnauthorizedException