Skip to content

Commit 6224055

Browse files
authored
feat(aws): update spec (withfig#2506)
1 parent eca347f commit 6224055

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+9207
-633
lines changed

src/aws.ts

+21-9
Large diffs are not rendered by default.

src/aws/amp.ts

+72-11
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const completionSpec: Fig.Spec = {
6767
{
6868
name: "--log-group-arn",
6969
description:
70-
"The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this API",
70+
"The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this operation",
7171
args: {
7272
name: "string",
7373
},
@@ -165,12 +165,12 @@ const completionSpec: Fig.Spec = {
165165
{
166166
name: "create-scraper",
167167
description:
168-
"The CreateScraper operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. You can configure the scraper to control what metrics are collected, and what transformations are applied prior to sending them to your workspace. If needed, an IAM role will be created for you that gives Amazon Managed Service for Prometheus access to the metrics in your cluster. For more information, see Using roles for scraping metrics from EKS in the Amazon Managed Service for Prometheus User Guide. You cannot update a scraper. If you want to change the configuration of the scraper, create a new scraper and delete the old one. The scrapeConfiguration parameter contains the base64-encoded version of the YAML configuration file. For more information about collectors, including what metrics are collected, and how to configure the scraper, see Amazon Web Services managed collectors in the Amazon Managed Service for Prometheus User Guide",
168+
"The CreateScraper operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. Scrapers are flexible, and can be configured to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more. An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see Configuring your Amazon EKS cluster in the Amazon Managed Service for Prometheus User Guide. The scrapeConfiguration parameter contains the base-64 encoded YAML configuration for the scraper. For more information about collectors, including what metrics are collected, and how to configure the scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide",
169169
options: [
170170
{
171171
name: "--alias",
172172
description:
173-
"(optional) a name to associate with the scraper. This is for your use, and does not need to be unique",
173+
"(optional) An alias to associate with the scraper. This is for your use, and does not need to be unique",
174174
args: {
175175
name: "string",
176176
},
@@ -836,12 +836,12 @@ const completionSpec: Fig.Spec = {
836836
{
837837
name: "list-tags-for-resource",
838838
description:
839-
"The ListTagsForResource operation returns the tags that are associated with an Amazon Managed Service for Prometheus resource. Currently, the only resources that can be tagged are workspaces and rule groups namespaces",
839+
"The ListTagsForResource operation returns the tags that are associated with an Amazon Managed Service for Prometheus resource. Currently, the only resources that can be tagged are scrapers, workspaces, and rule groups namespaces",
840840
options: [
841841
{
842842
name: "--resource-arn",
843843
description:
844-
"The ARN of the resource to list tages for. Must be a workspace or rule groups namespace resource",
844+
"The ARN of the resource to list tages for. Must be a workspace, scraper, or rule groups namespace resource",
845845
args: {
846846
name: "string",
847847
},
@@ -1044,20 +1044,19 @@ const completionSpec: Fig.Spec = {
10441044
{
10451045
name: "tag-resource",
10461046
description:
1047-
"The TagResource operation associates tags with an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag",
1047+
"The TagResource operation associates tags with an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are rule groups namespaces, scrapers, and workspaces. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag. To remove a tag, use UntagResource",
10481048
options: [
10491049
{
10501050
name: "--resource-arn",
1051-
description:
1052-
"The ARN of the workspace or rule groups namespace to apply tags to",
1051+
description: "The ARN of the resource to apply tags to",
10531052
args: {
10541053
name: "string",
10551054
},
10561055
},
10571056
{
10581057
name: "--tags",
10591058
description:
1060-
"The list of tag keys and values to associate with the resource. Keys may not begin with aws:",
1059+
"The list of tag keys and values to associate with the resource. Keys must not begin with aws:",
10611060
args: {
10621061
name: "map",
10631062
},
@@ -1084,11 +1083,11 @@ const completionSpec: Fig.Spec = {
10841083
{
10851084
name: "untag-resource",
10861085
description:
1087-
"Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces",
1086+
"Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are rule groups namespaces, scrapers, and workspaces",
10881087
options: [
10891088
{
10901089
name: "--resource-arn",
1091-
description: "The ARN of the workspace or rule groups namespace",
1090+
description: "The ARN of the resource from which to remove a tag",
10921091
args: {
10931092
name: "string",
10941093
},
@@ -1167,6 +1166,68 @@ const completionSpec: Fig.Spec = {
11671166
},
11681167
],
11691168
},
1169+
{
1170+
name: "update-scraper",
1171+
description:
1172+
"Updates an existing scraper. You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one",
1173+
options: [
1174+
{
1175+
name: "--alias",
1176+
description: "The new alias of the scraper",
1177+
args: {
1178+
name: "string",
1179+
},
1180+
},
1181+
{
1182+
name: "--client-token",
1183+
description:
1184+
"A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive",
1185+
args: {
1186+
name: "string",
1187+
},
1188+
},
1189+
{
1190+
name: "--destination",
1191+
description:
1192+
"The new Amazon Managed Service for Prometheus workspace to send metrics to",
1193+
args: {
1194+
name: "structure",
1195+
},
1196+
},
1197+
{
1198+
name: "--scrape-configuration",
1199+
description:
1200+
"Contains the base-64 encoded YAML configuration for the scraper. For more information about configuring a scraper, see Using an Amazon Web Services managed collector in the Amazon Managed Service for Prometheus User Guide",
1201+
args: {
1202+
name: "structure",
1203+
},
1204+
},
1205+
{
1206+
name: "--scraper-id",
1207+
description: "The ID of the scraper to update",
1208+
args: {
1209+
name: "string",
1210+
},
1211+
},
1212+
{
1213+
name: "--cli-input-json",
1214+
description:
1215+
"Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally",
1216+
args: {
1217+
name: "string",
1218+
},
1219+
},
1220+
{
1221+
name: "--generate-cli-skeleton",
1222+
description:
1223+
"Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command",
1224+
args: {
1225+
name: "string",
1226+
suggestions: ["input", "output"],
1227+
},
1228+
},
1229+
],
1230+
},
11701231
{
11711232
name: "update-workspace-alias",
11721233
description: "Updates the alias of an existing workspace",

src/aws/appconfig.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ const completionSpec: Fig.Spec = {
852852
{
853853
name: "--client-configuration-version",
854854
description:
855-
"The configuration version returned in the most recent GetConfiguration response. AppConfig uses the value of the ClientConfigurationVersion parameter to identify the configuration version on your clients. If you don\u2019t send ClientConfigurationVersion with each call to GetConfiguration, your clients receive the current configuration. You are charged each time your clients receive a configuration. To avoid excess charges, we recommend you use the StartConfigurationSession and GetLatestConfiguration APIs, which track the client configuration version on your behalf. If you choose to continue using GetConfiguration, we recommend that you include the ClientConfigurationVersion value with every call to GetConfiguration. The value to use for ClientConfigurationVersion comes from the ConfigurationVersion attribute returned by GetConfiguration when there is new or updated data, and should be saved for subsequent calls to GetConfiguration. For more information about working with configurations, see Retrieving the Configuration in the AppConfig User Guide",
855+
"The configuration version returned in the most recent GetConfiguration response. AppConfig uses the value of the ClientConfigurationVersion parameter to identify the configuration version on your clients. If you don\u2019t send ClientConfigurationVersion with each call to GetConfiguration, your clients receive the current configuration. You are charged each time your clients receive a configuration. To avoid excess charges, we recommend you use the StartConfigurationSession and GetLatestConfiguration APIs, which track the client configuration version on your behalf. If you choose to continue using GetConfiguration, we recommend that you include the ClientConfigurationVersion value with every call to GetConfiguration. The value to use for ClientConfigurationVersion comes from the ConfigurationVersion attribute returned by GetConfiguration when there is new or updated data, and should be saved for subsequent calls to GetConfiguration. For more information about working with configurations, see Retrieving feature flags and configuration data in AppConfig in the AppConfig User Guide",
856856
args: {
857857
name: "string",
858858
},
@@ -1847,7 +1847,7 @@ const completionSpec: Fig.Spec = {
18471847
{
18481848
name: "stop-deployment",
18491849
description:
1850-
"Stops a deployment. This API action works only on deployments that have a status of DEPLOYING. This action moves the deployment to a status of ROLLED_BACK",
1850+
"Stops a deployment. This API action works only on deployments that have a status of DEPLOYING, unless an AllowRevert parameter is supplied. If the AllowRevert parameter is supplied, the status of an in-progress deployment will be ROLLED_BACK. The status of a completed deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion",
18511851
options: [
18521852
{
18531853
name: "--application-id",
@@ -1870,6 +1870,16 @@ const completionSpec: Fig.Spec = {
18701870
name: "integer",
18711871
},
18721872
},
1873+
{
1874+
name: "--allow-revert",
1875+
description:
1876+
"A Boolean that enables AppConfig to rollback a COMPLETED deployment to the previous configuration version. This action moves the deployment to a status of REVERTED",
1877+
},
1878+
{
1879+
name: "--no-allow-revert",
1880+
description:
1881+
"A Boolean that enables AppConfig to rollback a COMPLETED deployment to the previous configuration version. This action moves the deployment to a status of REVERTED",
1882+
},
18731883
{
18741884
name: "--cli-input-json",
18751885
description:

0 commit comments

Comments
 (0)