IRosResourceOptions
- Implemented By: 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. |
condition
Optional
public RosCondition getCondition();
- Type: RosCondition
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.
count
Optional
public java.lang.Object getCount();
- Type: java.lang.Number OR IResolvable
deletionPolicy
Optional
public RosDeletionPolicy getDeletionPolicy();
- Type: RosDeletionPolicy
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.
description
Optional
public java.lang.String getDescription();
- Type: java.lang.String
metadata
Optional
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.