@awboost/cfn-resource-types 0.1.443 → 0.1.444
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
|
+
/**
|
|
4
|
+
* Resource Type definition for AWS::Lightsail::DiskSnapshot
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html}
|
|
6
|
+
*/
|
|
7
|
+
export type LightsailDiskSnapshotProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the source disk from which the snapshot was created.
|
|
10
|
+
* @minLength `2`
|
|
11
|
+
* @maxLength `255`
|
|
12
|
+
* @pattern `^\w[\w\-]*\w$`
|
|
13
|
+
*/
|
|
14
|
+
DiskName: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the disk snapshot (e.g., my-disk-snapshot).
|
|
17
|
+
* @minLength `2`
|
|
18
|
+
* @maxLength `255`
|
|
19
|
+
* @pattern `^\w[\w\-]*\w$`
|
|
20
|
+
*/
|
|
21
|
+
DiskSnapshotName: string;
|
|
22
|
+
/**
|
|
23
|
+
* An array of key-value pairs to apply to this resource.
|
|
24
|
+
* @maxLength `50`
|
|
25
|
+
*/
|
|
26
|
+
Tags?: Tag[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Attribute type definition for `AWS::Lightsail::DiskSnapshot`.
|
|
30
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html#aws-resource-lightsail-disksnapshot-return-values}
|
|
31
|
+
*/
|
|
32
|
+
export type LightsailDiskSnapshotAttributes = {
|
|
33
|
+
/**
|
|
34
|
+
* The timestamp when the disk snapshot was created.
|
|
35
|
+
*/
|
|
36
|
+
CreatedAt: string;
|
|
37
|
+
/**
|
|
38
|
+
* The Amazon Resource Name (ARN) of the disk snapshot.
|
|
39
|
+
* @pattern `.*\S.*`
|
|
40
|
+
*/
|
|
41
|
+
DiskSnapshotArn: string;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the source disk from which the disk snapshot was created.
|
|
44
|
+
* @pattern `^\w[\w\-]*\w$`
|
|
45
|
+
*/
|
|
46
|
+
FromDiskName: string;
|
|
47
|
+
/**
|
|
48
|
+
* A Boolean value indicating whether the snapshot was created from an automatic snapshot.
|
|
49
|
+
*/
|
|
50
|
+
IsFromAutoSnapshot: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The AWS Region and Availability Zone where the disk snapshot was created.
|
|
53
|
+
*/
|
|
54
|
+
Location: {
|
|
55
|
+
/**
|
|
56
|
+
* The Availability Zone where the disk snapshot was created.
|
|
57
|
+
*/
|
|
58
|
+
AvailabilityZone: string;
|
|
59
|
+
/**
|
|
60
|
+
* The AWS Region where the disk snapshot was created.
|
|
61
|
+
*/
|
|
62
|
+
RegionName: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The progress of the disk snapshot creation operation.
|
|
66
|
+
*/
|
|
67
|
+
Progress: string;
|
|
68
|
+
/**
|
|
69
|
+
* The Lightsail resource type (DiskSnapshot).
|
|
70
|
+
*/
|
|
71
|
+
ResourceType: "DiskSnapshot";
|
|
72
|
+
/**
|
|
73
|
+
* The size of the disk snapshot in GB.
|
|
74
|
+
* @min `1`
|
|
75
|
+
*/
|
|
76
|
+
SizeInGb: number;
|
|
77
|
+
/**
|
|
78
|
+
* The status of the disk snapshot operation.
|
|
79
|
+
*/
|
|
80
|
+
State: "pending" | "completed" | "error" | "unknown";
|
|
81
|
+
/**
|
|
82
|
+
* The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail.
|
|
83
|
+
*/
|
|
84
|
+
SupportCode: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Type definition for `AWS::Lightsail::DiskSnapshot.Tag`.
|
|
88
|
+
* A key-value pair to associate with a resource.
|
|
89
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-disksnapshot-tag.html}
|
|
90
|
+
*/
|
|
91
|
+
export type Tag = {
|
|
92
|
+
/**
|
|
93
|
+
* The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
94
|
+
* @minLength `1`
|
|
95
|
+
* @maxLength `128`
|
|
96
|
+
*/
|
|
97
|
+
Key: string;
|
|
98
|
+
/**
|
|
99
|
+
* The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
100
|
+
* @minLength `0`
|
|
101
|
+
* @maxLength `256`
|
|
102
|
+
*/
|
|
103
|
+
Value?: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Resource Type definition for AWS::Lightsail::DiskSnapshot
|
|
107
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html}
|
|
108
|
+
*/
|
|
109
|
+
export declare class LightsailDiskSnapshot extends $Resource<"AWS::Lightsail::DiskSnapshot", LightsailDiskSnapshotProperties, LightsailDiskSnapshotAttributes> {
|
|
110
|
+
static readonly Type = "AWS::Lightsail::DiskSnapshot";
|
|
111
|
+
constructor(logicalId: string, properties: LightsailDiskSnapshotProperties, options?: $ResourceOptions);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=AWS-Lightsail-DiskSnapshot.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
/**
|
|
3
|
+
* Resource Type definition for AWS::Lightsail::DiskSnapshot
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disksnapshot.html}
|
|
5
|
+
*/
|
|
6
|
+
export class LightsailDiskSnapshot extends $Resource {
|
|
7
|
+
static Type = "AWS::Lightsail::DiskSnapshot";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, LightsailDiskSnapshot.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-Lightsail-DiskSnapshot.js.map
|