Skip to content

Commit

Permalink
feat(aws): update spec (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
withfig-bot authored Nov 13, 2024
1 parent eca347f commit 6224055
Show file tree
Hide file tree
Showing 57 changed files with 9,207 additions and 633 deletions.
30 changes: 21 additions & 9 deletions src/aws.ts

Large diffs are not rendered by default.

83 changes: 72 additions & 11 deletions src/aws/amp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const completionSpec: Fig.Spec = {
{
name: "--log-group-arn",
description:
"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",
"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",
args: {
name: "string",
},
Expand Down Expand Up @@ -165,12 +165,12 @@ const completionSpec: Fig.Spec = {
{
name: "create-scraper",
description:
"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",
"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",
options: [
{
name: "--alias",
description:
"(optional) a name to associate with the scraper. This is for your use, and does not need to be unique",
"(optional) An alias to associate with the scraper. This is for your use, and does not need to be unique",
args: {
name: "string",
},
Expand Down Expand Up @@ -836,12 +836,12 @@ const completionSpec: Fig.Spec = {
{
name: "list-tags-for-resource",
description:
"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",
"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",
options: [
{
name: "--resource-arn",
description:
"The ARN of the resource to list tages for. Must be a workspace or rule groups namespace resource",
"The ARN of the resource to list tages for. Must be a workspace, scraper, or rule groups namespace resource",
args: {
name: "string",
},
Expand Down Expand Up @@ -1044,20 +1044,19 @@ const completionSpec: Fig.Spec = {
{
name: "tag-resource",
description:
"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",
"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",
options: [
{
name: "--resource-arn",
description:
"The ARN of the workspace or rule groups namespace to apply tags to",
description: "The ARN of the resource to apply tags to",
args: {
name: "string",
},
},
{
name: "--tags",
description:
"The list of tag keys and values to associate with the resource. Keys may not begin with aws:",
"The list of tag keys and values to associate with the resource. Keys must not begin with aws:",
args: {
name: "map",
},
Expand All @@ -1084,11 +1083,11 @@ const completionSpec: Fig.Spec = {
{
name: "untag-resource",
description:
"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",
"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",
options: [
{
name: "--resource-arn",
description: "The ARN of the workspace or rule groups namespace",
description: "The ARN of the resource from which to remove a tag",
args: {
name: "string",
},
Expand Down Expand Up @@ -1167,6 +1166,68 @@ const completionSpec: Fig.Spec = {
},
],
},
{
name: "update-scraper",
description:
"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",
options: [
{
name: "--alias",
description: "The new alias of the scraper",
args: {
name: "string",
},
},
{
name: "--client-token",
description:
"A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive",
args: {
name: "string",
},
},
{
name: "--destination",
description:
"The new Amazon Managed Service for Prometheus workspace to send metrics to",
args: {
name: "structure",
},
},
{
name: "--scrape-configuration",
description:
"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",
args: {
name: "structure",
},
},
{
name: "--scraper-id",
description: "The ID of the scraper to update",
args: {
name: "string",
},
},
{
name: "--cli-input-json",
description:
"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",
args: {
name: "string",
},
},
{
name: "--generate-cli-skeleton",
description:
"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",
args: {
name: "string",
suggestions: ["input", "output"],
},
},
],
},
{
name: "update-workspace-alias",
description: "Updates the alias of an existing workspace",
Expand Down
14 changes: 12 additions & 2 deletions src/aws/appconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ const completionSpec: Fig.Spec = {
{
name: "--client-configuration-version",
description:
"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",
"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",
args: {
name: "string",
},
Expand Down Expand Up @@ -1847,7 +1847,7 @@ const completionSpec: Fig.Spec = {
{
name: "stop-deployment",
description:
"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",
"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",
options: [
{
name: "--application-id",
Expand All @@ -1870,6 +1870,16 @@ const completionSpec: Fig.Spec = {
name: "integer",
},
},
{
name: "--allow-revert",
description:
"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",
},
{
name: "--no-allow-revert",
description:
"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",
},
{
name: "--cli-input-json",
description:
Expand Down
Loading

0 comments on commit 6224055

Please sign in to comment.