GetContextKeyOptions

class aws_cdk.GetContextKeyOptions(*, provider, include_environment=None, props=None)

Bases: object

Parameters:
  • provider (str) – The context provider to query.

  • include_environment (Optional[bool]) – Whether to include the stack’s account and region automatically. Default: true

  • props (Optional[Mapping[str, Any]]) – Provider-specific properties.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

# props: Any

get_context_key_options = cdk.GetContextKeyOptions(
    provider="provider",

    # the properties below are optional
    include_environment=False,
    props={
        "props_key": props
    }
)

Attributes

include_environment

Whether to include the stack’s account and region automatically.

Default:

true

props

Provider-specific properties.

provider

The context provider to query.