Skip to content

Commit

Permalink
Merge pull request #214 from stackql/dev
Browse files Browse the repository at this point in the history
updated `awscc` provider
  • Loading branch information
jeffreyaven authored Mar 14, 2024
2 parents 14eb83c + 51d8029 commit 9103854
Show file tree
Hide file tree
Showing 90 changed files with 338 additions and 2,108 deletions.
89 changes: 4 additions & 85 deletions providers/src/awscc/v00.00.00000/services/acmpca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -603,34 +603,6 @@ components:
delete:
- acm-pca:DeletePermission
x-stackQL-resources:
certificates:
name: certificates
id: awscc.acmpca.certificates
x-cfn-schema-name: Certificate
x-type: list
x-identifiers:
- Arn
- CertificateAuthorityArn
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.Arn') as arn,
JSON_EXTRACT(Properties, '$.CertificateAuthorityArn') as certificate_authority_arn
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::Certificate'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'Arn') as arn,
json_extract_path_text(Properties, 'CertificateAuthorityArn') as certificate_authority_arn
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::Certificate'
AND region = 'us-east-1'
certificate:
name: certificate
id: awscc.acmpca.certificate
Expand All @@ -657,7 +629,7 @@ components:
JSON_EXTRACT(Properties, '$.Certificate') as certificate,
JSON_EXTRACT(Properties, '$.Arn') as arn
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::ACMPCA::Certificate'
AND data__Identifier = '<Arn>'
AND data__Identifier = '<Arn>|<CertificateAuthorityArn>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
Expand All @@ -675,7 +647,7 @@ components:
json_extract_path_text(Properties, 'Certificate') as certificate,
json_extract_path_text(Properties, 'Arn') as arn
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::ACMPCA::Certificate'
AND data__Identifier = '<Arn>'
AND data__Identifier = '<Arn>|<CertificateAuthorityArn>'
AND region = 'us-east-1'
certificate_authorities:
name: certificate_authorities
Expand Down Expand Up @@ -751,31 +723,6 @@ components:
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthority'
AND data__Identifier = '<Arn>'
AND region = 'us-east-1'
certificate_authority_activations:
name: certificate_authority_activations
id: awscc.acmpca.certificate_authority_activations
x-cfn-schema-name: CertificateAuthorityActivation
x-type: list
x-identifiers:
- CertificateAuthorityArn
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.CertificateAuthorityArn') as certificate_authority_arn
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthorityActivation'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'CertificateAuthorityArn') as certificate_authority_arn
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthorityActivation'
AND region = 'us-east-1'
certificate_authority_activation:
name: certificate_authority_activation
id: awscc.acmpca.certificate_authority_activation
Expand Down Expand Up @@ -813,34 +760,6 @@ components:
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::ACMPCA::CertificateAuthorityActivation'
AND data__Identifier = '<CertificateAuthorityArn>'
AND region = 'us-east-1'
permissions:
name: permissions
id: awscc.acmpca.permissions
x-cfn-schema-name: Permission
x-type: list
x-identifiers:
- CertificateAuthorityArn
- Principal
config:
views:
select:
predicate: sqlDialect == "sqlite3"
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.CertificateAuthorityArn') as certificate_authority_arn,
JSON_EXTRACT(Properties, '$.Principal') as principal
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::Permission'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'CertificateAuthorityArn') as certificate_authority_arn,
json_extract_path_text(Properties, 'Principal') as principal
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ACMPCA::Permission'
AND region = 'us-east-1'
permission:
name: permission
id: awscc.acmpca.permission
Expand All @@ -862,7 +781,7 @@ components:
JSON_EXTRACT(Properties, '$.Principal') as principal,
JSON_EXTRACT(Properties, '$.SourceAccount') as source_account
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::ACMPCA::Permission'
AND data__Identifier = '<CertificateAuthorityArn>'
AND data__Identifier = '<CertificateAuthorityArn>|<Principal>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
Expand All @@ -875,5 +794,5 @@ components:
json_extract_path_text(Properties, 'Principal') as principal,
json_extract_path_text(Properties, 'SourceAccount') as source_account
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::ACMPCA::Permission'
AND data__Identifier = '<CertificateAuthorityArn>'
AND data__Identifier = '<CertificateAuthorityArn>|<Principal>'
AND region = 'us-east-1'
12 changes: 6 additions & 6 deletions providers/src/awscc/v00.00.00000/services/amplifyuibuilder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ components:
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.Variants') as variants
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Component'
AND data__Identifier = '<AppId>'
AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
Expand All @@ -927,7 +927,7 @@ components:
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'Variants') as variants
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Component'
AND data__Identifier = '<AppId>'
AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>'
AND region = 'us-east-1'
forms:
name: forms
Expand Down Expand Up @@ -991,7 +991,7 @@ components:
JSON_EXTRACT(Properties, '$.Style') as style,
JSON_EXTRACT(Properties, '$.Tags') as tags
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Form'
AND data__Identifier = '<AppId>'
AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
Expand All @@ -1013,7 +1013,7 @@ components:
json_extract_path_text(Properties, 'Style') as style,
json_extract_path_text(Properties, 'Tags') as tags
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Form'
AND data__Identifier = '<AppId>'
AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>'
AND region = 'us-east-1'
themes:
name: themes
Expand Down Expand Up @@ -1073,7 +1073,7 @@ components:
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.Values') as _values
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Theme'
AND data__Identifier = '<AppId>'
AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
Expand All @@ -1091,5 +1091,5 @@ components:
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'Values') as _values
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::AmplifyUIBuilder::Theme'
AND data__Identifier = '<AppId>'
AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>'
AND region = 'us-east-1'
Loading

0 comments on commit 9103854

Please sign in to comment.