Skip to content

Commit

Permalink
Merge pull request #240 from stackql/dev
Browse files Browse the repository at this point in the history
Updated `aws`
  • Loading branch information
jeffreyaven committed Jun 11, 2024
2 parents 543530d + 4969998 commit 88c39b0
Show file tree
Hide file tree
Showing 224 changed files with 74,400 additions and 211,087 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
while IFS= read -r provider
do
echo "testing ${provider}..."
sh test-provider.sh $provider false $providersdir
sh test-provider.sh $provider false $providersdir true
done < ../providers.txt
#
Expand Down
81 changes: 27 additions & 54 deletions providers/src/aws/v00.00.00000/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,15 @@ providerServices:
title: panorama
version: v00.00.00000
description: panorama
paymentcryptography:
id: paymentcryptography:v00.00.00000
name: paymentcryptography
preferred: true
service:
$ref: aws/v00.00.00000/services/paymentcryptography.yaml
title: paymentcryptography
version: v00.00.00000
description: paymentcryptography
pcaconnectorad:
id: pcaconnectorad:v00.00.00000
name: pcaconnectorad
Expand Down Expand Up @@ -1433,6 +1442,15 @@ providerServices:
title: proton
version: v00.00.00000
description: proton
qbusiness:
id: qbusiness:v00.00.00000
name: qbusiness
preferred: true
service:
$ref: aws/v00.00.00000/services/qbusiness.yaml
title: qbusiness
version: v00.00.00000
description: qbusiness
qldb:
id: qldb:v00.00.00000
name: qldb
Expand Down Expand Up @@ -1559,6 +1577,15 @@ providerServices:
title: route53
version: v00.00.00000
description: route53
route53profiles:
id: route53profiles:v00.00.00000
name: route53profiles
preferred: true
service:
$ref: aws/v00.00.00000/services/route53profiles.yaml
title: route53profiles
version: v00.00.00000
description: route53profiles
route53recoverycontrol:
id: route53recoverycontrol:v00.00.00000
name: route53recoverycontrol
Expand Down Expand Up @@ -1937,60 +1964,6 @@ providerServices:
title: cloudhsm
version: v00.00.00000
description: cloudhsm
cloudwatch_api:
id: cloudwatch_api:v00.00.00000
name: cloudwatch_api
preferred: true
service:
$ref: aws/v00.00.00000/services/cloudwatch_api.yaml
title: cloudwatch_api
version: v00.00.00000
description: cloudwatch_api
ec2_api:
id: ec2_api:v00.00.00000
name: ec2_api
preferred: true
service:
$ref: aws/v00.00.00000/services/ec2_api.yaml
title: ec2_api
version: v00.00.00000
description: ec2_api
iam_api:
id: iam_api:v00.00.00000
name: iam_api
preferred: true
service:
$ref: aws/v00.00.00000/services/iam_api.yaml
title: iam_api
version: v00.00.00000
description: iam_api
route53_api:
id: route53_api:v00.00.00000
name: route53_api
preferred: true
service:
$ref: aws/v00.00.00000/services/route53_api.yaml
title: route53_api
version: v00.00.00000
description: route53_api
s3_api:
id: s3_api:v00.00.00000
name: s3_api
preferred: true
service:
$ref: aws/v00.00.00000/services/s3_api.yaml
title: s3_api
version: v00.00.00000
description: s3_api
transfer_api:
id: transfer_api:v00.00.00000
name: transfer_api
preferred: true
service:
$ref: aws/v00.00.00000/services/transfer_api.yaml
title: transfer_api
version: v00.00.00000
description: transfer_api
config:
auth:
type: aws_signing_v4
Expand Down
86 changes: 37 additions & 49 deletions providers/src/aws/v00.00.00000/services/accessanalyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ components:
x-cfn-type-name: AWS::AccessAnalyzer::Analyzer
x-identifiers:
- Arn
x-type: list
x-type: cloud_control
methods:
create_resource:
config:
Expand All @@ -620,9 +620,9 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
delete_resource:
update_resource:
operation:
$ref: '#/paths/~1?Action=DeleteResource&Version=2021-09-30/post'
$ref: '#/paths/~1?Action=UpdateResource&Version=2021-09-30/post'
request:
mediaType: application/x-amz-json-1.0
base: |-
Expand All @@ -632,41 +632,9 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
sqlVerbs:
insert:
- $ref: '#/components/x-stackQL-resources/analyzers/methods/create_resource'
delete:
- $ref: '#/components/x-stackQL-resources/analyzers/methods/delete_resource'
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND region = 'us-east-1'
analyzer:
name: analyzer
id: aws.accessanalyzer.analyzer
x-cfn-schema-name: Analyzer
x-cfn-type-name: AWS::AccessAnalyzer::Analyzer
x-identifiers:
- Arn
x-type: get
methods:
update_resource:
delete_resource:
operation:
$ref: '#/paths/~1?Action=UpdateResource&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 @@ -677,12 +645,16 @@ components:
mediaType: application/json
openAPIDocKey: '200'
sqlVerbs:
insert:
- $ref: '#/components/x-stackQL-resources/analyzers/methods/create_resource'
delete:
- $ref: '#/components/x-stackQL-resources/analyzers/methods/delete_resource'
update:
- $ref: '#/components/x-stackQL-resources/analyzer/methods/update_resource'
- $ref: '#/components/x-stackQL-resources/analyzers/methods/update_resource'
config:
views:
select:
predicate: sqlDialect == "sqlite3"
predicate: sqlDialect == "sqlite3" && requiredParams == [ data__Identifier ]
ddl: |-
SELECT
region,
Expand All @@ -697,20 +669,36 @@ components:
AND data__Identifier = '<Arn>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
data__Identifier,
json_extract_path_text(Properties, 'AnalyzerName') as analyzer_name,
json_extract_path_text(Properties, 'ArchiveRules') as archive_rules,
json_extract_path_text(Properties, 'Arn') as arn,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'Type') as type,
json_extract_path_text(Properties, 'AnalyzerConfiguration') as analyzer_configuration
FROM aws.cloud_control.resource WHERE data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND data__Identifier = '<Arn>'
JSON_EXTRACT(Properties, '$.Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ]
ddl: |-
SELECT
region,
data__Identifier,
json_extract_path_text(Properties, 'AnalyzerName') as analyzer_name,
json_extract_path_text(Properties, 'ArchiveRules') as archive_rules,
json_extract_path_text(Properties, 'Arn') as arn,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'Type') as type,
json_extract_path_text(Properties, 'AnalyzerConfiguration') as analyzer_configuration
FROM aws.cloud_control.resource WHERE data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND data__Identifier = '<Arn>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND region = 'us-east-1'
paths:
/?Action=CreateResource&Version=2021-09-30:
parameters:
Expand Down
Loading

0 comments on commit 88c39b0

Please sign in to comment.