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:
- Return type:
- 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:
- 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:
- classmethod from_pipeline(pipeline)
Defines configuration content from AWS CodePipeline.
- Parameters:
pipeline (
IPipeline
) – The pipeline where the configuration is stored.- Return type: