Skip to content
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

updated aws #229

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions providers/src/aws/v00.00.00000/services/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
!cloud_control.yaml
!cloudhsm.yaml
!cloudwatch_api.yaml
!ec2_api.yaml
!iam_api.yaml
!s3_api.yaml
!transfer_api.yaml
133 changes: 116 additions & 17 deletions providers/src/aws/v00.00.00000/services/accessanalyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,58 @@ components:
- access-analyzer:DeleteAnalyzer
list:
- access-analyzer:ListAnalyzers
CreateAnalyzerRequest:
properties:
ClientToken:
type: string
RoleArn:
type: string
TypeName:
type: string
TypeVersionId:
type: string
DesiredState:
type: object
properties:
AnalyzerName:
description: Analyzer name
type: string
minLength: 1
maxLength: 1024
ArchiveRules:
type: array
x-insertionOrder: false
items:
$ref: '#/components/schemas/ArchiveRule'
Arn:
description: Amazon Resource Name (ARN) of the analyzer
type: string
minLength: 1
maxLength: 1600
Tags:
type: array
maxItems: 50
x-insertionOrder: false
uniqueItems: true
description: An array of key-value pairs to apply to this resource.
items:
$ref: '#/components/schemas/Tag'
Type:
description: The type of the analyzer, must be one of ACCOUNT, ORGANIZATION, ACCOUNT_UNUSED_ACCESS or ORGANIZATION_UNUSED_ACCESS
type: string
minLength: 0
maxLength: 1024
AnalyzerConfiguration:
description: The configuration for the analyzer
type: object
properties:
UnusedAccessConfiguration:
$ref: '#/components/schemas/UnusedAccessConfiguration'
additionalProperties: false
x-stackQL-stringOnly: true
x-title: CreateAnalyzerRequest
type: object
required: []
securitySchemes:
hmac:
type: apiKey
Expand All @@ -551,10 +603,26 @@ components:
x-cfn-type-name: AWS::AccessAnalyzer::Analyzer
x-identifiers:
- Arn
x-type: list
methods:
create_resource:
config:
requestBodyTranslate:
algorithm: naive_DesiredState
operation:
$ref: '#/paths/~1?Action=CreateResource&Version=2021-09-30&__Analyzer&__detailTransformed=true/post'
request:
mediaType: application/x-amz-json-1.0
base: |-
{
"TypeName": "AWS::AccessAnalyzer::Analyzer"
}
response:
mediaType: application/json
openAPIDocKey: '200'
delete_resource:
operation:
$ref: '#/paths/~1?Action=CreateResource&Version=2021-09-30/post'
$ref: '#/paths/~1?Action=DeleteResource&Version=2021-09-30/post'
request:
mediaType: application/x-amz-json-1.0
base: |-
Expand All @@ -567,7 +635,8 @@ components:
sqlVerbs:
insert:
- $ref: '#/components/x-stackQL-resources/analyzers/methods/create_resource'
x-type: list
delete:
- $ref: '#/components/x-stackQL-resources/analyzers/methods/delete_resource'
config:
views:
select:
Expand All @@ -593,6 +662,7 @@ components:
x-cfn-type-name: AWS::AccessAnalyzer::Analyzer
x-identifiers:
- Arn
x-type: get
methods:
update_resource:
operation:
Expand All @@ -606,24 +676,9 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
delete_resource:
operation:
$ref: '#/paths/~1?Action=DeleteResource&Version=2021-09-30/post'
request:
mediaType: application/x-amz-json-1.0
base: |-
{
"TypeName": "AWS::AccessAnalyzer::Analyzer"
}
response:
mediaType: application/json
openAPIDocKey: '200'
sqlVerbs:
update:
- $ref: '#/components/x-stackQL-resources/analyzer/methods/update_resource'
delete:
- $ref: '#/components/x-stackQL-resources/analyzer/methods/delete_resource'
x-type: get
config:
views:
select:
Expand Down Expand Up @@ -799,8 +854,52 @@ paths:
schema:
$ref: '#/components/x-cloud-control-schemas/UpdateResourceOutput'
description: Success
/?Action=CreateResource&Version=2021-09-30&__Analyzer&__detailTransformed=true:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
post:
operationId: CreateAnalyzer
parameters:
- description: Action Header
in: header
name: X-Amz-Target
required: false
schema:
default: CloudApiService.CreateResource
enum:
- CloudApiService.CreateResource
type: string
- in: header
name: Content-Type
required: false
schema:
default: application/x-amz-json-1.0
enum:
- application/x-amz-json-1.0
type: string
requestBody:
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/CreateAnalyzerRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/x-cloud-control-schemas/ProgressEvent'
description: Success
x-stackQL-config:
pagination:
requestTranslate:
algorithm: drop_double_underscore_params
requestToken:
key: NextToken
location: body
Expand Down
Loading