InstanceSnapshotReference Struct
A reference to a InstanceSnapshot resource.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as interfaces_lightsail } from 'aws-cdk-lib/interfaces';
const instanceSnapshotReference: interfaces_lightsail.InstanceSnapshotReference = {
instanceSnapshotArn: 'instanceSnapshotArn',
instanceSnapshotName: 'instanceSnapshotName',
};
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_lightsail as interfaces_lightsail
instance_snapshot_reference = interfaces_lightsail.InstanceSnapshotReference(
instance_snapshot_arn="instanceSnapshotArn",
instance_snapshot_name="instanceSnapshotName"
)
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.lightsail.*;
InstanceSnapshotReference instanceSnapshotReference = InstanceSnapshotReference.builder()
.instanceSnapshotArn("instanceSnapshotArn")
.instanceSnapshotName("instanceSnapshotName")
.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.Lightsail;
var instanceSnapshotReference = new InstanceSnapshotReference {
InstanceSnapshotArn = "instanceSnapshotArn",
InstanceSnapshotName = "instanceSnapshotName"
};
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"
instanceSnapshotReference := &InstanceSnapshotReference{
InstanceSnapshotArn: jsii.String("instanceSnapshotArn"),
InstanceSnapshotName: jsii.String("instanceSnapshotName"),
}
Properties
instanceSnapshotArnstringinstance_snapshot_arnstrinstanceSnapshotArnStringInstanceSnapshotArnstringInstanceSnapshotArn*string required #The ARN of the InstanceSnapshot resource.
instanceSnapshotNamestringinstance_snapshot_namestrinstanceSnapshotNameStringInstanceSnapshotNamestringInstanceSnapshotName*string required #The InstanceSnapshotName of the InstanceSnapshot resource.