airflow.providers.amazon.aws.hooks.ssm

Module Contents

Classes

SsmHook

Interact with Amazon Systems Manager (SSM).

class airflow.providers.amazon.aws.hooks.ssm.SsmHook(*args, **kwargs)[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

Interact 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]

Returns the value of the provided Parameter or an optional default. If value exists, and it is encrypted, then decrypt and mask them for loggers.

Parameters
  • parameter (str) – The SSM Parameter name to return the value for.

  • default (str | airflow.utils.types.ArgNotSet) – Optional default value to return if none is found.

Was this entry helpful?