AthenaStartQueryExecutionProps
- class aws_cdk.aws_stepfunctions_tasks.AthenaStartQueryExecutionProps(*, comment=None, heartbeat=None, input_path=None, integration_pattern=None, output_path=None, result_path=None, result_selector=None, timeout=None, query_string, client_request_token=None, query_execution_context=None, result_configuration=None, work_group=None)
Bases:
TaskStateBaseProps
Properties for starting a Query Execution.
- Parameters:
comment (
Optional
[str
]) – An optional description for this state. Default: - No commentheartbeat (
Optional
[Duration
]) – Timeout for the heartbeat. Default: - Noneinput_path (
Optional
[str
]) – JSONPath expression to select part of the state to be the input to this state. May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}. Default: - The entire task input (JSON path ‘$’)integration_pattern (
Optional
[IntegrationPattern
]) – AWS Step Functions integrates with services directly in the Amazon States Language. You can control these AWS services using service integration patterns Default: -IntegrationPattern.REQUEST_RESPONSE
for most tasks.IntegrationPattern.RUN_JOB
for the following exceptions:BatchSubmitJob
,EmrAddStep
,EmrCreateCluster
,EmrTerminationCluster
, andEmrContainersStartJobRun
.output_path (
Optional
[str
]) – JSONPath expression to select select a portion of the state output to pass to the next state. May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}. Default: - The entire JSON node determined by the state input, the task result, and resultPath is passed to the next state (JSON path ‘$’)result_path (
Optional
[str
]) – JSONPath expression to indicate where to inject the state’s output. May also be the special value JsonPath.DISCARD, which will cause the state’s input to become its output. Default: - Replaces the entire input with the result (JSON path ‘$’)result_selector (
Optional
[Mapping
[str
,Any
]]) – The JSON that will replace the state’s raw result and become the effective result before ResultPath is applied. You can use ResultSelector to create a payload with values that are static or selected from the state’s raw result. Default: - Nonetimeout (
Optional
[Duration
]) – Timeout for the state machine. Default: - Nonequery_string (
str
) – Query that will be started.client_request_token (
Optional
[str
]) – Unique string string to ensure idempotence. Default: - No client request tokenquery_execution_context (
Union
[QueryExecutionContext
,Dict
[str
,Any
],None
]) – Database within which query executes. Default: - No query execution contextresult_configuration (
Union
[ResultConfiguration
,Dict
[str
,Any
],None
]) – Configuration on how and where to save query. Default: - No result configurationwork_group (
Optional
[str
]) – Configuration on how and where to save query. Default: - No work group
- ExampleMetadata:
infused
Example:
start_query_execution_job = tasks.AthenaStartQueryExecution(self, "Athena Start Query", query_string=sfn.JsonPath.format("select contacts where year={};", sfn.JsonPath.string_at("$.year")), query_execution_context=tasks.QueryExecutionContext( database_name="interactions" ), result_configuration=tasks.ResultConfiguration( encryption_configuration=tasks.EncryptionConfiguration( encryption_option=tasks.EncryptionOption.S3_MANAGED ), output_location=s3.Location( bucket_name="mybucket", object_key="myprefix" ) ), integration_pattern=sfn.IntegrationPattern.RUN_JOB )
Attributes
- client_request_token
Unique string string to ensure idempotence.
- Default:
No client request token
- comment
An optional description for this state.
- Default:
No comment
- heartbeat
Timeout for the heartbeat.
- Default:
None
- input_path
JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.
- Default:
The entire task input (JSON path ‘$’)
- integration_pattern
AWS Step Functions integrates with services directly in the Amazon States Language.
You can control these AWS services using service integration patterns
- Default:
IntegrationPattern.REQUEST_RESPONSE
for most tasks.
IntegrationPattern.RUN_JOB
for the following exceptions:BatchSubmitJob
,EmrAddStep
,EmrCreateCluster
,EmrTerminationCluster
, andEmrContainersStartJobRun
.
- output_path
JSONPath expression to select select a portion of the state output to pass to the next state.
May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.
- Default:
The entire JSON node determined by the state input, the task result,
and resultPath is passed to the next state (JSON path ‘$’)
- query_execution_context
Database within which query executes.
- Default:
No query execution context
- query_string
Query that will be started.
- result_configuration
Configuration on how and where to save query.
- Default:
No result configuration
- result_path
JSONPath expression to indicate where to inject the state’s output.
May also be the special value JsonPath.DISCARD, which will cause the state’s input to become its output.
- Default:
Replaces the entire input with the result (JSON path ‘$’)
- result_selector
The JSON that will replace the state’s raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static or selected from the state’s raw result.
- timeout
Timeout for the state machine.
- Default:
None
- work_group
Configuration on how and where to save query.
- Default:
No work group