Interface CfnDeploymentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeploymentProps.Jsii$Proxy
CfnDeployment
.
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; CfnDeploymentProps cfnDeploymentProps = CfnDeploymentProps.builder() .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()) .parentTargetArn("parentTargetArn") .tags(Map.of( "tagsKey", "tags")) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDeploymentProps
static final class
An implementation forCfnDeploymentProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDeploymentProps.Builder
builder()
default Object
The components to deploy.default String
The name of the deployment.default Object
The deployment policies for the deployment.default Object
The job configuration for the deployment configuration.default String
The parent deployment's ARN for a subdeployment.getTags()
Application-specific metadata to attach to the deployment.The ARN of the target AWS IoT thing or thing group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTargetArn
The ARN of the target AWS IoT thing or thing group. -
getComponents
The components to deploy.This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
-
getDeploymentName
The name of the deployment. -
getDeploymentPolicies
The deployment policies for the deployment.These policies define how the deployment updates components and handles failure.
-
getIotJobConfiguration
The job configuration for the deployment configuration.The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
-
getParentTargetArn
The parent deployment's ARN for a subdeployment. -
getTags
Application-specific metadata to attach to the deployment.You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tag your AWS IoT Greengrass Version 2 resources in the AWS IoT Greengrass V2 Developer Guide .
This
Json
property type is processed as a map of key-value pairs. It uses the following format, which is different from mostTags
implementations in AWS CloudFormation templates."Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value" }
-
builder
- Returns:
- a
CfnDeploymentProps.Builder
ofCfnDeploymentProps
-