Skip to content

Commit

Permalink
Merge pull request #207 from stackql/feature/provider
Browse files Browse the repository at this point in the history
updated `awscc` provider
  • Loading branch information
jeffreyaven authored Mar 8, 2024
2 parents 0b312bc + 6d0d5aa commit 6f6614c
Show file tree
Hide file tree
Showing 43 changed files with 300 additions and 300 deletions.
8 changes: 4 additions & 4 deletions providers/src/awscc/v00.00.00000/services/amplify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ components:
JSON_EXTRACT(Properties, '$.Description') as description,
JSON_EXTRACT(Properties, '$.EnableBranchAutoDeletion') as enable_branch_auto_deletion,
JSON_EXTRACT(Properties, '$.EnvironmentVariables') as environment_variables,
JSON_EXTRACT(Properties, '$.IAMServiceRole') as i_am_service_role,
JSON_EXTRACT(Properties, '$.IAMServiceRole') as iam_service_role,
JSON_EXTRACT(Properties, '$.Name') as name,
JSON_EXTRACT(Properties, '$.OauthToken') as oauth_token,
JSON_EXTRACT(Properties, '$.Platform') as platform,
Expand All @@ -613,7 +613,7 @@ components:
json_extract_path_text(Properties, 'Description') as description,
json_extract_path_text(Properties, 'EnableBranchAutoDeletion') as enable_branch_auto_deletion,
json_extract_path_text(Properties, 'EnvironmentVariables') as environment_variables,
json_extract_path_text(Properties, 'IAMServiceRole') as i_am_service_role,
json_extract_path_text(Properties, 'IAMServiceRole') as iam_service_role,
json_extract_path_text(Properties, 'Name') as name,
json_extract_path_text(Properties, 'OauthToken') as oauth_token,
json_extract_path_text(Properties, 'Platform') as platform,
Expand Down Expand Up @@ -744,7 +744,7 @@ components:
JSON_EXTRACT(Properties, '$.AppId') as app_id,
JSON_EXTRACT(Properties, '$.Arn') as arn,
JSON_EXTRACT(Properties, '$.AutoSubDomainCreationPatterns') as auto_sub_domain_creation_patterns,
JSON_EXTRACT(Properties, '$.AutoSubDomainIAMRole') as auto_sub_domain_ia_mrole,
JSON_EXTRACT(Properties, '$.AutoSubDomainIAMRole') as auto_sub_domain_iam_role,
JSON_EXTRACT(Properties, '$.CertificateRecord') as certificate_record,
JSON_EXTRACT(Properties, '$.Certificate') as certificate,
JSON_EXTRACT(Properties, '$.CertificateSettings') as certificate_settings,
Expand All @@ -765,7 +765,7 @@ components:
json_extract_path_text(Properties, 'AppId') as app_id,
json_extract_path_text(Properties, 'Arn') as arn,
json_extract_path_text(Properties, 'AutoSubDomainCreationPatterns') as auto_sub_domain_creation_patterns,
json_extract_path_text(Properties, 'AutoSubDomainIAMRole') as auto_sub_domain_ia_mrole,
json_extract_path_text(Properties, 'AutoSubDomainIAMRole') as auto_sub_domain_iam_role,
json_extract_path_text(Properties, 'CertificateRecord') as certificate_record,
json_extract_path_text(Properties, 'Certificate') as certificate,
json_extract_path_text(Properties, 'CertificateSettings') as certificate_settings,
Expand Down
8 changes: 4 additions & 4 deletions providers/src/awscc/v00.00.00000/services/apigateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1595,15 +1595,15 @@ components:
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.APIKeyId') as a_pi_key_id
JSON_EXTRACT(Properties, '$.APIKeyId') as api_key_id
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ApiKey'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'APIKeyId') as a_pi_key_id
json_extract_path_text(Properties, 'APIKeyId') as api_key_id
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::ApiGateway::ApiKey'
AND region = 'us-east-1'
api_key:
Expand All @@ -1620,7 +1620,7 @@ components:
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.APIKeyId') as a_pi_key_id,
JSON_EXTRACT(Properties, '$.APIKeyId') as api_key_id,
JSON_EXTRACT(Properties, '$.CustomerId') as customer_id,
JSON_EXTRACT(Properties, '$.Description') as description,
JSON_EXTRACT(Properties, '$.Enabled') as enabled,
Expand All @@ -1637,7 +1637,7 @@ components:
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'APIKeyId') as a_pi_key_id,
json_extract_path_text(Properties, 'APIKeyId') as api_key_id,
json_extract_path_text(Properties, 'CustomerId') as customer_id,
json_extract_path_text(Properties, 'Description') as description,
json_extract_path_text(Properties, 'Enabled') as enabled,
Expand Down
8 changes: 4 additions & 4 deletions providers/src/awscc/v00.00.00000/services/appflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ components:
JSON_EXTRACT(Properties, '$.ConnectorProfileArn') as connector_profile_arn,
JSON_EXTRACT(Properties, '$.ConnectorLabel') as connector_label,
JSON_EXTRACT(Properties, '$.ConnectorProfileName') as connector_profile_name,
JSON_EXTRACT(Properties, '$.KMSArn') as k_ms_arn,
JSON_EXTRACT(Properties, '$.KMSArn') as kms_arn,
JSON_EXTRACT(Properties, '$.ConnectorType') as connector_type,
JSON_EXTRACT(Properties, '$.ConnectionMode') as connection_mode,
JSON_EXTRACT(Properties, '$.ConnectorProfileConfig') as connector_profile_config,
Expand All @@ -2397,7 +2397,7 @@ components:
json_extract_path_text(Properties, 'ConnectorProfileArn') as connector_profile_arn,
json_extract_path_text(Properties, 'ConnectorLabel') as connector_label,
json_extract_path_text(Properties, 'ConnectorProfileName') as connector_profile_name,
json_extract_path_text(Properties, 'KMSArn') as k_ms_arn,
json_extract_path_text(Properties, 'KMSArn') as kms_arn,
json_extract_path_text(Properties, 'ConnectorType') as connector_type,
json_extract_path_text(Properties, 'ConnectionMode') as connection_mode,
json_extract_path_text(Properties, 'ConnectorProfileConfig') as connector_profile_config,
Expand Down Expand Up @@ -2447,7 +2447,7 @@ components:
JSON_EXTRACT(Properties, '$.FlowArn') as flow_arn,
JSON_EXTRACT(Properties, '$.FlowName') as flow_name,
JSON_EXTRACT(Properties, '$.Description') as description,
JSON_EXTRACT(Properties, '$.KMSArn') as k_ms_arn,
JSON_EXTRACT(Properties, '$.KMSArn') as kms_arn,
JSON_EXTRACT(Properties, '$.TriggerConfig') as trigger_config,
JSON_EXTRACT(Properties, '$.FlowStatus') as flow_status,
JSON_EXTRACT(Properties, '$.SourceFlowConfig') as source_flow_config,
Expand All @@ -2466,7 +2466,7 @@ components:
json_extract_path_text(Properties, 'FlowArn') as flow_arn,
json_extract_path_text(Properties, 'FlowName') as flow_name,
json_extract_path_text(Properties, 'Description') as description,
json_extract_path_text(Properties, 'KMSArn') as k_ms_arn,
json_extract_path_text(Properties, 'KMSArn') as kms_arn,
json_extract_path_text(Properties, 'TriggerConfig') as trigger_config,
json_extract_path_text(Properties, 'FlowStatus') as flow_status,
json_extract_path_text(Properties, 'SourceFlowConfig') as source_flow_config,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ components:
JSON_EXTRACT(Properties, '$.Name') as name,
JSON_EXTRACT(Properties, '$.KmsKey') as kms_key,
JSON_EXTRACT(Properties, '$.ScheduleConfig') as schedule_config,
JSON_EXTRACT(Properties, '$.SourceURI') as source_ur_i,
JSON_EXTRACT(Properties, '$.SourceURI') as source_uri,
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.FileConfiguration') as file_configuration,
JSON_EXTRACT(Properties, '$.ObjectConfiguration') as object_configuration
Expand All @@ -376,7 +376,7 @@ components:
json_extract_path_text(Properties, 'Name') as name,
json_extract_path_text(Properties, 'KmsKey') as kms_key,
json_extract_path_text(Properties, 'ScheduleConfig') as schedule_config,
json_extract_path_text(Properties, 'SourceURI') as source_ur_i,
json_extract_path_text(Properties, 'SourceURI') as source_uri,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'FileConfiguration') as file_configuration,
json_extract_path_text(Properties, 'ObjectConfiguration') as object_configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ components:
region,
JSON_EXTRACT(Properties, '$.ResourceGroupName') as resource_group_name,
JSON_EXTRACT(Properties, '$.ApplicationARN') as application_arn,
JSON_EXTRACT(Properties, '$.CWEMonitorEnabled') as c_we_monitor_enabled,
JSON_EXTRACT(Properties, '$.CWEMonitorEnabled') as cwe_monitor_enabled,
JSON_EXTRACT(Properties, '$.OpsCenterEnabled') as ops_center_enabled,
JSON_EXTRACT(Properties, '$.OpsItemSNSTopicArn') as ops_item_sn_stopic_arn,
JSON_EXTRACT(Properties, '$.OpsItemSNSTopicArn') as ops_item_sns_topic_arn,
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.CustomComponents') as custom_components,
JSON_EXTRACT(Properties, '$.LogPatternSets') as log_pattern_sets,
Expand All @@ -527,9 +527,9 @@ components:
region,
json_extract_path_text(Properties, 'ResourceGroupName') as resource_group_name,
json_extract_path_text(Properties, 'ApplicationARN') as application_arn,
json_extract_path_text(Properties, 'CWEMonitorEnabled') as c_we_monitor_enabled,
json_extract_path_text(Properties, 'CWEMonitorEnabled') as cwe_monitor_enabled,
json_extract_path_text(Properties, 'OpsCenterEnabled') as ops_center_enabled,
json_extract_path_text(Properties, 'OpsItemSNSTopicArn') as ops_item_sn_stopic_arn,
json_extract_path_text(Properties, 'OpsItemSNSTopicArn') as ops_item_sns_topic_arn,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'CustomComponents') as custom_components,
json_extract_path_text(Properties, 'LogPatternSets') as log_pattern_sets,
Expand Down
12 changes: 6 additions & 6 deletions providers/src/awscc/v00.00.00000/services/autoscaling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ components:
JSON_EXTRACT(Properties, '$.NewInstancesProtectedFromScaleIn') as new_instances_protected_from_scale_in,
JSON_EXTRACT(Properties, '$.LaunchTemplate') as launch_template,
JSON_EXTRACT(Properties, '$.MixedInstancesPolicy') as mixed_instances_policy,
JSON_EXTRACT(Properties, '$.VPCZoneIdentifier') as v_pc_zone_identifier,
JSON_EXTRACT(Properties, '$.VPCZoneIdentifier') as vpc_zone_identifier,
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.Context') as context,
JSON_EXTRACT(Properties, '$.CapacityRebalance') as capacity_rebalance,
Expand Down Expand Up @@ -1158,7 +1158,7 @@ components:
json_extract_path_text(Properties, 'NewInstancesProtectedFromScaleIn') as new_instances_protected_from_scale_in,
json_extract_path_text(Properties, 'LaunchTemplate') as launch_template,
json_extract_path_text(Properties, 'MixedInstancesPolicy') as mixed_instances_policy,
json_extract_path_text(Properties, 'VPCZoneIdentifier') as v_pc_zone_identifier,
json_extract_path_text(Properties, 'VPCZoneIdentifier') as vpc_zone_identifier,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'Context') as context,
json_extract_path_text(Properties, 'CapacityRebalance') as capacity_rebalance,
Expand Down Expand Up @@ -1219,8 +1219,8 @@ components:
region,
JSON_EXTRACT(Properties, '$.AssociatePublicIpAddress') as associate_public_ip_address,
JSON_EXTRACT(Properties, '$.BlockDeviceMappings') as block_device_mappings,
JSON_EXTRACT(Properties, '$.ClassicLinkVPCId') as classic_link_vp_cid,
JSON_EXTRACT(Properties, '$.ClassicLinkVPCSecurityGroups') as classic_link_vp_csecurity_groups,
JSON_EXTRACT(Properties, '$.ClassicLinkVPCId') as classic_link_vpc_id,
JSON_EXTRACT(Properties, '$.ClassicLinkVPCSecurityGroups') as classic_link_vpc_security_groups,
JSON_EXTRACT(Properties, '$.EbsOptimized') as ebs_optimized,
JSON_EXTRACT(Properties, '$.IamInstanceProfile') as iam_instance_profile,
JSON_EXTRACT(Properties, '$.ImageId') as image_id,
Expand All @@ -1246,8 +1246,8 @@ components:
region,
json_extract_path_text(Properties, 'AssociatePublicIpAddress') as associate_public_ip_address,
json_extract_path_text(Properties, 'BlockDeviceMappings') as block_device_mappings,
json_extract_path_text(Properties, 'ClassicLinkVPCId') as classic_link_vp_cid,
json_extract_path_text(Properties, 'ClassicLinkVPCSecurityGroups') as classic_link_vp_csecurity_groups,
json_extract_path_text(Properties, 'ClassicLinkVPCId') as classic_link_vpc_id,
json_extract_path_text(Properties, 'ClassicLinkVPCSecurityGroups') as classic_link_vpc_security_groups,
json_extract_path_text(Properties, 'EbsOptimized') as ebs_optimized,
json_extract_path_text(Properties, 'IamInstanceProfile') as iam_instance_profile,
json_extract_path_text(Properties, 'ImageId') as image_id,
Expand Down
12 changes: 6 additions & 6 deletions providers/src/awscc/v00.00.00000/services/cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1706,12 +1706,12 @@ components:
JSON_EXTRACT(Properties, '$.StackName') as stack_name,
JSON_EXTRACT(Properties, '$.StackId') as stack_id,
JSON_EXTRACT(Properties, '$.StackPolicyBody') as stack_policy_body,
JSON_EXTRACT(Properties, '$.StackPolicyURL') as stack_policy_ur_l,
JSON_EXTRACT(Properties, '$.StackPolicyURL') as stack_policy_url,
JSON_EXTRACT(Properties, '$.StackStatus') as stack_status,
JSON_EXTRACT(Properties, '$.StackStatusReason') as stack_status_reason,
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.TemplateBody') as template_body,
JSON_EXTRACT(Properties, '$.TemplateURL') as template_ur_l,
JSON_EXTRACT(Properties, '$.TemplateURL') as template_url,
JSON_EXTRACT(Properties, '$.TimeoutInMinutes') as timeout_in_minutes,
JSON_EXTRACT(Properties, '$.LastUpdateTime') as last_update_time,
JSON_EXTRACT(Properties, '$.CreationTime') as creation_time
Expand All @@ -1737,12 +1737,12 @@ components:
json_extract_path_text(Properties, 'StackName') as stack_name,
json_extract_path_text(Properties, 'StackId') as stack_id,
json_extract_path_text(Properties, 'StackPolicyBody') as stack_policy_body,
json_extract_path_text(Properties, 'StackPolicyURL') as stack_policy_ur_l,
json_extract_path_text(Properties, 'StackPolicyURL') as stack_policy_url,
json_extract_path_text(Properties, 'StackStatus') as stack_status,
json_extract_path_text(Properties, 'StackStatusReason') as stack_status_reason,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'TemplateBody') as template_body,
json_extract_path_text(Properties, 'TemplateURL') as template_ur_l,
json_extract_path_text(Properties, 'TemplateURL') as template_url,
json_extract_path_text(Properties, 'TimeoutInMinutes') as timeout_in_minutes,
json_extract_path_text(Properties, 'LastUpdateTime') as last_update_time,
json_extract_path_text(Properties, 'CreationTime') as creation_time
Expand Down Expand Up @@ -1801,7 +1801,7 @@ components:
JSON_EXTRACT(Properties, '$.PermissionModel') as permission_model,
JSON_EXTRACT(Properties, '$.Tags') as tags,
JSON_EXTRACT(Properties, '$.TemplateBody') as template_body,
JSON_EXTRACT(Properties, '$.TemplateURL') as template_ur_l,
JSON_EXTRACT(Properties, '$.TemplateURL') as template_url,
JSON_EXTRACT(Properties, '$.CallAs') as call_as,
JSON_EXTRACT(Properties, '$.ManagedExecution') as managed_execution
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::CloudFormation::StackSet'
Expand All @@ -1825,7 +1825,7 @@ components:
json_extract_path_text(Properties, 'PermissionModel') as permission_model,
json_extract_path_text(Properties, 'Tags') as tags,
json_extract_path_text(Properties, 'TemplateBody') as template_body,
json_extract_path_text(Properties, 'TemplateURL') as template_ur_l,
json_extract_path_text(Properties, 'TemplateURL') as template_url,
json_extract_path_text(Properties, 'CallAs') as call_as,
json_extract_path_text(Properties, 'ManagedExecution') as managed_execution
FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::CloudFormation::StackSet'
Expand Down
4 changes: 2 additions & 2 deletions providers/src/awscc/v00.00.00000/services/cloudtrail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ components:
JSON_EXTRACT(Properties, '$.IsLogging') as is_logging,
JSON_EXTRACT(Properties, '$.IsMultiRegionTrail') as is_multi_region_trail,
JSON_EXTRACT(Properties, '$.IsOrganizationTrail') as is_organization_trail,
JSON_EXTRACT(Properties, '$.KMSKeyId') as k_ms_key_id,
JSON_EXTRACT(Properties, '$.KMSKeyId') as kms_key_id,
JSON_EXTRACT(Properties, '$.S3BucketName') as s3_bucket_name,
JSON_EXTRACT(Properties, '$.S3KeyPrefix') as s3_key_prefix,
JSON_EXTRACT(Properties, '$.SnsTopicName') as sns_topic_name,
Expand All @@ -834,7 +834,7 @@ components:
json_extract_path_text(Properties, 'IsLogging') as is_logging,
json_extract_path_text(Properties, 'IsMultiRegionTrail') as is_multi_region_trail,
json_extract_path_text(Properties, 'IsOrganizationTrail') as is_organization_trail,
json_extract_path_text(Properties, 'KMSKeyId') as k_ms_key_id,
json_extract_path_text(Properties, 'KMSKeyId') as kms_key_id,
json_extract_path_text(Properties, 'S3BucketName') as s3_bucket_name,
json_extract_path_text(Properties, 'S3KeyPrefix') as s3_key_prefix,
json_extract_path_text(Properties, 'SnsTopicName') as sns_topic_name,
Expand Down
Loading

0 comments on commit 6f6614c

Please sign in to comment.