FileLocationOptions

class aws_cdk.aws_medialive_alpha.FileLocationOptions(*, password=None, username=None)

Bases: object

(experimental) Options for a URL-based file location (FileLocation.url).

Parameters:
  • password (Optional[IStringParameter]) – (experimental) The SSM parameter that holds the password for accessing the upstream system. The channel role is granted read access to the parameter automatically. Default: - no credentials

  • username (Optional[str]) – (experimental) The username for accessing the upstream system. Default: - no credentials

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_ssm import StringParameter

# bucket: s3.IBucket
# password_param: StringParameter


# From an S3 bucket — the channel role is granted read access automatically
from_s3 = medialive.FileLocation.from_bucket(bucket, "assets/slate.png")

# From a URL with optional credentials (SSM parameter read access auto-granted)
from_url = medialive.FileLocation.url("https://origin.example.com/font.ttf",
    username="ingest-user",
    password=password_param
)

Attributes

password

(experimental) The SSM parameter that holds the password for accessing the upstream system.

The channel role is granted read access to the parameter automatically.

Default:
  • no credentials

Stability:

experimental

username

(experimental) The username for accessing the upstream system.

Default:
  • no credentials

Stability:

experimental