Skip to content
v2.273.0

SourcedConfigurationOptions Struct ​

Options for SourcedConfiguration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';
import { aws_kms as kms } from 'aws-cdk-lib';
import { aws_appconfig as interfaces_appconfig } from 'aws-cdk-lib/interfaces';
import { aws_iam as interfaces_iam } from 'aws-cdk-lib/interfaces';

declare const configurationSource: appconfig.ConfigurationSource;
declare const deploymentStrategyRef: interfaces_appconfig.IDeploymentStrategyRef;
declare const environment: appconfig.Environment;
declare const key: kms.Key;
declare const roleRef: interfaces_iam.IRoleRef;
declare const validator: appconfig.IValidator;
const sourcedConfigurationOptions: appconfig.SourcedConfigurationOptions = {
  location: configurationSource,

  // the properties below are optional
  deletionProtectionCheck: appconfig.DeletionProtectionCheck.ACCOUNT_DEFAULT,
  deploymentKey: key,
  deploymentStrategy: deploymentStrategyRef,
  deployTo: [environment],
  description: 'description',
  name: 'name',
  retrievalRole: roleRef,
  type: appconfig.ConfigurationType.FREEFORM,
  validators: [validator],
  versionNumber: 'versionNumber',
};

Properties ​

deletionProtectionCheckDeletionProtectionCheckdeletion_protection_checkDeletionProtectionCheckdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheck= DeletionProtectionCheck.ACCOUNT_…#
A parameter to configure deletion protection.

Deletion protection prevents a user from deleting a configuration profile if your application has called either GetLatestConfiguration or GetConfiguration for the configuration profile during the specified interval.

default

Default: DeletionProtectionCheck.ACCOUNT_DEFAULT

deploymentKeyIKeydeployment_keyIKeydeploymentKeyIKeyDeploymentKeyIKeyDeploymentKeyIKey= None.#
The deployment key of the configuration.
deploymentStrategyIDeploymentStrategyRefdeployment_strategyIDeploymentStrategyRefdeploymentStrategyIDeploymentStrategyRefDeploymentStrategyIDeploymentStrategyRefDeploymentStrategyIDeploymentStrategyRef= A deployment strategy with the r…#
The deployment strategy for the configuration.
default

Default: A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES

deployToIEnvironment[]deploy_totyping.List[IEnvironment]deployToList<IEnvironment>DeployToIEnvironment[]DeployTo*[]IEnvironment= None.#
The list of environments to deploy the configuration to.

If this parameter is not specified, then there will be no deployment created alongside this configuration.

Deployments can be added later using the IEnvironment.addDeployment or IEnvironment.addDeployments methods.

descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string= No description.#
The description of the configuration.
The location where the configuration is stored.
namestringnamestrnameStringNamestringName*string= A name is generated.#
The name of the configuration.
retrievalRoleIRoleRefretrieval_roleIRoleRefretrievalRoleIRoleRefRetrievalRoleIRoleRefRetrievalRoleIRoleRef= A role is generated.#
The IAM role to retrieve the configuration.
The type of configuration.
validatorsIValidator[]validatorstyping.List[IValidator]validatorsList<IValidator>ValidatorsIValidator[]Validators*[]IValidator= No validators.#
The validators for the configuration.
versionNumberstringversion_numberstrversionNumberStringVersionNumberstringVersionNumber*string= None.#
The version number of the sourced configuration to deploy.

If this is not specified, then there will be no deployment.