sym.sdk.secret

Tools for working with secrets.

Classes

Secret

This class represents a sym_secret (singular) Terraform resource.

SecretSource

This class represents a sym_secrets (plural) Terraform resource.

class sym.sdk.secret.Secret(srn: Union[sym.sdk.resource.SRN, str])

Bases: sym.sdk.resource.SymResource

This class represents a sym_secret (singular) Terraform resource.

A sym_secret resource represents an individual secret stored in a remote service or location.

dict()

Represent this resource as a dictionary.

property id

The UUID of the secret resource.

property name

An alias for this resource’s slug, derived from its SRN.

property path

The path to the secret in the remote secret store (e.g., AWS Secrets Manager).

retrieve_value() str

Retrieve this secret’s value from its remote storage.

property settings

A dictionary of settings for the secret, as specified in Terraform.

property source

The location where this secret is stored.

property srn

A SRN object that represents the unique identifier for this resource.

class sym.sdk.secret.SecretSource(srn: Union[sym.sdk.resource.SRN, str])

Bases: sym.sdk.resource.SymResource

This class represents a sym_secrets (plural) Terraform resource.

A sym_secrets resource represents a remote service or location where secrets are stored; for example, AWS Secrets Manager.

dict()

Represent this resource as a dictionary.

property name

An alias for this resource’s slug, derived from its SRN.

property settings

A dictionary of settings for the secret storage, as specified in Terraform.

property srn

A SRN object that represents the unique identifier for this resource.

property type

The type of remote storage; for example, aws_secrets_manager.