ConfigurationSource

class aws_cdk.aws_appconfig.ConfigurationSource

Bases: object

Defines the integrated configuration sources.

ExampleMetadata:

infused

Example:

# application: appconfig.Application
# bucket: s3.Bucket


appconfig.SourcedConfiguration(self, "MySourcedConfiguration",
    application=application,
    location=appconfig.ConfigurationSource.from_bucket(bucket, "path/to/file.json"),
    type=appconfig.ConfigurationType.FEATURE_FLAGS,
    name="MyConfig",
    description="This is my sourced configuration from CDK."
)

Attributes

key

The KMS Key that encrypts the configuration.

location_uri

The URI of the configuration source.

type

The type of the configuration source.

Static Methods

classmethod from_bucket(bucket, object_key, key=None)

Defines configuration content from an Amazon S3 bucket.

Parameters:
  • bucket (IBucket) – The S3 bucket where the configuration is stored.

  • object_key (str) – The path to the configuration.

  • key (Optional[IKey]) – The KMS Key that the bucket is encrypted with.

Return type:

ConfigurationSource

classmethod from_cfn_document(document)

Defines configuration content from a Systems Manager (SSM) document.

Parameters:

document (CfnDocument) – The SSM document where the configuration is stored.

Return type:

ConfigurationSource

classmethod from_parameter(parameter, key=None)

Defines configuration content from a Systems Manager (SSM) Parameter Store parameter.

Parameters:
  • parameter (IParameter) – The parameter where the configuration is stored.

  • key (Optional[IKey]) – The KMS Key that the secure string is encrypted with.

Return type:

ConfigurationSource

classmethod from_pipeline(pipeline)

Defines configuration content from AWS CodePipeline.

Parameters:

pipeline (IPipeline) – The pipeline where the configuration is stored.

Return type:

ConfigurationSource

classmethod from_secret(secret)

Defines configuration content from an AWS Secrets Manager secret.

Parameters:

secret (ISecret) – The secret where the configuration is stored.

Return type:

ConfigurationSource