@awboost/cfn-resource-types 0.1.47 → 0.1.48
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.
- package/lib/AWS-APS-Scraper.d.ts +137 -0
- package/lib/AWS-APS-Scraper.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
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::APS::Scraper
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-scraper.html}
|
|
6
|
+
*/
|
|
7
|
+
export type APSScraperProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* Scraper alias.
|
|
10
|
+
* @minLength `1`
|
|
11
|
+
* @maxLength `100`
|
|
12
|
+
* @pattern `^[0-9A-Za-z][-.0-9A-Z_a-z]*$`
|
|
13
|
+
*/
|
|
14
|
+
Alias?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Scraper metrics destination
|
|
17
|
+
*/
|
|
18
|
+
Destination: Destination;
|
|
19
|
+
/**
|
|
20
|
+
* Scraper configuration
|
|
21
|
+
*/
|
|
22
|
+
ScrapeConfiguration: ScrapeConfiguration;
|
|
23
|
+
/**
|
|
24
|
+
* Scraper metrics source
|
|
25
|
+
*/
|
|
26
|
+
Source: Source;
|
|
27
|
+
/**
|
|
28
|
+
* An array of key-value pairs to apply to this resource.
|
|
29
|
+
*/
|
|
30
|
+
Tags?: Tag[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Attribute type definition for `AWS::APS::Scraper`.
|
|
34
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-scraper.html#aws-resource-aps-scraper-return-values}
|
|
35
|
+
*/
|
|
36
|
+
export type APSScraperAttributes = {
|
|
37
|
+
/**
|
|
38
|
+
* Scraper ARN.
|
|
39
|
+
* @pattern `^arn:(aws|aws-us-gov|aws-cn):aps:(af|ap|ca|eu|me|sa|us)-(central|north|(north(?:east|west))|south|south(?:east|west)|east|west)-[0-9]+:[0-9]+:scraper/s-[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$`
|
|
40
|
+
*/
|
|
41
|
+
Arn: string;
|
|
42
|
+
/**
|
|
43
|
+
* IAM role ARN for the scraper.
|
|
44
|
+
* @minLength `20`
|
|
45
|
+
* @maxLength `2048`
|
|
46
|
+
* @pattern `^arn:(aws|aws-us-gov|aws-cn):iam::[0-9]{12}:role/[a-zA-Z0-9-]+$`
|
|
47
|
+
*/
|
|
48
|
+
RoleArn: string;
|
|
49
|
+
/**
|
|
50
|
+
* Required to identify a specific scraper.
|
|
51
|
+
* @minLength `1`
|
|
52
|
+
* @maxLength `64`
|
|
53
|
+
* @pattern `^s-[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$`
|
|
54
|
+
*/
|
|
55
|
+
ScraperId: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Type definition for `AWS::APS::Scraper.Destination`.
|
|
59
|
+
* Scraper metrics destination
|
|
60
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-destination.html}
|
|
61
|
+
*/
|
|
62
|
+
export type Destination = {
|
|
63
|
+
/**
|
|
64
|
+
* Configuration for Amazon Managed Prometheus metrics destination
|
|
65
|
+
*/
|
|
66
|
+
AmpConfiguration?: {
|
|
67
|
+
/**
|
|
68
|
+
* ARN of an Amazon Managed Prometheus workspace
|
|
69
|
+
* @pattern `^arn:aws[-a-z]*:aps:[-a-z0-9]+:[0-9]{12}:workspace/.+$`
|
|
70
|
+
*/
|
|
71
|
+
WorkspaceArn: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Type definition for `AWS::APS::Scraper.ScrapeConfiguration`.
|
|
76
|
+
* Scraper configuration
|
|
77
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-scrapeconfiguration.html}
|
|
78
|
+
*/
|
|
79
|
+
export type ScrapeConfiguration = {
|
|
80
|
+
/**
|
|
81
|
+
* Prometheus compatible scrape configuration in base64 encoded blob format
|
|
82
|
+
*/
|
|
83
|
+
ConfigurationBlob?: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Type definition for `AWS::APS::Scraper.Source`.
|
|
87
|
+
* Scraper metrics source
|
|
88
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-source.html}
|
|
89
|
+
*/
|
|
90
|
+
export type Source = {
|
|
91
|
+
/**
|
|
92
|
+
* Configuration for EKS metrics source
|
|
93
|
+
*/
|
|
94
|
+
EksConfiguration?: {
|
|
95
|
+
/**
|
|
96
|
+
* ARN of an EKS cluster
|
|
97
|
+
* @pattern `^arn:aws[-a-z]*:eks:[-a-z0-9]+:[0-9]{12}:cluster/.+$`
|
|
98
|
+
*/
|
|
99
|
+
ClusterArn: string;
|
|
100
|
+
/**
|
|
101
|
+
* List of security group IDs
|
|
102
|
+
*/
|
|
103
|
+
SecurityGroupIds?: string[];
|
|
104
|
+
/**
|
|
105
|
+
* List of subnet IDs
|
|
106
|
+
*/
|
|
107
|
+
SubnetIds: string[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Type definition for `AWS::APS::Scraper.Tag`.
|
|
112
|
+
* A key-value pair to associate with a resource.
|
|
113
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-tag.html}
|
|
114
|
+
*/
|
|
115
|
+
export type Tag = {
|
|
116
|
+
/**
|
|
117
|
+
* 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 -.
|
|
118
|
+
* @minLength `1`
|
|
119
|
+
* @maxLength `128`
|
|
120
|
+
*/
|
|
121
|
+
Key: string;
|
|
122
|
+
/**
|
|
123
|
+
* 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 -.
|
|
124
|
+
* @minLength `0`
|
|
125
|
+
* @maxLength `256`
|
|
126
|
+
*/
|
|
127
|
+
Value: string;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Resource Type definition for AWS::APS::Scraper
|
|
131
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-scraper.html}
|
|
132
|
+
*/
|
|
133
|
+
export declare class APSScraper extends $Resource<"AWS::APS::Scraper", APSScraperProperties, APSScraperAttributes> {
|
|
134
|
+
static readonly Type = "AWS::APS::Scraper";
|
|
135
|
+
constructor(logicalId: string, properties: APSScraperProperties, options?: $ResourceOptions);
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=AWS-APS-Scraper.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::APS::Scraper
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-scraper.html}
|
|
5
|
+
*/
|
|
6
|
+
export class APSScraper extends $Resource {
|
|
7
|
+
static Type = "AWS::APS::Scraper";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, APSScraper.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-APS-Scraper.js.map
|