Skip to content

IRosResourceOptions

Properties

Name Type Description
Condition RosCondition A condition to associate with this resource.
Count object No description.
DeletionPolicy RosDeletionPolicy With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.
Description string No description.
Metadata System.Collections.Generic.IDictionary Metadata associated with the ROS resource.

ConditionOptional

public RosCondition Condition { get; set; }

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 object Count { get; set; }
  • Type: object

DeletionPolicyOptional

public RosDeletionPolicy DeletionPolicy { get; set; }

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 string Description { get; set; }
  • Type: string

MetadataOptional

public System.Collections.Generic.IDictionary<string, object> Metadata { get; set; }
  • Type: System.Collections.Generic.IDictionary

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.