Custom construct to quickly setup app config resouce based on the passed in {@link SimpleAppConfigProps}.
This construct does the following:
- Setup
applicationName/applicationEnvironment/configurationProfileName
. - Add/update configurationContent.
- Apply the add/update immediately.
import { SimpleAppConfig } from 'cdk-appconfig'
new SimpleAppConfig(scope: Construct, id: string, props: SimpleAppConfigProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SimpleAppConfigProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SimpleAppConfigProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { SimpleAppConfig } from 'cdk-appconfig'
SimpleAppConfig.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
application |
aws-cdk-lib.aws_appconfig.CfnApplication |
No description. |
configurationProfile |
aws-cdk-lib.aws_appconfig.CfnConfigurationProfile |
No description. |
deployment |
aws-cdk-lib.aws_appconfig.CfnDeployment |
No description. |
environment |
aws-cdk-lib.aws_appconfig.CfnEnvironment |
No description. |
hostedConfigurationVersion |
aws-cdk-lib.aws_appconfig.CfnHostedConfigurationVersion |
No description. |
immediateDeploymentStrategy |
aws-cdk-lib.aws_appconfig.CfnDeploymentStrategy |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly application: CfnApplication;
- Type: aws-cdk-lib.aws_appconfig.CfnApplication
public readonly configurationProfile: CfnConfigurationProfile;
- Type: aws-cdk-lib.aws_appconfig.CfnConfigurationProfile
public readonly deployment: CfnDeployment;
- Type: aws-cdk-lib.aws_appconfig.CfnDeployment
public readonly environment: CfnEnvironment;
- Type: aws-cdk-lib.aws_appconfig.CfnEnvironment
public readonly hostedConfigurationVersion: CfnHostedConfigurationVersion;
- Type: aws-cdk-lib.aws_appconfig.CfnHostedConfigurationVersion
public readonly immediateDeploymentStrategy: CfnDeploymentStrategy;
- Type: aws-cdk-lib.aws_appconfig.CfnDeploymentStrategy
Props for {@link SimpleAppConfig} construct.
import { SimpleAppConfigProps } from 'cdk-appconfig'
const simpleAppConfigProps: SimpleAppConfigProps = { ... }
Name | Type | Description |
---|---|---|
applicationEnvironment |
string |
The name of the environment for deployment. |
applicationName |
string |
The name of the app config application. |
configurationContent |
{[ key: string ]: any} | object |
The content within the configuration profile. |
configurationProfileName |
string |
The name for the configuration profile within the application. |
public readonly applicationEnvironment: string;
- Type: string
The name of the environment for deployment.
(Ex: Production)
public readonly applicationName: string;
- Type: string
The name of the app config application.
(Ex: MyApplication)
public readonly configurationContent: {[ key: string ]: any} | object;
- Type: {[ key: string ]: any} | object
The content within the configuration profile.
public readonly configurationProfileName: string;
- Type: string
The name for the configuration profile within the application.