Secret

class aws_cdk.aws_ecs.Secret

Bases: object

A secret environment variable.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Methods

grant_read(grantee)
Parameters

grantee (IGrantable) –

Return type

Grant

Attributes

arn
Return type

str

Static Methods

classmethod from_secrets_manager(secret)

Creates a environment variable value from a secret stored in AWS Secrets Manager.

Parameters

secret (ISecret) –

Return type

Secret

classmethod from_ssm_parameter(parameter)

Creates an environment variable value from a parameter stored in AWS Systems Manager Parameter Store.

Parameters

parameter (IParameter) –

Return type

Secret