@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:49.873Z") @Stability(value=Stable) public class CfnDeployment extends CfnResource implements IInspectable
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.greengrassv2.*;
Object rateIncreaseCriteria;
CfnDeployment cfnDeployment = CfnDeployment.Builder.create(this, "MyCfnDeployment")
.targetArn("targetArn")
// the properties below are optional
.components(Map.of(
"componentsKey", ComponentDeploymentSpecificationProperty.builder()
.componentVersion("componentVersion")
.configurationUpdate(ComponentConfigurationUpdateProperty.builder()
.merge("merge")
.reset(List.of("reset"))
.build())
.runWith(ComponentRunWithProperty.builder()
.posixUser("posixUser")
.systemResourceLimits(SystemResourceLimitsProperty.builder()
.cpus(123)
.memory(123)
.build())
.windowsUser("windowsUser")
.build())
.build()))
.deploymentName("deploymentName")
.deploymentPolicies(DeploymentPoliciesProperty.builder()
.componentUpdatePolicy(DeploymentComponentUpdatePolicyProperty.builder()
.action("action")
.timeoutInSeconds(123)
.build())
.configurationValidationPolicy(DeploymentConfigurationValidationPolicyProperty.builder()
.timeoutInSeconds(123)
.build())
.failureHandlingPolicy("failureHandlingPolicy")
.build())
.iotJobConfiguration(DeploymentIoTJobConfigurationProperty.builder()
.abortConfig(IoTJobAbortConfigProperty.builder()
.criteriaList(List.of(IoTJobAbortCriteriaProperty.builder()
.action("action")
.failureType("failureType")
.minNumberOfExecutedThings(123)
.thresholdPercentage(123)
.build()))
.build())
.jobExecutionsRolloutConfig(IoTJobExecutionsRolloutConfigProperty.builder()
.exponentialRate(IoTJobExponentialRolloutRateProperty.builder()
.baseRatePerMinute(123)
.incrementFactor(123)
.rateIncreaseCriteria(rateIncreaseCriteria)
.build())
.maximumPerMinute(123)
.build())
.timeoutConfig(IoTJobTimeoutConfigProperty.builder()
.inProgressTimeoutInMinutes(123)
.build())
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| 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(Construct scope,
String id,
CfnDeploymentProps props)
Create a new `AWS::GreengrassV2::Deployment`.
|
protected |
CfnDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDeployment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrDeploymentId() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getComponents()
`AWS::GreengrassV2::Deployment.Components`.
|
String |
getDeploymentName()
`AWS::GreengrassV2::Deployment.DeploymentName`.
|
Object |
getDeploymentPolicies()
`AWS::GreengrassV2::Deployment.DeploymentPolicies`.
|
Object |
getIotJobConfiguration()
`AWS::GreengrassV2::Deployment.IotJobConfiguration`.
|
TagManager |
getTags()
`AWS::GreengrassV2::Deployment.Tags`.
|
String |
getTargetArn()
`AWS::GreengrassV2::Deployment.TargetArn`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setComponents(IResolvable value)
`AWS::GreengrassV2::Deployment.Components`.
|
void |
setComponents(Map<String,Object> value)
`AWS::GreengrassV2::Deployment.Components`.
|
void |
setDeploymentName(String value)
`AWS::GreengrassV2::Deployment.DeploymentName`.
|
void |
setDeploymentPolicies(CfnDeployment.DeploymentPoliciesProperty value)
`AWS::GreengrassV2::Deployment.DeploymentPolicies`.
|
void |
setDeploymentPolicies(IResolvable value)
`AWS::GreengrassV2::Deployment.DeploymentPolicies`.
|
void |
setIotJobConfiguration(CfnDeployment.DeploymentIoTJobConfigurationProperty value)
`AWS::GreengrassV2::Deployment.IotJobConfiguration`.
|
void |
setIotJobConfiguration(IResolvable value)
`AWS::GreengrassV2::Deployment.IotJobConfiguration`.
|
void |
setTargetArn(String value)
`AWS::GreengrassV2::Deployment.TargetArn`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, 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
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 public String getAttrDeploymentId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getTargetArn()
@Stability(value=Stable)
public void setTargetArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getComponents()
@Stability(value=Stable)
public void setComponents(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setComponents(@Nullable
Map<String,Object> value)
@Stability(value=Stable) @Nullable public String getDeploymentName()
@Stability(value=Stable)
public void setDeploymentName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getDeploymentPolicies()
@Stability(value=Stable)
public void setDeploymentPolicies(@Nullable
CfnDeployment.DeploymentPoliciesProperty value)
@Stability(value=Stable)
public void setDeploymentPolicies(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getIotJobConfiguration()
@Stability(value=Stable)
public void setIotJobConfiguration(@Nullable
CfnDeployment.DeploymentIoTJobConfigurationProperty value)
@Stability(value=Stable)
public void setIotJobConfiguration(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.