Skip to content

Commit

Permalink
Merge pull request #243 from stackql/feature/provider
Browse files Browse the repository at this point in the history
aws update
  • Loading branch information
jeffreyaven authored Jul 5, 2024
2 parents 9883cc7 + 6f9e936 commit 1af57a3
Show file tree
Hide file tree
Showing 214 changed files with 97,796 additions and 7,984 deletions.
120 changes: 112 additions & 8 deletions providers/src/aws/v00.00.00000/services/accessanalyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,20 @@ components:
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'
detail.region,
JSON_EXTRACT(detail.Properties, '$.AnalyzerName') as analyzer_name,
JSON_EXTRACT(detail.Properties, '$.ArchiveRules') as archive_rules,
JSON_EXTRACT(detail.Properties, '$.Arn') as arn,
JSON_EXTRACT(detail.Properties, '$.Tags') as tags,
JSON_EXTRACT(detail.Properties, '$.Type') as type,
JSON_EXTRACT(detail.Properties, '$.AnalyzerConfiguration') as analyzer_configuration
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
WHERE listing.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND detail.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND listing.region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ]
ddl: |-
Expand All @@ -695,10 +705,104 @@ components:
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'
detail.region,
json_extract_path_text(detail.Properties, 'AnalyzerName') as analyzer_name,
json_extract_path_text(detail.Properties, 'ArchiveRules') as archive_rules,
json_extract_path_text(detail.Properties, 'Arn') as arn,
json_extract_path_text(detail.Properties, 'Tags') as tags,
json_extract_path_text(detail.Properties, 'Type') as type,
json_extract_path_text(detail.Properties, 'AnalyzerConfiguration') as analyzer_configuration
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
WHERE listing.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND detail.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND listing.region = 'us-east-1'
analyzers_list_only:
name: analyzers_list_only
id: aws.accessanalyzer.analyzers_list_only
x-cfn-schema-name: Analyzer
x-cfn-type-name: AWS::AccessAnalyzer::Analyzer
x-identifiers:
- Arn
x-type: cloud_control_view
methods: {}
sqlVerbs:
insert: []
delete: []
update: []
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_tags:
name: analyzer_tags
id: aws.accessanalyzer.analyzer_tags
x-cfn-schema-name: Analyzer
x-cfn-type-name: AWS::AccessAnalyzer::Analyzer
x-type: cloud_control_view
methods: {}
sqlVerbs:
insert: []
delete: []
update: []
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
detail.region,
JSON_EXTRACT(json_each.value, '$.Key') as tag_key,
JSON_EXTRACT(json_each.value, '$.Value') as tag_value,
JSON_EXTRACT(detail.Properties, '$.AnalyzerName') as analyzer_name,
JSON_EXTRACT(detail.Properties, '$.ArchiveRules') as archive_rules,
JSON_EXTRACT(detail.Properties, '$.Arn') as arn,
JSON_EXTRACT(detail.Properties, '$.Type') as type,
JSON_EXTRACT(detail.Properties, '$.AnalyzerConfiguration') as analyzer_configuration
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
,json_each(JSON_EXTRACT(detail.Properties, '$.Tags'))
WHERE listing.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND detail.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND listing.region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
detail.region,
json_extract_path_text(json_each.value, 'Key') as tag_key,
json_extract_path_text(json_each.value, 'Value') as tag_value,
json_extract_path_text(detail.Properties, 'AnalyzerName') as analyzer_name,
json_extract_path_text(detail.Properties, 'ArchiveRules') as archive_rules,
json_extract_path_text(detail.Properties, 'Arn') as arn,
json_extract_path_text(detail.Properties, 'Type') as type,
json_extract_path_text(detail.Properties, 'AnalyzerConfiguration') as analyzer_configuration
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
,json_array_elements_text(json_extract_path_text(detail.Properties, 'Tags'))
WHERE listing.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND detail.data__TypeName = 'AWS::AccessAnalyzer::Analyzer'
AND listing.region = 'us-east-1'
paths:
/?Action=CreateResource&Version=2021-09-30:
parameters:
Expand Down
140 changes: 132 additions & 8 deletions providers/src/aws/v00.00.00000/services/acmpca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1386,10 +1386,25 @@ components:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND region = 'us-east-1'
detail.region,
JSON_EXTRACT(detail.Properties, '$.Arn') as arn,
JSON_EXTRACT(detail.Properties, '$.Type') as type,
JSON_EXTRACT(detail.Properties, '$.KeyAlgorithm') as key_algorithm,
JSON_EXTRACT(detail.Properties, '$.SigningAlgorithm') as signing_algorithm,
JSON_EXTRACT(detail.Properties, '$.Subject') as subject,
JSON_EXTRACT(detail.Properties, '$.RevocationConfiguration') as revocation_configuration,
JSON_EXTRACT(detail.Properties, '$.Tags') as tags,
JSON_EXTRACT(detail.Properties, '$.CertificateSigningRequest') as certificate_signing_request,
JSON_EXTRACT(detail.Properties, '$.CsrExtensions') as csr_extensions,
JSON_EXTRACT(detail.Properties, '$.KeyStorageSecurityStandard') as key_storage_security_standard,
JSON_EXTRACT(detail.Properties, '$.UsageMode') as usage_mode
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
WHERE listing.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND detail.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND listing.region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres" && requiredParams == [ data__Identifier ]
ddl: |-
Expand All @@ -1414,10 +1429,119 @@ components:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND region = 'us-east-1'
detail.region,
json_extract_path_text(detail.Properties, 'Arn') as arn,
json_extract_path_text(detail.Properties, 'Type') as type,
json_extract_path_text(detail.Properties, 'KeyAlgorithm') as key_algorithm,
json_extract_path_text(detail.Properties, 'SigningAlgorithm') as signing_algorithm,
json_extract_path_text(detail.Properties, 'Subject') as subject,
json_extract_path_text(detail.Properties, 'RevocationConfiguration') as revocation_configuration,
json_extract_path_text(detail.Properties, 'Tags') as tags,
json_extract_path_text(detail.Properties, 'CertificateSigningRequest') as certificate_signing_request,
json_extract_path_text(detail.Properties, 'CsrExtensions') as csr_extensions,
json_extract_path_text(detail.Properties, 'KeyStorageSecurityStandard') as key_storage_security_standard,
json_extract_path_text(detail.Properties, 'UsageMode') as usage_mode
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
WHERE listing.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND detail.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND listing.region = 'us-east-1'
certificate_authorities_list_only:
name: certificate_authorities_list_only
id: aws.acmpca.certificate_authorities_list_only
x-cfn-schema-name: CertificateAuthority
x-cfn-type-name: AWS::ACMPCA::CertificateAuthority
x-identifiers:
- Arn
x-type: cloud_control_view
methods: {}
sqlVerbs:
insert: []
delete: []
update: []
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.Arn') as arn
FROM aws.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
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::ACMPCA::CertificateAuthority'
AND region = 'us-east-1'
certificate_authority_tags:
name: certificate_authority_tags
id: aws.acmpca.certificate_authority_tags
x-cfn-schema-name: CertificateAuthority
x-cfn-type-name: AWS::ACMPCA::CertificateAuthority
x-type: cloud_control_view
methods: {}
sqlVerbs:
insert: []
delete: []
update: []
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
detail.region,
JSON_EXTRACT(json_each.value, '$.Key') as tag_key,
JSON_EXTRACT(json_each.value, '$.Value') as tag_value,
JSON_EXTRACT(detail.Properties, '$.Arn') as arn,
JSON_EXTRACT(detail.Properties, '$.Type') as type,
JSON_EXTRACT(detail.Properties, '$.KeyAlgorithm') as key_algorithm,
JSON_EXTRACT(detail.Properties, '$.SigningAlgorithm') as signing_algorithm,
JSON_EXTRACT(detail.Properties, '$.Subject') as subject,
JSON_EXTRACT(detail.Properties, '$.RevocationConfiguration') as revocation_configuration,
JSON_EXTRACT(detail.Properties, '$.CertificateSigningRequest') as certificate_signing_request,
JSON_EXTRACT(detail.Properties, '$.CsrExtensions') as csr_extensions,
JSON_EXTRACT(detail.Properties, '$.KeyStorageSecurityStandard') as key_storage_security_standard,
JSON_EXTRACT(detail.Properties, '$.UsageMode') as usage_mode
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
,json_each(JSON_EXTRACT(detail.Properties, '$.Tags'))
WHERE listing.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND detail.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND listing.region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
detail.region,
json_extract_path_text(json_each.value, 'Key') as tag_key,
json_extract_path_text(json_each.value, 'Value') as tag_value,
json_extract_path_text(detail.Properties, 'Arn') as arn,
json_extract_path_text(detail.Properties, 'Type') as type,
json_extract_path_text(detail.Properties, 'KeyAlgorithm') as key_algorithm,
json_extract_path_text(detail.Properties, 'SigningAlgorithm') as signing_algorithm,
json_extract_path_text(detail.Properties, 'Subject') as subject,
json_extract_path_text(detail.Properties, 'RevocationConfiguration') as revocation_configuration,
json_extract_path_text(detail.Properties, 'CertificateSigningRequest') as certificate_signing_request,
json_extract_path_text(detail.Properties, 'CsrExtensions') as csr_extensions,
json_extract_path_text(detail.Properties, 'KeyStorageSecurityStandard') as key_storage_security_standard,
json_extract_path_text(detail.Properties, 'UsageMode') as usage_mode
FROM aws.cloud_control.resources listing
INNER JOIN aws.cloud_control.resource detail
ON detail.data__Identifier = listing.Identifier
AND detail.region = listing.region
,json_array_elements_text(json_extract_path_text(detail.Properties, 'Tags'))
WHERE listing.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND detail.data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND listing.region = 'us-east-1'
certificate_authority_activations:
name: certificate_authority_activations
id: aws.acmpca.certificate_authority_activations
Expand Down
Loading

0 comments on commit 1af57a3

Please sign in to comment.