Skip to content

IRosResourceOptions

Properties

Name Type Description
condition RosCondition A condition to associate with this resource.
count java.lang.Number OR IResolvable No description.
deletionPolicy RosDeletionPolicy With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.
description java.lang.String No description.
metadata java.util.Map Metadata associated with the ROS resource.

conditionOptional

public RosCondition getCondition();

A condition to associate with this resource.

This means that only if the condition evaluates to 'true' when the stack is deployed, the resource will be included. This is provided to allow CDK projects to produce legacy templates, but noramlly there is no need to use it in CDK projects.


countOptional

public java.lang.Object getCount();

deletionPolicyOptional

public RosDeletionPolicy getDeletionPolicy();

With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.

You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, ROS deletes the resource by default. Note that this capability also applies to update operations that lead to resources being removed.


descriptionOptional

public java.lang.String getDescription();
  • Type: java.lang.String

metadataOptional

public java.util.Map<java.lang.String, java.lang.Object> getMetadata();
  • Type: java.util.Map

Metadata associated with the ROS resource.

This is not the same as the construct metadata which can be added using construct.addMetadata(), but would not appear in the ROS template automatically.