config_wrangler.config_templates.aws.aws_session module

pydantic model config_wrangler.config_templates.aws.aws_session.AWS_Session[source]

Bases: Credentials

Config:
  • validate_default: bool = True

  • validate_assignment: bool = True

  • validate_credentials: bool = True

Fields:
  • iam_role (str | None)

  • keepass (config_wrangler.config_templates.keepass_config.KeepassConfig | None)

  • keepass_config (str | None)

  • keepass_group (str | None)

  • keepass_title (str | None)

  • keyring_section (str | None)

  • password_source (config_wrangler.config_templates.password_source.PasswordSource | None)

  • raw_password (str | None)

  • region_name (str | None)

  • user_id (str | None)

  • validate_password_on_load (bool)

Validators:
  • check_model » all fields

add_child(name: str, child_object: ConfigHierarchy)

Set this configuration as a child in the hierarchy of another config. For any programmatically created config objects this is required so that the new object ‘knows’ where it lives in the hierarchy – most importantly so that it can find the hierarchies root object.

assume_role()[source]
validator check_model  »  all fields
full_item_name(item_name: str | None = None, delimiter: str = ' -> ')

The fully qualified name of this config item in the config hierarchy.

get_copy(copied_by: str = 'get_copy') AWS_Session[source]

Copy this configuration. Useful when you need to programmatically modify a configuration without modifying the original base configuration.

get_password() str

Get the password for this resource. password_source controls where it looks for the password. If that is None, then the root level passwords container is checked for password_source value.

get_request_v4_authorizer(service: str = None) requests.auth.AuthBase[source]
get_secrets_manager()[source]
get_service_client(service: str)[source]
get_service_resource(service: str)[source]
get_session_expiry()[source]
get_ssm()[source]
model_dump_non_private(*, mode: Literal['json', 'python'] | str = 'python', exclude: Set[str] | None = None) dict[str, Any]
nav_to_bucket(bucket_name) S3_Bucket[source]
set_as_child(name: str, other_config_item: ConfigHierarchy)
set_session(session: Session)[source]
static split_s3_uri(s3_uri: str) Tuple[str, str][source]
static translate_config_data(config_data: MutableMapping)

Children classes can provide translation logic to allow older config files to be used with newer config class definitions.