Skip to content
v2.278.0

LifecyclePolicyReference Struct ​

A reference to a LifecyclePolicy resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dlm as interfaces_dlm } from 'aws-cdk-lib/interfaces';
const lifecyclePolicyReference: interfaces_dlm.LifecyclePolicyReference = {
  lifecyclePolicyArn: 'lifecyclePolicyArn',
  policyId: 'policyId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_dlm as interfaces_dlm

lifecycle_policy_reference = interfaces_dlm.LifecyclePolicyReference(
    lifecycle_policy_arn="lifecyclePolicyArn",
    policy_id="policyId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.dlm.*;

LifecyclePolicyReference lifecyclePolicyReference = LifecyclePolicyReference.builder()
        .lifecyclePolicyArn("lifecyclePolicyArn")
        .policyId("policyId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.DLM;

var lifecyclePolicyReference = new LifecyclePolicyReference {
    LifecyclePolicyArn = "lifecyclePolicyArn",
    PolicyId = "policyId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lifecyclePolicyReference := &LifecyclePolicyReference{
	LifecyclePolicyArn: jsii.String("lifecyclePolicyArn"),
	PolicyId: jsii.String("policyId"),
}

Properties ​

lifecyclePolicyArnstringlifecycle_policy_arnstrlifecyclePolicyArnStringLifecyclePolicyArnstringLifecyclePolicyArn*string required #
The ARN of the LifecyclePolicy resource.
policyIdstringpolicy_idstrpolicyIdStringPolicyIdstringPolicyId*string required #
The PolicyId of the LifecyclePolicy resource.