@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.298Z") @Stability(value=Stable) public class CfnDeployment extends CfnResource implements IInspectable
The AWS::AppConfig::Deployment resource starts a deployment. Starting a deployment in AWS AppConfig calls the StartDeployment API action. This call includes the IDs of the AWS AppConfig application, the environment, the configuration profile, and (optionally) the configuration data version to deploy. The call also includes the ID of the deployment strategy to use, which determines how the configuration data is deployed.
AWS AppConfig monitors the distribution to all hosts and reports status. If a distribution fails, then AWS AppConfig rolls back the configuration.
AWS AppConfig requires that you create resources and deploy a configuration in the following order:
For more information, see AWS AppConfig in the AWS AppConfig User Guide .
Example:
// 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.*;
CfnDeployment cfnDeployment = CfnDeployment.Builder.create(this, "MyCfnDeployment")
.applicationId("applicationId")
.configurationProfileId("configurationProfileId")
.configurationVersion("configurationVersion")
.deploymentStrategyId("deploymentStrategyId")
.environmentId("environmentId")
// the properties below are optional
.description("description")
.tags(List.of(TagsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDeployment.Builder
A fluent builder for
CfnDeployment. |
static interface |
CfnDeployment.TagsProperty
Metadata to assign to the deployment strategy.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDeployment(software.constructs.Construct scope,
String id,
CfnDeploymentProps props)
Create a new `AWS::AppConfig::Deployment`.
|
protected |
CfnDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDeployment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
The application ID.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getConfigurationProfileId()
The configuration profile ID.
|
String |
getConfigurationVersion()
The configuration version to deploy.
|
String |
getDeploymentStrategyId()
The deployment strategy ID.
|
String |
getDescription()
A description of the deployment.
|
String |
getEnvironmentId()
The environment ID.
|
List<CfnDeployment.TagsProperty> |
getTags()
Metadata to assign to the deployment.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationId(String value)
The application ID.
|
void |
setConfigurationProfileId(String value)
The configuration profile ID.
|
void |
setConfigurationVersion(String value)
The configuration version to deploy.
|
void |
setDeploymentStrategyId(String value)
The deployment strategy ID.
|
void |
setDescription(String value)
A description of the deployment.
|
void |
setEnvironmentId(String value)
The environment ID.
|
void |
setTags(List<CfnDeployment.TagsProperty> value)
Metadata to assign to the deployment.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDeployment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDeployment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDeploymentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApplicationId()
@Stability(value=Stable)
public void setApplicationId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getConfigurationProfileId()
@Stability(value=Stable)
public void setConfigurationProfileId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getConfigurationVersion()
@Stability(value=Stable)
public void setConfigurationVersion(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDeploymentStrategyId()
@Stability(value=Stable)
public void setDeploymentStrategyId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getEnvironmentId()
@Stability(value=Stable)
public void setEnvironmentId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public List<CfnDeployment.TagsProperty> getTags()
Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
@Stability(value=Stable)
public void setTags(@Nullable
List<CfnDeployment.TagsProperty> value)
Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
Copyright © 2022. All rights reserved.