-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aws): update spec #2520
Merged
grant0417
merged 1 commit into
withfig:master
from
withfig-bot:auto-update/aws/202db359-6a9d-4130-a11b-af2391e8a5f8
Dec 8, 2024
Merged
feat(aws): update spec #2520
grant0417
merged 1 commit into
withfig:master
from
withfig-bot:auto-update/aws/202db359-6a9d-4130-a11b-af2391e8a5f8
Dec 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Overviewsrc/aws/observabilityadmin.ts:Info:src/aws/bedrock-runtime.ts:Info:src/aws/connectcampaignsv2.ts:Info:src/aws/bcm-pricing-calculator.ts:Info:URLs:
src/aws/notifications.ts:Info:src/aws/networkflowmonitor.ts:Info:src/aws/billing.ts:Info:URLs:
src/aws/bedrock.ts:Info:src/aws/athena.ts:Info:src/aws/invoicing.ts:Info:URLs:
src/aws/bedrock-agent.ts:Info:src/aws/notificationscontacts.ts:Info:src/aws/dsql.ts:Info:src/aws/security-ir.ts:Info:src/aws/s3tables.ts:Info:src/aws/partnercentral-selling.ts:Info:src/aws/redshift-serverless.ts:Info:src/aws/qbusiness.ts:Info:URLs:
src/aws/cloudwatch.ts:Info:Single Functions:custom: async function (tokens, executeShellCommand) {
return listCustomGenerator(
tokens,
executeShellCommand,
"list-metrics",
["--namespace"],
"Metrics",
"MetricName"
);
} custom: async function (tokens, executeShellCommand) {
return listDimensionTypes(
tokens,
executeShellCommand,
"list-metrics",
"--namespace",
"Metrics",
"Dimensions"
);
} custom: async function (tokens, executeShellCommand) {
return listDimensionTypes(
tokens,
executeShellCommand,
"describe-anomaly-detectors",
"--namespace",
"AnomalyDetectors",
"Dimensions"
);
} custom: async function (tokens, executeShellCommand) {
return listCustomGenerator(
tokens,
executeShellCommand,
"describe-anomaly-detectors",
["--namespace", "--metric-name"],
"AnomalyDetectors",
"Stat"
);
} custom: async function (tokens, executeShellCommand) {
// get list of stream names
const result = await getResultList(
tokens,
executeShellCommand,
["firehose", "list-delivery-streams"],
"DeliveryStreamNames"
);
// construct "query"
const objects = result.flat().map((stream) => {
return {
command: [
"firehose",
"describe-delivery-stream",
"--delivery-stream-name",
Array.isArray(stream.name) ? stream.name[0] : stream.name,
],
parentKey: "DeliveryStreamDescription",
childKey: "DeliveryStreamARN",
};
});
// Fire up multiple API calls
return MultiSuggestionsGenerator(tokens, executeShellCommand, [
...objects,
]);
} src/aws/dynamodb.ts:Info:src/aws/redshift.ts:Info:src/aws/datazone.ts:Info:src/aws/glue.ts:Info:src/aws/quicksight.ts:Info:URLs:
src/aws.ts:Info:Single Functions:postProcess: function (out) {
if (out.trim() == "") {
return [];
}
return out.split("\n").map((line) => ({
name: line,
icon: "👤",
}));
} URLs:
src/aws/s3api.ts:Info:Single Functions:postProcess: function (out) {
const json = JSON.parse(out);
return json.Buckets.map((bucket) => {
let date;
try {
date = new Date(bucket.CreationDate).toLocaleDateString();
} catch (e) {
date = bucket.CreationDate;
}
return {
name: bucket.Name,
description: `Created: ${date}`,
};
});
} URLs:
|
Hello @withfig-bot,
Please add a 👍 as a reaction to this comment to show that you read this. |
grant0417
approved these changes
Dec 8, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automated PR for latest AWS CLI release by https://github.com/withfig/aws-cli-plugin