SourcedConfigurationOptions Struct
Options for SourcedConfiguration.
| Source | aws-appconfig/lib/configuration.ts |
|---|---|
| Type last changed |
Example
// 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',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appconfig as appconfig
from aws_cdk import aws_kms as kms
from aws_cdk.interfaces import aws_appconfig as interfaces_appconfig
from aws_cdk.interfaces import aws_iam as interfaces_iam
# configuration_source: appconfig.ConfigurationSource
# deployment_strategy_ref: interfaces_appconfig.IDeploymentStrategyRef
# environment: appconfig.Environment
# key: kms.Key
# role_ref: interfaces_iam.IRoleRef
# validator: appconfig.IValidator
sourced_configuration_options = appconfig.SourcedConfigurationOptions(
location=configuration_source,
# the properties below are optional
deletion_protection_check=appconfig.DeletionProtectionCheck.ACCOUNT_DEFAULT,
deployment_key=key,
deployment_strategy=deployment_strategy_ref,
deploy_to=[environment],
description="description",
name="name",
retrieval_role=role_ref,
type=appconfig.ConfigurationType.FREEFORM,
validators=[validator],
version_number="versionNumber"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appconfig.*;
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.interfaces.appconfig.*;
import software.amazon.awscdk.interfaces.iam.*;
ConfigurationSource configurationSource;
IDeploymentStrategyRef deploymentStrategyRef;
Environment environment;
Key key;
IRoleRef roleRef;
IValidator validator;
SourcedConfigurationOptions sourcedConfigurationOptions = SourcedConfigurationOptions.builder()
.location(configurationSource)
// the properties below are optional
.deletionProtectionCheck(DeletionProtectionCheck.ACCOUNT_DEFAULT)
.deploymentKey(key)
.deploymentStrategy(deploymentStrategyRef)
.deployTo(List.of(environment))
.description("description")
.name("name")
.retrievalRole(roleRef)
.type(ConfigurationType.FREEFORM)
.validators(List.of(validator))
.versionNumber("versionNumber")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppConfig;
using Amazon.CDK.AWS.KMS;
using Amazon.CDK.Interfaces.AppConfig;
using Amazon.CDK.Interfaces.IAM;
ConfigurationSource configurationSource;
IDeploymentStrategyRef deploymentStrategyRef;
Environment environment;
Key key;
IRoleRef roleRef;
IValidator validator;
var sourcedConfigurationOptions = new SourcedConfigurationOptions {
Location = configurationSource,
// the properties below are optional
DeletionProtectionCheck = DeletionProtectionCheck.ACCOUNT_DEFAULT,
DeploymentKey = key,
DeploymentStrategy = deploymentStrategyRef,
DeployTo = new [] { environment },
Description = "description",
Name = "name",
RetrievalRole = roleRef,
Type = ConfigurationType.FREEFORM,
Validators = new [] { validator },
VersionNumber = "versionNumber"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var configurationSource ConfigurationSource
var deploymentStrategyRef IDeploymentStrategyRef
var environment Environment
var key Key
var roleRef IRoleRef
var validator IValidator
sourcedConfigurationOptions := &SourcedConfigurationOptions{
Location: configurationSource,
// the properties below are optional
DeletionProtectionCheck: awscdk.Aws_appconfig.DeletionProtectionCheck_ACCOUNT_DEFAULT,
DeploymentKey: key,
DeploymentStrategy: deploymentStrategyRef,
DeployTo: []IEnvironment{
environment,
},
Description: jsii.String("description"),
Name: jsii.String("name"),
RetrievalRole: roleRef,
Type: awscdk.*Aws_appconfig.ConfigurationType_FREEFORM,
Validators: []IValidator{
validator,
},
VersionNumber: jsii.String("versionNumber"),
}
Properties
deletionProtectionCheckoptionalDeletionProtectionCheckdeletion_protection_checkoptionalDeletionProtectionCheckdeletionProtectionCheckoptionalDeletionProtectionCheckDeletionProtectionCheckoptionalDeletionProtectionCheckDeletionProtectionCheckoptionalDeletionProtectionCheck #Default: DeletionProtectionCheck.ACCOUNT_DEFAULT
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.
deploymentKeyoptionalIKeydeployment_keyoptionalIKeydeploymentKeyoptionalIKeyDeploymentKeyoptionalIKeyDeploymentKeyoptionalIKey = None. #deploymentStrategyoptionalIDeploymentStrategyRefdeployment_strategyoptionalIDeploymentStrategyRefdeploymentStrategyoptionalIDeploymentStrategyRefDeploymentStrategyoptionalIDeploymentStrategyRefDeploymentStrategyoptionalIDeploymentStrategyRef #Default: A deployment strategy with the rollout strategy set to RolloutStrategy.CANARY_10_PERCENT_20_MINUTES
deployTooptionalIEnvironment[]deploy_tooptionaltyping.List[IEnvironment]deployTooptionalList<IEnvironment>DeployTooptionalIEnvironment[]DeployTooptional*[]IEnvironment = None. #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.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Default: No description.
locationConfigurationSourcelocationConfigurationSourcelocationConfigurationSourceLocationConfigurationSourceLocationConfigurationSource required #Default: A name is generated.
retrievalRoleoptionalIRoleRefretrieval_roleoptionalIRoleRefretrievalRoleoptionalIRoleRefRetrievalRoleoptionalIRoleRefRetrievalRoleoptionalIRoleRef #Default: A role is generated.
typeoptionalConfigurationTypetypeoptionalConfigurationTypetypeoptionalConfigurationTypeTypeoptionalConfigurationTypeTypeoptionalConfigurationType = ConfigurationType.FREEFORM #validatorsoptionalIValidator[]validatorsoptionaltyping.List[IValidator]validatorsoptionalList<IValidator>ValidatorsoptionalIValidator[]Validatorsoptional*[]IValidator #Default: No validators.
versionNumberoptionalstringversion_numberoptionalstrversionNumberoptionalStringVersionNumberoptionalstringVersionNumberoptional*string = None. #If this is not specified, then there will be no deployment.