GetContextKeyOptions

class aws_cdk.core.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.core 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

Return type

Optional[bool]

props

Provider-specific properties.

Return type

Optional[Mapping[str, Any]]

provider

The context provider to query.

Return type

str