ArtifactLifecycleRule
- Implements: IArtifactLifecycleRule
This class encapsulates and extends the ROS resource type ALIYUN::CR::ArtifactLifecycleRule.
Initializers
import com.aliyun.ros.cdk.cr.ArtifactLifecycleRule;
ArtifactLifecycleRule.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.auto(java.lang.Boolean)
.auto(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
// .namespaceName(java.lang.String)
// .namespaceName(IResolvable)
// .repoName(java.lang.String)
// .repoName(IResolvable)
// .retentionTagCount(java.lang.Number)
// .retentionTagCount(IResolvable)
// .scheduleTime(java.lang.String)
// .scheduleTime(IResolvable)
// .scope(java.lang.String)
// .scope(IResolvable)
// .tagRegexp(java.lang.String)
// .tagRegexp(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
auto | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property auto: Specify whether to automatically execute the lifecycle management rule. |
instanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceId: ACR Instance ID. |
namespaceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property namespaceName: The name of the namespace. |
repoName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property repoName: The name of the image repository. |
retentionTagCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property retentionTagCount: The number of images that you want to retain. |
scheduleTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property scheduleTime: The execution cycle of the lifecycle management rule. |
scope | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property scope: The deletion scope. |
tagRegexp | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property tagRegexp: The regular expression that is used to indicate which image tags are retained. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
autoRequired
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property auto: Specify whether to automatically execute the lifecycle management rule.
instanceIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: ACR Instance ID.
namespaceNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property namespaceName: The name of the namespace.
repoNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property repoName: The name of the image repository.
retentionTagCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property retentionTagCount: The number of images that you want to retain.
scheduleTimeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property scheduleTime: The execution cycle of the lifecycle management rule.
scopeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property scope: The deletion scope.
tagRegexpOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property tagRegexp: The regular expression that is used to indicate which image tags are retained.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.cr.ArtifactLifecycleRule;
ArtifactLifecycleRule.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrArtifactLifecycleRuleId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ArtifactLifecycleRuleId: The ID of the lifecycle management rule. |
attrAuto | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Auto: Specify whether to automatically execute the lifecycle management rule. |
attrCreateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CreateTime: Creation time of the lifecycle management rule. |
attrInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceId: ACR Instance ID. |
attrModifiedTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ModifiedTime: Change time of the lifecycle management rule. |
attrNamespaceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute NamespaceName: The name of the namespace. |
attrRepoName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RepoName: The name of the image repository. |
attrRetentionTagCount | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RetentionTagCount: The number of images that you want to retain. |
attrScheduleTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ScheduleTime: The execution cycle of the lifecycle management rule. |
attrScope | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Scope: The deletion scope. |
attrTagRegexp | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TagRegexp: The regular expression that is used to indicate which image tags are retained. |
props | ArtifactLifecycleRuleProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrArtifactLifecycleRuleIdRequired
public java.lang.Object getAttrArtifactLifecycleRuleId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ArtifactLifecycleRuleId: The ID of the lifecycle management rule.
attrAutoRequired
public java.lang.Object getAttrAuto();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Auto: Specify whether to automatically execute the lifecycle management rule.
attrCreateTimeRequired
public java.lang.Object getAttrCreateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: Creation time of the lifecycle management rule.
attrInstanceIdRequired
public java.lang.Object getAttrInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: ACR Instance ID.
attrModifiedTimeRequired
public java.lang.Object getAttrModifiedTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ModifiedTime: Change time of the lifecycle management rule.
attrNamespaceNameRequired
public java.lang.Object getAttrNamespaceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute NamespaceName: The name of the namespace.
attrRepoNameRequired
public java.lang.Object getAttrRepoName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RepoName: The name of the image repository.
attrRetentionTagCountRequired
public java.lang.Object getAttrRetentionTagCount();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RetentionTagCount: The number of images that you want to retain.
attrScheduleTimeRequired
public java.lang.Object getAttrScheduleTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ScheduleTime: The execution cycle of the lifecycle management rule.
attrScopeRequired
public java.lang.Object getAttrScope();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Scope: The deletion scope.
attrTagRegexpRequired
public java.lang.Object getAttrTagRegexp();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TagRegexp: The regular expression that is used to indicate which image tags are retained.
propsRequired
public ArtifactLifecycleRuleProps getProps();