CfnExportPropsMixin
- class aws_cdk.mixins_preview.aws_bcmdataexports.mixins.CfnExportPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a data export and specifies the data query, the delivery preference, and any optional resource tags.
A
DataQueryconsists of both aQueryStatementandTableConfigurations.The
QueryStatementis an SQL statement. Data Exports only supports a limited subset of the SQL syntax. For more information on the SQL syntax that is supported, see Data query . To view the available tables and columns, see the Data Exports table dictionary .The
TableConfigurationsis a collection of specifiedTablePropertiesfor the table being queried in theQueryStatement. TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. However, tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. For more information on table configurations, see Data query . To view the table properties available for each table, see the Data Exports table dictionary or use theListTablesAPI to get a response of all tables and their available properties.- See:
- CloudformationResource:
AWS::BCMDataExports::Export
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins cfn_export_props_mixin = bcmdataexports_mixins.CfnExportPropsMixin(bcmdataexports_mixins.CfnExportMixinProps( export=bcmdataexports_mixins.CfnExportPropsMixin.ExportProperty( data_query=bcmdataexports_mixins.CfnExportPropsMixin.DataQueryProperty( query_statement="queryStatement", table_configurations={ "table_configurations_key": { "table_configurations_key": "tableConfigurations" } } ), description="description", destination_configurations=bcmdataexports_mixins.CfnExportPropsMixin.DestinationConfigurationsProperty( s3_destination=bcmdataexports_mixins.CfnExportPropsMixin.S3DestinationProperty( s3_bucket="s3Bucket", s3_output_configurations=bcmdataexports_mixins.CfnExportPropsMixin.S3OutputConfigurationsProperty( compression="compression", format="format", output_type="outputType", overwrite="overwrite" ), s3_prefix="s3Prefix", s3_region="s3Region" ) ), export_arn="exportArn", name="name", refresh_cadence=bcmdataexports_mixins.CfnExportPropsMixin.RefreshCadenceProperty( frequency="frequency" ) ), tags=[bcmdataexports_mixins.CfnExportPropsMixin.ResourceTagProperty( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::BCMDataExports::Export.- Parameters:
props (
Union[CfnExportMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['export', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
DataQueryProperty
- class CfnExportPropsMixin.DataQueryProperty(*, query_statement=None, table_configurations=None)
Bases:
objectThe SQL query of column selections and row filters from the data table you want.
- Parameters:
query_statement (
Optional[str]) – The query statement.table_configurations (
Union[IResolvable,Mapping[str,Union[Mapping[str,str],IResolvable]],None]) – The table configuration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins data_query_property = bcmdataexports_mixins.CfnExportPropsMixin.DataQueryProperty( query_statement="queryStatement", table_configurations={ "table_configurations_key": { "table_configurations_key": "tableConfigurations" } } )
Attributes
- query_statement
The query statement.
- table_configurations
The table configuration.
DestinationConfigurationsProperty
- class CfnExportPropsMixin.DestinationConfigurationsProperty(*, s3_destination=None)
Bases:
objectThe destinations used for data exports.
- Parameters:
s3_destination (
Union[IResolvable,S3DestinationProperty,Dict[str,Any],None]) – An object that describes the destination of the data exports file.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins destination_configurations_property = bcmdataexports_mixins.CfnExportPropsMixin.DestinationConfigurationsProperty( s3_destination=bcmdataexports_mixins.CfnExportPropsMixin.S3DestinationProperty( s3_bucket="s3Bucket", s3_output_configurations=bcmdataexports_mixins.CfnExportPropsMixin.S3OutputConfigurationsProperty( compression="compression", format="format", output_type="outputType", overwrite="overwrite" ), s3_prefix="s3Prefix", s3_region="s3Region" ) )
Attributes
- s3_destination
An object that describes the destination of the data exports file.
ExportProperty
- class CfnExportPropsMixin.ExportProperty(*, data_query=None, description=None, destination_configurations=None, export_arn=None, name=None, refresh_cadence=None)
Bases:
objectThe details that are available for an export.
- Parameters:
data_query (
Union[IResolvable,DataQueryProperty,Dict[str,Any],None]) – The data query for this specific data export.description (
Optional[str]) – The description for this specific data export.destination_configurations (
Union[IResolvable,DestinationConfigurationsProperty,Dict[str,Any],None]) – The destination configuration for this specific data export.export_arn (
Optional[str]) – The Amazon Resource Name (ARN) for this export.name (
Optional[str]) – The name of this specific data export.refresh_cadence (
Union[IResolvable,RefreshCadenceProperty,Dict[str,Any],None]) – The cadence for AWS to update the export in your S3 bucket.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins export_property = bcmdataexports_mixins.CfnExportPropsMixin.ExportProperty( data_query=bcmdataexports_mixins.CfnExportPropsMixin.DataQueryProperty( query_statement="queryStatement", table_configurations={ "table_configurations_key": { "table_configurations_key": "tableConfigurations" } } ), description="description", destination_configurations=bcmdataexports_mixins.CfnExportPropsMixin.DestinationConfigurationsProperty( s3_destination=bcmdataexports_mixins.CfnExportPropsMixin.S3DestinationProperty( s3_bucket="s3Bucket", s3_output_configurations=bcmdataexports_mixins.CfnExportPropsMixin.S3OutputConfigurationsProperty( compression="compression", format="format", output_type="outputType", overwrite="overwrite" ), s3_prefix="s3Prefix", s3_region="s3Region" ) ), export_arn="exportArn", name="name", refresh_cadence=bcmdataexports_mixins.CfnExportPropsMixin.RefreshCadenceProperty( frequency="frequency" ) )
Attributes
- data_query
The data query for this specific data export.
- description
The description for this specific data export.
- destination_configurations
The destination configuration for this specific data export.
- export_arn
The Amazon Resource Name (ARN) for this export.
- name
The name of this specific data export.
- refresh_cadence
The cadence for AWS to update the export in your S3 bucket.
RefreshCadenceProperty
- class CfnExportPropsMixin.RefreshCadenceProperty(*, frequency=None)
Bases:
objectThe cadence for AWS to update the data export in your S3 bucket.
- Parameters:
frequency (
Optional[str]) – The frequency that data exports are updated. The export refreshes each time the source data updates, up to three times daily.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins refresh_cadence_property = bcmdataexports_mixins.CfnExportPropsMixin.RefreshCadenceProperty( frequency="frequency" )
Attributes
- frequency
The frequency that data exports are updated.
The export refreshes each time the source data updates, up to three times daily.
ResourceTagProperty
- class CfnExportPropsMixin.ResourceTagProperty(*, key=None, value=None)
Bases:
objectThe tag structure that contains a tag key and value.
- Parameters:
key (
Optional[str]) – The key that’s associated with the tag.value (
Optional[str]) – The value that’s associated with the tag.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins resource_tag_property = bcmdataexports_mixins.CfnExportPropsMixin.ResourceTagProperty( key="key", value="value" )
Attributes
- key
The key that’s associated with the tag.
- value
The value that’s associated with the tag.
S3DestinationProperty
- class CfnExportPropsMixin.S3DestinationProperty(*, s3_bucket=None, s3_output_configurations=None, s3_prefix=None, s3_region=None)
Bases:
objectDescribes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a data exports file.
- Parameters:
s3_bucket (
Optional[str]) – The name of the Amazon S3 bucket used as the destination of a data export file.s3_output_configurations (
Union[IResolvable,S3OutputConfigurationsProperty,Dict[str,Any],None]) – The output configuration for the data export.s3_prefix (
Optional[str]) – The S3 path prefix you want prepended to the name of your data export.s3_region (
Optional[str]) – The S3 bucket Region.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins s3_destination_property = bcmdataexports_mixins.CfnExportPropsMixin.S3DestinationProperty( s3_bucket="s3Bucket", s3_output_configurations=bcmdataexports_mixins.CfnExportPropsMixin.S3OutputConfigurationsProperty( compression="compression", format="format", output_type="outputType", overwrite="overwrite" ), s3_prefix="s3Prefix", s3_region="s3Region" )
Attributes
- s3_bucket
The name of the Amazon S3 bucket used as the destination of a data export file.
- s3_output_configurations
The output configuration for the data export.
- s3_prefix
The S3 path prefix you want prepended to the name of your data export.
S3OutputConfigurationsProperty
- class CfnExportPropsMixin.S3OutputConfigurationsProperty(*, compression=None, format=None, output_type=None, overwrite=None)
Bases:
objectThe compression type, file format, and overwrite preference for the data export.
- Parameters:
compression (
Optional[str]) – The compression type for the data export.format (
Optional[str]) – The file format for the data export.output_type (
Optional[str]) – The output type for the data export.overwrite (
Optional[str]) – The rule to follow when generating a version of the data export file. You have the choice to overwrite the previous version or to be delivered in addition to the previous versions. Overwriting exports can save on Amazon S3 storage costs. Creating new export versions allows you to track the changes in cost and usage data over time.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bcmdataexports import mixins as bcmdataexports_mixins s3_output_configurations_property = bcmdataexports_mixins.CfnExportPropsMixin.S3OutputConfigurationsProperty( compression="compression", format="format", output_type="outputType", overwrite="overwrite" )
Attributes
- compression
The compression type for the data export.
- format
The file format for the data export.
- output_type
The output type for the data export.
- overwrite
The rule to follow when generating a version of the data export file.
You have the choice to overwrite the previous version or to be delivered in addition to the previous versions. Overwriting exports can save on Amazon S3 storage costs. Creating new export versions allows you to track the changes in cost and usage data over time.