airflow.providers.amazon.aws.hooks.ssm¶
Classes¶
Interact with Amazon Systems Manager (SSM). |
Module Contents¶
- class airflow.providers.amazon.aws.hooks.ssm.SsmHook(*args, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHookInteract with Amazon Systems Manager (SSM).
Provide thin wrapper around
boto3.client("ssm").Additional arguments (such as
aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.- get_parameter_value(parameter, default=NOTSET)[source]¶
Return the provided Parameter or an optional default.
If it is encrypted, then decrypt and mask.
See also
- get_command_invocation(command_id, instance_id)[source]¶
Get the output of a command invocation for a specific instance.
See also
- static is_aws_level_failure(status)[source]¶
Check if a command status represents an AWS-level failure.
AWS-level failures are service-level issues that should always raise exceptions, as opposed to command-level failures (non-zero exit codes) which may be tolerated depending on the fail_on_nonzero_exit parameter.
According to AWS SSM documentation, the possible statuses are: Pending, InProgress, Delayed, Success, Cancelled, TimedOut, Failed, Cancelling
AWS-level failures are: - Cancelled: Command was cancelled before completion - TimedOut: Command exceeded the timeout period - Cancelling: Command is in the process of being cancelled