Skip to content

Commit 3e723bf

Browse files
authored
feat(aws): update spec (#2392)
1 parent 38a7bfc commit 3e723bf

File tree

163 files changed

+6786
-970
lines changed

Some content is hidden

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

163 files changed

+6786
-970
lines changed

src/aws.ts

Lines changed: 26 additions & 19 deletions
Large diffs are not rendered by default.

src/aws/accessanalyzer.ts

Lines changed: 156 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const completionSpec: Fig.Spec = {
9595
{
9696
name: "--access",
9797
description:
98-
"An access object containing the permissions that shouldn't be granted by the specified policy",
98+
"An access object containing the permissions that shouldn't be granted by the specified policy. If only actions are specified, IAM Access Analyzer checks for access of the actions on all resources in the policy. If only resources are specified, then IAM Access Analyzer checks which actions have access to the specified resources. If both actions and resources are specified, then IAM Access Analyzer checks which of the specified actions have access to the specified resources",
9999
args: {
100100
name: "list",
101101
},
@@ -175,6 +175,45 @@ const completionSpec: Fig.Spec = {
175175
},
176176
],
177177
},
178+
{
179+
name: "check-no-public-access",
180+
description:
181+
"Checks whether a resource policy can grant public access to the specified resource type",
182+
options: [
183+
{
184+
name: "--policy-document",
185+
description: "The JSON policy document to evaluate for public access",
186+
args: {
187+
name: "string",
188+
},
189+
},
190+
{
191+
name: "--resource-type",
192+
description:
193+
"The type of resource to evaluate for public access. For example, to check for public access to Amazon S3 buckets, you can choose AWS::S3::Bucket for the resource type. For resource types not supported as valid values, IAM Access Analyzer will return an error",
194+
args: {
195+
name: "string",
196+
},
197+
},
198+
{
199+
name: "--cli-input-json",
200+
description:
201+
"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",
202+
args: {
203+
name: "string",
204+
},
205+
},
206+
{
207+
name: "--generate-cli-skeleton",
208+
description:
209+
"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",
210+
args: {
211+
name: "string",
212+
suggestions: ["input", "output"],
213+
},
214+
},
215+
],
216+
},
178217
{
179218
name: "create-access-preview",
180219
description:
@@ -425,6 +464,44 @@ const completionSpec: Fig.Spec = {
425464
},
426465
],
427466
},
467+
{
468+
name: "generate-finding-recommendation",
469+
description: "Creates a recommendation for an unused permissions finding",
470+
options: [
471+
{
472+
name: "--analyzer-arn",
473+
description:
474+
"The ARN of the analyzer used to generate the finding recommendation",
475+
args: {
476+
name: "string",
477+
},
478+
},
479+
{
480+
name: "--id",
481+
description: "The unique ID for the finding recommendation",
482+
args: {
483+
name: "string",
484+
},
485+
},
486+
{
487+
name: "--cli-input-json",
488+
description:
489+
"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",
490+
args: {
491+
name: "string",
492+
},
493+
},
494+
{
495+
name: "--generate-cli-skeleton",
496+
description:
497+
"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",
498+
args: {
499+
name: "string",
500+
suggestions: ["input", "output"],
501+
},
502+
},
503+
],
504+
},
428505
{
429506
name: "get-access-preview",
430507
description:
@@ -607,6 +684,84 @@ const completionSpec: Fig.Spec = {
607684
},
608685
],
609686
},
687+
{
688+
name: "get-finding-recommendation",
689+
description:
690+
"Retrieves information about a finding recommendation for the specified analyzer",
691+
options: [
692+
{
693+
name: "--analyzer-arn",
694+
description:
695+
"The ARN of the analyzer used to generate the finding recommendation",
696+
args: {
697+
name: "string",
698+
},
699+
},
700+
{
701+
name: "--id",
702+
description: "The unique ID for the finding recommendation",
703+
args: {
704+
name: "string",
705+
},
706+
},
707+
{
708+
name: "--max-results",
709+
description:
710+
"The maximum number of results to return in the response",
711+
args: {
712+
name: "integer",
713+
},
714+
},
715+
{
716+
name: "--next-token",
717+
description: "A token used for pagination of results returned",
718+
args: {
719+
name: "string",
720+
},
721+
},
722+
{
723+
name: "--cli-input-json",
724+
description:
725+
"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",
726+
args: {
727+
name: "string",
728+
},
729+
},
730+
{
731+
name: "--starting-token",
732+
description:
733+
"A token to specify where to start paginating. This is the\nNextToken from a previously truncated response.\nFor usage examples, see Pagination in the AWS Command Line Interface User\nGuide",
734+
args: {
735+
name: "string",
736+
},
737+
},
738+
{
739+
name: "--page-size",
740+
description:
741+
"The size of each page to get in the AWS service call. This\ndoes not affect the number of items returned in the command's\noutput. Setting a smaller page size results in more calls to\nthe AWS service, retrieving fewer items in each call. This can\nhelp prevent the AWS service calls from timing out.\nFor usage examples, see Pagination in the AWS Command Line Interface User\nGuide",
742+
args: {
743+
name: "integer",
744+
},
745+
},
746+
{
747+
name: "--max-items",
748+
description:
749+
"The total number of items to return in the command's output.\nIf the total number of items available is more than the value\nspecified, a NextToken is provided in the command's\noutput. To resume pagination, provide the\nNextToken value in the starting-token\nargument of a subsequent command. Do not use the\nNextToken response element directly outside of the\nAWS CLI.\nFor usage examples, see Pagination in the AWS Command Line Interface User\nGuide",
750+
args: {
751+
name: "integer",
752+
},
753+
},
754+
{
755+
name: "--generate-cli-skeleton",
756+
description:
757+
"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",
758+
args: {
759+
name: "string",
760+
suggestions: ["input", "output"],
761+
},
762+
},
763+
],
764+
},
610765
{
611766
name: "get-finding-v2",
612767
description:

0 commit comments

Comments
 (0)